Default to Java 17

This commit is contained in:
Madeline Miller 2021-12-21 22:22:47 +10:00
parent 98c93d011b
commit 9c44dd75d7
No known key found for this signature in database
GPG Key ID: B8EA2E5693115D81
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
// For specific version pinning, see
// https://papermc.io/repo/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
fun Project.applyPaperweightAdapterConfiguration(javaRelease: Int = 16) {
fun Project.applyPaperweightAdapterConfiguration(javaRelease: Int = 17) {
applyCommonConfiguration()
apply(plugin = "java-library")
applyCommonJavaConfiguration(

View File

@ -11,7 +11,7 @@
import org.gradle.kotlin.dsl.get
import org.gradle.kotlin.dsl.withType
fun Project.applyCommonJavaConfiguration(sourcesJar: Boolean, javaRelease: Int = 16, banSlf4j: Boolean = true) {
fun Project.applyCommonJavaConfiguration(sourcesJar: Boolean, javaRelease: Int = 17, banSlf4j: Boolean = true) {
applyCommonConfiguration()
apply(plugin = "eclipse")
apply(plugin = "idea")

View File

@ -11,7 +11,7 @@
import org.gradle.kotlin.dsl.register
import kotlin.collections.set
fun Project.applyPlatformAndCoreConfiguration(javaRelease: Int = 16) {
fun Project.applyPlatformAndCoreConfiguration(javaRelease: Int = 17) {
applyCommonConfiguration()
apply(plugin = "java")
apply(plugin = "maven-publish")

View File

@ -1,4 +1,4 @@
applyPaperweightAdapterConfiguration(javaRelease = 16)
applyPaperweightAdapterConfiguration(javaRelease = 17)
dependencies {
paperDevBundle("1.17.1-R0.1-20211219.175449-201")