1+ import org.gradle.api.attributes.java.TargetJvmVersion
2+
13plugins {
24 id ' eclipse'
35 id ' java-gradle-plugin'
46 id ' maven-publish' // used for publishing to local maven repository
5- id ' com.gradle.plugin-publish' version ' 2.0.0 '
6- id ' com.gradleup.shadow' version ' 9.2.2 '
7- id ' com.github.ben-manes.versions' version ' 0.53 .0'
7+ id ' com.gradle.plugin-publish' version ' 2.1.1 '
8+ id ' com.gradleup.shadow' version ' 9.4.1 '
9+ id ' com.github.ben-manes.versions' version ' 0.54 .0'
810}
911
1012develocity {
@@ -31,12 +33,12 @@ configurations {
3133 compile. extendsFrom plugin
3234}
3335
34- def jUnitVersion = ' 5.14.0 '
36+ def jUnitVersion = ' 6.0.1 '
3537
3638dependencies {
3739 implementation gradleApi()
3840 implementation ' org.jooq:joor:0.9.15'
39- plugin ' com.github.javaparser:javaparser-symbol-solver-core:3.27.1 '
41+ plugin ' com.github.javaparser:javaparser-symbol-solver-core:3.28.0 '
4042
4143 testImplementation gradleTestKit()
4244 testImplementation ' com.google.guava:guava-base:r03'
@@ -72,7 +74,21 @@ configurations {
7274 }
7375}
7476
77+ configurations. testCompileClasspath {
78+ attributes {
79+ attribute(TargetJvmVersion . TARGET_JVM_VERSION_ATTRIBUTE , 17 )
80+ }
81+ }
82+ configurations. testRuntimeClasspath {
83+ attributes {
84+ attribute(TargetJvmVersion . TARGET_JVM_VERSION_ATTRIBUTE , 17 )
85+ }
86+ }
87+
7588test {
89+ javaLauncher = javaToolchains. launcherFor {
90+ languageVersion = JavaLanguageVersion . of(17 )
91+ }
7692 useJUnitPlatform()
7793
7894 testLogging {
0 commit comments