Skip to content

Commit

Permalink
Improve Gradle build (#1025)
Browse files Browse the repository at this point in the history
Update Gradle
$ ./gradlew wrapper --gradle-version 5.6.2

Configure the Gradle Build Scan plugin
Read https://dev.to/jmfayard/the-one-gradle-trick-that-supersedes-all-the-others-5bpg

Add Gradle properties
Read https://dev.to/jmfayard/configuring-gradle-with-gradle-properties-211k
  • Loading branch information
Jean-Michel Fayard authored and LeoColman committed Oct 1, 2019
1 parent f7bbd84 commit 02b4c84
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Expand Up @@ -34,6 +34,7 @@ plugins {
id 'maven-publish'
id 'signing'
id 'net.researchgate.release' version '2.8.0'
id("com.gradle.build-scan").version("2.4.2")
}

// apply plugin: "io.kotest"
Expand Down Expand Up @@ -71,3 +72,11 @@ dependencies {
project(":") {
publish.enabled = false
}


buildScan {
// ./gradlew --scan $TASKNAME
// see https://dev.to/jmfayard/the-one-gradle-trick-that-supersedes-all-the-others-5bpg
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
5 changes: 4 additions & 1 deletion gradle.properties
Expand Up @@ -12,6 +12,9 @@ intellijPublishPassword=xx
#this is the version used by the gradle release plugin
version=3.4.0

org.gradle.caching=true
sandbox = .

# See https://dev.to/jmfayard/configuring-gradle-with-gradle-properties-211k
org.gradle.caching=true
org.gradle.parallel=true
kotlin.code.style=official
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 02b4c84

Please sign in to comment.