Skip to content

Commit 728ef44

Browse files
add property for CI builds (#935)
1 parent e91d08b commit 728ef44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ plugins {
88
apply plugin: 'com.github.jk1.dependency-license-report'
99
apply plugin: 'com.adarshr.test-logger'
1010

11-
if (project.hasProperty('release')) {
11+
if (project.hasProperty('release') || project.hasProperty('ci')) {
1212
// todo add check for version ends with '-SNAPSHOT' after b/440037454
1313
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
14-
throw new GradleException("The Dumper release build must be run with JDK 8 but was executed with JDK " + JavaVersion.current())
14+
throw new GradleException("The Dumper release and CI builds must be run with JDK 8 but was executed with JDK " + JavaVersion.current())
1515
}
1616
}
1717

0 commit comments

Comments
 (0)