Permalink
Browse files

Updated gradle, enabled incremental build caching for bower tasks

  • Loading branch information...
christianbauer committed Nov 27, 2017
1 parent c52392c commit 7dc8a0cd6c88bcd6ff1a58718aab02c82d2dbce1
Showing with 6 additions and 4 deletions.
  1. +1 −1 gradle/wrapper/gradle-wrapper.properties
  2. +3 −3 manager/client/build.gradle
  3. +2 −0 project.gradle
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip
@@ -30,10 +30,10 @@ def gwtLauncherDir = "${project.projectDir}/src/main/webapp/gwt"
task compileGwt(dependsOn: classes, type: JavaExec) {
inputs.file(sourceSets.main.java.srcDirs).skipWhenEmpty()
inputs.files(sourceSets.main.java.srcDirs).skipWhenEmpty()
inputs.dir sourceSets.main.output.resourcesDir
inputs.file(resolveProject(":model").sourceSets.main.java.srcDirs[0]).skipWhenEmpty()
inputs.file(resolveProject(":manager:shared").sourceSets.main.java.srcDirs[0]).skipWhenEmpty()
inputs.dir(resolveProject(":model").sourceSets.main.java.srcDirs[0]).skipWhenEmpty()
inputs.dir(resolveProject(":manager:shared").sourceSets.main.java.srcDirs[0]).skipWhenEmpty()
outputs.dir gwtOutputDir
doFirst {
View
@@ -90,12 +90,14 @@ task bowerUpdate(type: NodeTask) {
script = nodeModuleGlobal('bower', 'bower')
args = ['update']
inputs.file("${project.projectDir}/bower.json")
outputs.dir("${project.projectDir}/bower_components")
}
task bowerPrune(type: NodeTask) {
dependsOn bowerInstall
script = nodeModuleGlobal('bower', 'bower')
args = ['prune']
inputs.file("${project.projectDir}/bower.json")
outputs.dir("${project.projectDir}/bower_components")
}
// Configure Java build

0 comments on commit 7dc8a0c

Please sign in to comment.