From 7f884ba36b5932fe681531de93e42f165f028b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Tue, 29 Oct 2024 09:47:25 +0100 Subject: [PATCH] chore: upgrade Kestra and improve Gradle build --- build.gradle | 12 ++++++++---- gradle.properties | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index e51ffca..7cde6a1 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id "idea" id 'jacoco' id "com.adarshr.test-logger" version "4.0.0" - id "com.github.johnrengelman.shadow" version "8.1.1" + id "com.gradleup.shadow" version "8.3.3" id 'ru.vyarus.java-lib' version '3.0.0' id 'ru.vyarus.github-info' version '2.0.0' id 'signing' @@ -22,13 +22,17 @@ repositories { } } -sourceCompatibility = 21 -targetCompatibility = 21 +final targetJavaVersion = JavaVersion.VERSION_21 + +java { + sourceCompatibility = targetJavaVersion + targetCompatibility = targetJavaVersion +} group "io.kestra.plugin" description 'Plugin template for Kestra' -tasks.withType(JavaCompile) { +tasks.withType(JavaCompile).configureEach { options.encoding = "UTF-8" options.compilerArgs.add("-parameters") } diff --git a/gradle.properties b/gradle.properties index 6b04bf0..74bea53 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=0.18.0-SNAPSHOT -kestraVersion=[0.18,) +version=0.19.0-SNAPSHOT +kestraVersion=[0.19,)