Skip to content

Commit

Permalink
1.20.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
aabssmc committed May 23, 2024
1 parent 46f8f09 commit 036f88f
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "8.1.1"
}

group = "lol.aabss"
version = "2.1"
version = "2.2"

repositories {
mavenCentral()
Expand All @@ -14,36 +13,21 @@ repositories {
}

dependencies {
compileOnly "io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT"
compileOnly "io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT"
compileOnly "me.clip:placeholderapi:2.11.4"
implementation "com.github.SkriptLang:Skript:2.7.0"
implementation "net.kyori:adventure-text-minimessage:4.14.0"
implementation "net.kyori:adventure-platform-bukkit:4.3.1"
implementation 'org.json:json:20240303'
}

shadowJar {
dependencies {
include(dependency("org.json:json:20240303"))
}
}

def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

def oldestJava = 17
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava17Compatible()) {
options.release = targetJavaVersion
}
options.compilerArgs += ['-source', '' + oldestJava, '-target', '' + oldestJava]
}

processResources {
def props = [version: version]
inputs.properties props
Expand Down

0 comments on commit 036f88f

Please sign in to comment.