Skip to content

Commit

Permalink
BUILD (picocli-spring-boot-starter) enable dependabot for Spring 3+ u…
Browse files Browse the repository at this point in the history
…pdates
  • Loading branch information
remkop committed Aug 26, 2023
1 parent 211c24d commit 7c5e128
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
7 changes: 0 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,3 @@ updates:
ignore:
# For Groovy, ignore all updates
- dependency-name: "org.codehaus.groovy:groovy-all"
# For Spring-boot, version 3 requires Java 17
- dependency-name: "org.springframework.boot:spring-boot-starter"
versions: ["3.+"]
- dependency-name: "org.springframework.boot:spring-boot-configuration-processor"
versions: ["3.+"]
- dependency-name: "org.springframework.boot:spring-boot-starter-test"
versions: ["3.+"]
3 changes: 0 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ ext {
springbootstarter : "org.springframework.boot:spring-boot-starter:$springBootVersion",
springbootannproc : "org.springframework.boot:spring-boot-configuration-processor:$springBootVersion",
springboottest : "org.springframework.boot:spring-boot-starter-test:$springBootVersion",
springbootstarterOld : "org.springframework.boot:spring-boot-starter:2.7.11",
springbootannprocOld : "org.springframework.boot:spring-boot-configuration-processor:2.7.11",
springboottestOld : "org.springframework.boot:spring-boot-starter-test:2.7.11",
jline3 : "org.jline:jline:$jline3Version",
jline2 : "jline:jline:$jline2Version",
ivy : "org.apache.ivy:ivy:$ivyVersion",
Expand Down
23 changes: 14 additions & 9 deletions picocli-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ext.moduleName = 'info.picocli.spring.boot'

// Spring 3 requires Java 17
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}")
logger.quiet("picocli-spring-boot-starter/build.gradle: JavaVersion=${JavaVersion.current()}")
logger.quiet("picocli-spring-boot-starter/build.gradle: JavaVersion.majorVersion=${JavaVersion.current().majorVersion}")
logger.quiet("picocli-spring-boot-starter/build.gradle: useJava17=${useJava17}")

if (useJava17) {
logger.quiet("picocli-spring-boot-starter/build.gradle: JavaVersion=${JavaVersion.current()}")
Expand All @@ -35,13 +35,18 @@ dependencies {
logger.quiet("picocli-spring-boot-starter/build.gradle: annotationProcessor ${supportDependencies.springbootannproc}")
logger.quiet("picocli-spring-boot-starter/build.gradle: testImplementation ${supportDependencies.springboottest}")
} else {
api supportDependencies.springbootstarterOld
annotationProcessor supportDependencies.springbootannprocOld
testImplementation supportDependencies.springboottestOld
// These should not be updated by dependabot
String springbootstarterOld = "org.springframework.boot:spring-boot-starter:2.7.11"
String springbootannprocOld = "org.springframework.boot:spring-boot-configuration-processor:2.7.11"
String springboottestOld = "org.springframework.boot:spring-boot-starter-test:2.7.11"

logger.quiet("picocli-spring-boot-starter/build.gradle: api ${supportDependencies.springbootstarterOld}")
logger.quiet("picocli-spring-boot-starter/build.gradle: annotationProcessor ${supportDependencies.springbootannprocOld}")
logger.quiet("picocli-spring-boot-starter/build.gradle: testImplementation ${supportDependencies.springboottestOld}")
api springbootstarterOld
annotationProcessor springbootannprocOld
testImplementation springboottestOld

logger.quiet("picocli-spring-boot-starter/build.gradle: api ${springbootstarterOld}")
logger.quiet("picocli-spring-boot-starter/build.gradle: annotationProcessor ${springbootannprocOld}")
logger.quiet("picocli-spring-boot-starter/build.gradle: testImplementation ${springboottestOld}")
}
}

Expand Down

0 comments on commit 7c5e128

Please sign in to comment.