While this adds quite some overhead, benefit is that remote Gradle cache entry can be used locally.tags/7.8
@@ -62,7 +62,6 @@ allprojects { | |||
ext { | |||
release = project.hasProperty('release') && project.getProperty('release') | |||
ci = project.hasProperty('ci') && project.getProperty('ci') | |||
official = project.hasProperty('official') && project.getProperty('official') | |||
} | |||
@@ -15,9 +15,6 @@ apply plugin: 'com.moowork.node' | |||
def webappDir = "${buildDir}/webapp" | |||
yarn_run { | |||
inputs.property('release', release) | |||
inputs.property('ci', ci) | |||
['config', 'public', 'scripts', 'src', '../sonar-docs/src'].each { | |||
inputs.dir(it).withPathSensitivity(PathSensitivity.RELATIVE) | |||
} | |||
@@ -26,7 +23,7 @@ yarn_run { | |||
} | |||
outputs.dir(webappDir) | |||
outputs.cacheIf { true } | |||
args = [release || ci ? 'build-release' : 'build'] | |||
args = ['build-release'] | |||
} | |||
build.dependsOn(yarn_run) | |||