mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Default to Java 17
This commit is contained in:
parent
98c93d011b
commit
9c44dd75d7
@ -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(
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -1,4 +1,4 @@
|
||||
applyPaperweightAdapterConfiguration(javaRelease = 16)
|
||||
applyPaperweightAdapterConfiguration(javaRelease = 17)
|
||||
|
||||
dependencies {
|
||||
paperDevBundle("1.17.1-R0.1-20211219.175449-201")
|
||||
|
Loading…
Reference in New Issue
Block a user