From 19454e967c52e3c26e7aa476ebf8d75614ecfa39 Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Fri, 15 Mar 2024 18:30:20 +0800 Subject: [PATCH] Grace: update gradle build scripts Fix plugins not applied grace-plugin --- build.gradle | 4 ++++ grace-plugin-async/build.gradle | 6 ++++++ grace-plugin-events/build.gradle | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/build.gradle b/build.gradle index 5836537..fa04a6b 100644 --- a/build.gradle +++ b/build.gradle @@ -63,6 +63,10 @@ subprojects { project-> apply plugin: "org.gradle.test-retry" apply plugin: "io.spring.dependency-management" + if (project.name.startsWith('grace-plugin')) { + apply plugin: 'org.graceframework.grace-plugin' + } + sourceCompatibility = 17 targetCompatibility = 17 diff --git a/grace-plugin-async/build.gradle b/grace-plugin-async/build.gradle index 4721471..43c1313 100644 --- a/grace-plugin-async/build.gradle +++ b/grace-plugin-async/build.gradle @@ -8,3 +8,9 @@ dependencies { testImplementation "org.grace:grace-test:$graceVersion" testImplementation "org.springframework:spring-test:$springVersion" } + +jar { + enabled = true + archiveClassifier.set('') + includeEmptyDirs = false +} diff --git a/grace-plugin-events/build.gradle b/grace-plugin-events/build.gradle index 18a5850..211a482 100644 --- a/grace-plugin-events/build.gradle +++ b/grace-plugin-events/build.gradle @@ -5,3 +5,9 @@ dependencies { api project(":grace-events"), project(":grace-events-transform") api project(":grace-events-compat") } + +jar { + enabled = true + archiveClassifier.set('') + includeEmptyDirs = false +}