mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-06 12:16:11 +08:00
Default to Java 17
This commit is contained in:
parent
98c93d011b
commit
9c44dd75d7
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
// For specific version pinning, see
|
// For specific version pinning, see
|
||||||
// https://papermc.io/repo/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
|
// 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()
|
applyCommonConfiguration()
|
||||||
apply(plugin = "java-library")
|
apply(plugin = "java-library")
|
||||||
applyCommonJavaConfiguration(
|
applyCommonJavaConfiguration(
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
import org.gradle.kotlin.dsl.get
|
import org.gradle.kotlin.dsl.get
|
||||||
import org.gradle.kotlin.dsl.withType
|
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()
|
applyCommonConfiguration()
|
||||||
apply(plugin = "eclipse")
|
apply(plugin = "eclipse")
|
||||||
apply(plugin = "idea")
|
apply(plugin = "idea")
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
import org.gradle.kotlin.dsl.register
|
import org.gradle.kotlin.dsl.register
|
||||||
import kotlin.collections.set
|
import kotlin.collections.set
|
||||||
|
|
||||||
fun Project.applyPlatformAndCoreConfiguration(javaRelease: Int = 16) {
|
fun Project.applyPlatformAndCoreConfiguration(javaRelease: Int = 17) {
|
||||||
applyCommonConfiguration()
|
applyCommonConfiguration()
|
||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
apply(plugin = "maven-publish")
|
apply(plugin = "maven-publish")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
applyPaperweightAdapterConfiguration(javaRelease = 16)
|
applyPaperweightAdapterConfiguration(javaRelease = 17)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
paperDevBundle("1.17.1-R0.1-20211219.175449-201")
|
paperDevBundle("1.17.1-R0.1-20211219.175449-201")
|
||||||
|
Loading…
Reference in New Issue
Block a user