Gradle remote build cache

This commit is contained in:
Steve Ebersole 2023-08-03 11:18:25 -05:00 committed by Christian Beikov
parent fa35e99543
commit d7c1886aaa
2 changed files with 10 additions and 2 deletions

View File

@ -82,7 +82,7 @@ fi
# so that CI jobs give a more complete report
# and developers can fix code style and non-H2 DB tests in parallel.
if [ -n "$goal" ]; then
goal="$goal -x checkstyleMain"
goal="$goal -x checkstyleMain -DPOPULATE_REMOTE=true"
fi
function logAndExec() {

View File

@ -11,7 +11,7 @@
ext {
isCiEnvironment = isJenkins() || isGitHubActions() || isGenericCi()
populateRemoteBuildCache = getSetting( "POPULATE_REMOTE_GRADLE_CACHE" ).isPresent()
populateRemoteBuildCache = isEnabled( "POPULATE_REMOTE_GRADLE_CACHE" )
}
private static boolean isJenkins() {
@ -36,6 +36,14 @@ static java.util.Optional<String> getSetting(String name) {
return java.util.Optional.ofNullable(sysProp);
}
static boolean isEnabled(String setting) {
if ( System.getenv().hasProperty( setting ) ) {
return true
}
return System.hasProperty( setting )
}
develocity {
server = 'https://ge.hibernate.org'