Skip to content

Commit

Permalink
added support for Minecraft 1.20.3, 1.20.4, 1.20.6 and 1.21 and upgra…
Browse files Browse the repository at this point in the history
…ded libraries
  • Loading branch information
BlitzOffline committed Jul 7, 2024
1 parent 225eeb5 commit dd1594b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
36 changes: 21 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
kotlin("jvm") version "1.9.10"
id("io.github.goooler.shadow") version "8.1.8"
kotlin("jvm") version "2.0.0"
}

group = "com.blitzoffline"
version = "1.0.3"
version = "1.0.4"

repositories {
// Adventure, Configurate, CommandAPI
Expand All @@ -30,23 +32,23 @@ repositories {
}

dependencies {
implementation("dev.jorel:commandapi-bukkit-shade:9.2.0")
implementation("dev.jorel:commandapi-bukkit-shade:9.5.1")

implementation("org.spongepowered:configurate-hocon:4.1.2")
implementation("org.spongepowered:configurate-extra-kotlin:4.1.2")

implementation("net.kyori:adventure-api:4.14.0")
implementation("net.kyori:adventure-text-serializer-plain:4.14.0")
implementation("net.kyori:adventure-text-minimessage:4.14.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.1")
implementation("net.kyori:adventure-api:4.17.0")
implementation("net.kyori:adventure-text-serializer-plain:4.17.0")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.3")

compileOnly("me.clip:placeholderapi:2.11.4")
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
}

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

tasks {
Expand All @@ -57,15 +59,19 @@ tasks {
}
}

kotlinOptions {
jvmTarget = "17"
this.jvmTargetValidationMode = JvmTargetValidationMode.IGNORE

compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
javaParameters = true
}

withType<ShadowJar> {
relocate("kotlin", "com.blitzoffline.giveall.libs.kotlin")
relocate("dev.jorel.commandapi", "com.blitzoffline.giveall.libs.commandapi")
relocate("org.spongepowered.configurate", "com.blitzoffline.giveall.libs.configurate")
relocate("dev.jorel", "com.blitzoffline.giveall.libs.jorel")
relocate("org.spongepowered", "com.blitzoffline.giveall.libs.spongepowered")
relocate("com.typesafe", "com.blitzoffline.giveall.libs.typesafe")
relocate("io.leangen", "com.blitzoffline.giveall.libs.leangen")
relocate("net.kyori", "com.blitzoffline.giveall.libs.kyori")
archiveFileName.set("GiveAll-${project.version}.jar")
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit dd1594b

Please sign in to comment.