From 25e3e6168afeb6af654b1f34b42f8b1bc3b8de21 Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Sun, 19 Oct 2025 09:12:49 -0700 Subject: [PATCH] Trying to tweak Gradle configuration a bit. --- api/build.gradle | 8 -------- build.gradle | 14 ++++++++++++++ gradle.properties | 2 +- tools/bt/build.gradle | 5 ----- tools/st/build.gradle | 5 ----- 5 files changed, 15 insertions(+), 19 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index daebdc2..bbaef84 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -4,14 +4,6 @@ plugins { id 'signing' } -ext.isSnapshotVersion = version.endsWith("SNAPSHOT") -ext.isReleaseVersion = !ext.isSnapshotVersion - -java { - sourceCompatibility = '21' - targetCompatibility = '21' -} - repositories { mavenCentral() } diff --git a/build.gradle b/build.gradle index 28360c9..d107ae4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,17 @@ +plugins { + id 'java' +} + +ext { + isSnapshotVersion = version.endsWith("SNAPSHOT") + isReleaseVersion = !ext.isSnapshotVersion +} + +java { + sourceCompatibility = 21 + targetCompatibility = 21 +} + if (JavaVersion.current().isJava8Compatible()) { allprojects { tasks.withType(Javadoc).tap { diff --git a/gradle.properties b/gradle.properties index 31aed08..bfa234b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # Universal bastools version number. Used for: # - Naming JAR file. # - The build will insert this into a file that is read at run time as well. -version=5.0 +version=5.0-SNAPSHOT # Maven Central Repository G and A of GAV coordinate. :-) group=net.sf.applecommander diff --git a/tools/bt/build.gradle b/tools/bt/build.gradle index 9e452cf..6cd953f 100644 --- a/tools/bt/build.gradle +++ b/tools/bt/build.gradle @@ -5,11 +5,6 @@ plugins { id 'org.graalvm.buildtools.native' version '0.10.6' } -java { - sourceCompatibility = '21' - targetCompatibility = '21' -} - repositories { mavenCentral() } diff --git a/tools/st/build.gradle b/tools/st/build.gradle index d0f10da..d1bc535 100644 --- a/tools/st/build.gradle +++ b/tools/st/build.gradle @@ -5,11 +5,6 @@ plugins { id 'org.graalvm.buildtools.native' version '0.10.6' } -java { - sourceCompatibility = '21' - targetCompatibility = '21' -} - repositories { mavenCentral() }