From b6b249a789c07da5a0d88cfafcffe9d6bfe4f026 Mon Sep 17 00:00:00 2001 From: Nikita Karpuk Date: Thu, 27 Jun 2024 18:42:07 +0200 Subject: [PATCH] Speicfy target java version --- common-api/build.gradle | 8 ++++++-- common-wiremock/build.gradle | 8 ++++++-- dropwizard-app/build.gradle | 6 +++++- micronaut-app/build.gradle | 7 +++++-- quarkus-app/build.gradle | 6 +++++- spring-app/build.gradle | 6 +++++- 6 files changed, 32 insertions(+), 9 deletions(-) diff --git a/common-api/build.gradle b/common-api/build.gradle index b8e853f..7f977d4 100644 --- a/common-api/build.gradle +++ b/common-api/build.gradle @@ -1,11 +1,15 @@ plugins { id "io.freefair.lombok" version "6.5.0.3" - id 'java' + id 'java-library' } group = 'bitxon.common' version = '1.0-SNAPSHOT' -sourceCompatibility = '17' + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} repositories { mavenCentral() diff --git a/common-wiremock/build.gradle b/common-wiremock/build.gradle index 67b819b..75c1b40 100644 --- a/common-wiremock/build.gradle +++ b/common-wiremock/build.gradle @@ -1,7 +1,11 @@ plugins { - id 'java' + id 'java-library' } group = 'bitxon.common' version = '1.0-SNAPSHOT' -sourceCompatibility = '17' + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} diff --git a/dropwizard-app/build.gradle b/dropwizard-app/build.gradle index 087a396..f8f5ed2 100644 --- a/dropwizard-app/build.gradle +++ b/dropwizard-app/build.gradle @@ -6,7 +6,11 @@ plugins { group = 'bitxon.dropwizard' version = '1.0-SNAPSHOT' -sourceCompatibility = '17' + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} repositories { mavenCentral() diff --git a/micronaut-app/build.gradle b/micronaut-app/build.gradle index 61d2412..d4c09dc 100644 --- a/micronaut-app/build.gradle +++ b/micronaut-app/build.gradle @@ -6,8 +6,11 @@ plugins { group = 'bitxon.micronaut' version = '1.0-SNAPSHOT' -sourceCompatibility = '17' -targetCompatibility = '17' + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} repositories { mavenCentral() diff --git a/quarkus-app/build.gradle b/quarkus-app/build.gradle index 4c8f62c..0888cdb 100644 --- a/quarkus-app/build.gradle +++ b/quarkus-app/build.gradle @@ -8,7 +8,11 @@ ext.set("quarkus.package.type", "uber-jar") group = 'bitxon.quarkus' version = '1.0-SNAPSHOT' -sourceCompatibility = '17' + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} repositories { mavenCentral() diff --git a/spring-app/build.gradle b/spring-app/build.gradle index 942cbb7..29dc34e 100644 --- a/spring-app/build.gradle +++ b/spring-app/build.gradle @@ -6,7 +6,11 @@ plugins { group = 'bitxon.spring' version = '1.0-SNAPSHOT' -sourceCompatibility = '17' + +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} repositories { mavenCentral()