From 2f0a3f5ab321acf3298abeb4ba947cb7e7a7fc37 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 8 Jun 2024 17:09:36 +0200 Subject: [PATCH] Add build.gradle for project : --- base/build.gradle | 7 ------- build.gradle | 19 +++++++++++++++++++ testapp/build.gradle | 9 +-------- 3 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 build.gradle diff --git a/base/build.gradle b/base/build.gradle index 6daa8bd..a052bda 100644 --- a/base/build.gradle +++ b/base/build.gradle @@ -3,13 +3,6 @@ plugins { id "io.freefair.lombok" version "${pluginLombok}" } -group = project.group -version = project.versioningVersion + "-" + project.versioningType + project.versioningTyperelease + project.versioningFork - -repositories { - mavenCentral() -} - dependencies { // Lombok compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..b14af4d --- /dev/null +++ b/build.gradle @@ -0,0 +1,19 @@ +plugins { + id 'java' + id "io.freefair.lombok" version "${pluginLombok}" +} + +dependencies { + // Lombok + compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok + annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok +} + +allprojects { + group = project.group + version = project.versioningVersion + "-" + project.versioningType + project.versioningTyperelease + project.versioningFork + + repositories { + mavenCentral() + } +} diff --git a/testapp/build.gradle b/testapp/build.gradle index 97d99a8..bf20cc1 100644 --- a/testapp/build.gradle +++ b/testapp/build.gradle @@ -1,15 +1,8 @@ plugins { - id 'com.github.johnrengelman.shadow' version "${pluginShadow}" id 'java' id 'application' id "io.freefair.lombok" version "${pluginLombok}" -} - -group = project.group -version = project.versioningVersion + "-" + project.versioningType + project.versioningTyperelease + project.versioningFork - -repositories { - mavenCentral() + id 'com.github.johnrengelman.shadow' version "${pluginShadow}" } dependencies {