Skip to content

Commit fd5c77e

Browse files
authored
Merge pull request #512 from totorean/totorean/build-improvements
Improve build to benefit from incremental builds
2 parents f4b4c45 + 81a8d8b commit fd5c77e

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

build.gradle

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ plugins {
4444
id 'com.google.protobuf' version '0.8.14'
4545
id 'io.franzbecker.gradle-lombok' version '4.0.0' apply false
4646
id 'com.github.ben-manes.versions' version '0.36.0' // gradle dependencyUpdates
47-
id 'com.diffplug.spotless' version '5.9.0'
47+
id 'com.diffplug.spotless' version '5.11.0'
4848
}
4949

5050
// If you attempt to build without the `--scan` parameter in `gradle 6.0+` it will cause a build error that it can't find
@@ -60,7 +60,7 @@ if (hasProperty('buildScan')) {
6060
wrapper {
6161
// Update using:
6262
// ./gradlew wrapper --gradle-version=6.5 --distribution-type=bin
63-
gradleVersion = '6.7.1'
63+
gradleVersion = '6.8.3'
6464
}
6565

6666
def buildTimeAndDate = OffsetDateTime.now()
@@ -98,11 +98,20 @@ allprojects {
9898
}
9999
format('misc') {
100100
target('**/*.gradle', '**/*.md', '**/*.yml')
101+
targetExclude('**/build/**/*.*')
101102
trimTrailingWhitespace()
102103
endWithNewline()
103104
}
104105
}
105106

107+
normalization {
108+
runtimeClasspath {
109+
metaInf{
110+
ignoreAttribute('Build-Time')
111+
}
112+
}
113+
}
114+
106115
// Copy LICENSE
107116
tasks.withType(Jar) {
108117
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)