Skip to content

Commit

Permalink
Extract version numbers into gradle.properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Sep 25, 2022
1 parent 35abc2c commit 281ce00
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
id "com.github.johnrengelman.shadow" version "${shadowJarVersion}"
id 'java'
id 'jacoco'
id "com.diffplug.spotless" version "6.11.0"
id "com.diffplug.spotless" version "${spotlessVersion}"
}

subprojects {
Expand Down Expand Up @@ -108,7 +108,7 @@ spotless {
// The following is quoted from https://github.com/google/google-java-format
// "Note: There is no configurability as to the formatter's algorithm for formatting.
// This is a deliberate design decision to unify our code formatting on a single format."
googleJavaFormat('1.15.0').reflowLongStrings()
googleJavaFormat(googleJavaFormatVersion).reflowLongStrings()
formatAnnotations()
}
}
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ repositories {
mavenCentral()
dependencies {
// https://mvnrepository.com/artifact/com.diffplug.spotless/spotless-lib
implementation group: 'com.diffplug.spotless', name: 'spotless-lib', version: '2.30.0'
implementation group: 'com.diffplug.spotless', name: 'spotless-lib', version: spotlessLibVersion
// https://mvnrepository.com/artifact/com.diffplug.spotless/spotless-lib-extra
implementation group: 'com.diffplug.spotless', name: 'spotless-lib-extra', version: '2.30.0'
implementation group: 'com.diffplug.spotless', name: 'spotless-lib-extra', version: spotlessLibVersion
}
}
2 changes: 2 additions & 0 deletions buildSrc/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[versions]
spotlessLibVersion=2.30.0
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version=0.3.1-SNAPSHOT

[versions]
commonsCliVersion=1.4
googleJavaFormatVersion=1.8
googleJavaFormatVersion=1.15
guiceVersion=5.1.0
jacocoVersion=0.8.7
jupiterVersion=5.8.2
Expand All @@ -17,6 +17,7 @@ mwe2LaunchVersion=2.12.2
openTest4jVersion=1.2.0
resourcesVersion=3.16.0
shadowJarVersion=7.1.2
spotlessVersion=6.11.0
xtextGradleVersion=3.0.0
xtextVersion=2.28.0

Expand Down

0 comments on commit 281ce00

Please sign in to comment.