Skip to content

Commit 532d6b2

Browse files
committed
add rhino for JDK 15
1 parent a2e5551 commit 532d6b2

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
@@ -18,6 +18,10 @@ repositories {
1818
dependencies {
1919
compile 'com.google.code.findbugs:jsr305:3.0.0'
2020
testCompile 'junit:junit:4.11'
21+
def javaVersion = org.gradle.util.VersionNumber.parse( System.properties['java.version'] ).getMajor()
22+
if( javaVersion >= 15 ) {
23+
testRuntime 'org.mozilla:rhino:+'
24+
}
2125
}
2226

2327
sourceCompatibility = 1.7

0 commit comments

Comments
 (0)