Skip to content

Commit

Permalink
BUILD (picocli-spring-boot-starter) bugfix and better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Aug 26, 2023
1 parent e83d867 commit 211c24d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion picocli-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ version "$projectVersion"
ext.moduleName = 'info.picocli.spring.boot'

// Spring 3 requires Java 17
boolean useJava17 = JavaVersion.current().majorVersion.compareTo("17") >= 0;
boolean useJava17 = JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)
logger.quiet("dependencies.gradle: JavaVersion=${JavaVersion.current()}")
logger.quiet("dependencies.gradle: JavaVersion.majorVersion=${JavaVersion.current().majorVersion}")
logger.quiet("dependencies.gradle: useJava17=${useJava17}")

if (useJava17) {
logger.quiet("picocli-spring-boot-starter/build.gradle: JavaVersion=${JavaVersion.current()}")
logger.quiet("picocli-spring-boot-starter/build.gradle: sourceCompatibility = 17")
Expand Down

0 comments on commit 211c24d

Please sign in to comment.