Skip to content

Commit 62c7343

Browse files
committed
Latest Gradle allows managing plugin versions in toml file as well.
1 parent d9c95eb commit 62c7343

4 files changed

Lines changed: 168 additions & 114 deletions

File tree

build.gradle

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ plugins {
33
id 'jacoco'
44
id 'maven-publish'
55
id 'signing'
6-
id "com.github.ben-manes.versions" version "0.39.0"
7-
id "org.springframework.boot" version "2.5.2" apply false
8-
id "io.spring.dependency-management" version "1.0.11.RELEASE" apply false
9-
id "org.asciidoctor.jvm.convert" version "3.3.2" apply false
6+
alias(libs.plugins.vers)
7+
alias(libs.plugins.spring.boot) apply false
8+
alias(libs.plugins.spring.dependency.management) apply false
9+
alias(libs.plugins.asciidoctor) apply false
1010
}
1111

1212
def isNonStable = { String version ->
@@ -70,8 +70,3 @@ subprojects {
7070

7171
check.dependsOn jacocoTestReport
7272
}
73-
74-
wrapper {
75-
gradleVersion = '7.1.1'
76-
}
77-

gradle/libs.versions.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[versions]
2+
asciidoctorPlugin = "3.3.2"
23
assertj = "3.20.2"
34
commons-io = "2.10.0"
45
commons-lang3 = "3.12.0"
@@ -9,6 +10,9 @@ jupiter = "5.7.2"
910
mapstruct = "1.4.0.Final"
1011
mockito = "3.11.2"
1112
spring = "5.0.0.RELEASE"
13+
springBoot = "2.6.2"
14+
springDependencyManagement = "1.0.11.RELEASE"
15+
versionsPlugin = "0.41.0"
1216

1317
[libraries]
1418
assertj = { group = "org.assertj", name = "assertj-core", version.ref = "assertj"}
@@ -31,3 +35,9 @@ spring-test = { group = "org.springframework", name = "spring-test", version.ref
3135

3236
[bundles]
3337
junit-jupiter = ["junit-jupiter-api", "junit-jupiter-engine", "junit-jupiter-params"]
38+
39+
[plugins]
40+
asciidoctor = { id = "org.asciidoctor.jvm.convert", version.ref = "asciidoctorPlugin"}
41+
spring-dependency-management = { id = "io.spring.dependency-management", version.ref = "springDependencyManagement" }
42+
spring-boot = { id = "org.springframework.boot", version.ref = "springBoot" }
43+
vers = { id = "com.github.ben-manes.versions", version.ref = "versionsPlugin" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 153 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)