From 5d89e92abdf793bc64628f7dad8f29cca1883de0 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Mon, 7 Nov 2022 00:38:54 +0100 Subject: [PATCH] Fix project not being published to good repo Signed-off-by: Quentin Legot --- Database/build.gradle | 3 --- Tasks/build.gradle | 3 --- build.gradle | 7 ++++++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Database/build.gradle b/Database/build.gradle index ee22d47..03d3323 100644 --- a/Database/build.gradle +++ b/Database/build.gradle @@ -3,9 +3,6 @@ plugins { id 'maven-publish' } -group "${project.maven_group}" -version "${project.maven_version}" - dependencies { implementation 'org.postgresql:postgresql:42.5.0' testImplementation 'com.google.code.gson:gson:2.10' diff --git a/Tasks/build.gradle b/Tasks/build.gradle index e8595b4..a94536e 100644 --- a/Tasks/build.gradle +++ b/Tasks/build.gradle @@ -3,9 +3,6 @@ plugins { id 'maven-publish' } -group "${project.maven_group}" -version "${project.maven_version}" - dependencies { testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit_version}" diff --git a/build.gradle b/build.gradle index c30bdbd..0eee5ab 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,8 @@ +allprojects { + group = project.maven_group + version = project.maven_version +} + subprojects { apply plugin: 'java' apply plugin: 'maven-publish' @@ -13,7 +18,7 @@ subprojects { repositories { maven { name 'altarik' - url 'https://repo.altarik.fr/'.concat(version.endsWith('SNAPSHOT') ? 'snapshots/' : 'releases/') + url 'https://repo.altarik.fr/'.concat(project.version.endsWith('SNAPSHOT') ? 'snapshots/' : 'releases/') credentials { username = project.repo_username password = project.repo_password