Update Source Build to 17

- Needed for Release Plugin
- Binaries still compile to 8
This commit is contained in:
Josh Cummings
2024-02-02 13:14:50 -07:00
parent e14cc1767d
commit 45e3e2a87a
5 changed files with 12 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ plugins {
id 'com.apollographql.apollo' version '2.4.5'
}
sourceCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
repositories {
gradlePluginPortal()

View File

@@ -53,3 +53,7 @@ compileTestJava {
}
}
test {
jvmArgs '--add-exports', 'java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
}

View File

@@ -19,6 +19,7 @@ dependencies {
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

View File

@@ -23,4 +23,8 @@ compileTestJava {
'--add-exports', 'java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
]
}
}
}
test {
jvmArgs '--add-exports', 'java.naming/com.sun.jndi.ldap=ALL-UNNAMED'
}

View File

@@ -84,6 +84,7 @@ idea {
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}