Skip to content

Commit b2e6da4

Browse files
authored
Check java version running the build. (#1674)
1 parent 43f5c6d commit b2e6da4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ firebaseContinuousIntegration {
6464
]
6565
}
6666

67+
if(JavaVersion.current() != JavaVersion.VERSION_11){
68+
throw new GradleException("This build must be run with java 11. You're using ${JavaVersion.current()}.")
69+
}
70+
6771
configure(subprojects) {
6872
repositories {
6973
google()

0 commit comments

Comments
 (0)