Skip to content

Commit aa32557

Browse files
committed
Improve build to benefit from incremental builds
1 parent 45bd4f6 commit aa32557

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ plugins {
4141
id 'com.google.protobuf' version '0.8.14'
4242
id 'io.franzbecker.gradle-lombok' version '4.0.0' apply false
4343
id 'com.github.ben-manes.versions' version '0.36.0' // gradle dependencyUpdates
44-
id 'com.diffplug.spotless' version '5.9.0'
44+
id 'com.diffplug.spotless' version '5.11.0'
4545
}
4646

4747
// If you attempt to build without the `--scan` parameter in `gradle 6.0+` it will cause a build error that it can't find
@@ -95,11 +95,20 @@ allprojects {
9595
}
9696
format('misc') {
9797
target('**/*.gradle', '**/*.md', '**/*.yml')
98+
targetExclude('**/build/**/*.*')
9899
trimTrailingWhitespace()
99100
endWithNewline()
100101
}
101102
}
102103

104+
normalization {
105+
runtimeClasspath {
106+
metaInf{
107+
ignoreAttribute('Build-Time')
108+
}
109+
}
110+
}
111+
103112
// Copy LICENSE
104113
tasks.withType(Jar) {
105114
from(project.rootDir) {

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
org.gradle.caching=true
2+
org.gradle.parallel=true
3+
org.gradle.vfs.watch=true
4+
org.gradle.daemon=true
5+
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-6.7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)