Skip to content

Commit

Permalink
Improve build process
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeinerLP committed Jun 14, 2024
1 parent 0c03a57 commit 68fbd69
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (!File("$rootDir/.git").exists()) {
group = "net.onelitefeather"
version = "1.3.0"

val minecraftVersion = "1.20.4"
val minecraftVersion = "1.20.6"
val supportedMinecraftVersions = listOf(
"1.16.5",
"1.17",
Expand All @@ -42,6 +42,11 @@ val supportedMinecraftVersions = listOf(
"1.19.4",
"1.20",
"1.20.1",
"1.20.2",
"1.20.3",
"1.20.4",
"1.20.5",
"1.20.6",
)

repositories {
Expand All @@ -63,7 +68,7 @@ dependencies {

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceSets.all {
languageSettings {
Expand All @@ -74,7 +79,7 @@ kotlin {

bukkit {
main = "dev.themeinerlp.attollo.Attollo"
apiVersion = "1.16"
apiVersion = "1.19"
authors = listOf("TheMeinerLP")
foliaSupported = true

Expand Down Expand Up @@ -132,7 +137,7 @@ tasks {
}

val branch = rootProject.branchName()
val baseVersion = "1.0.0"// publishData.getVersion(false)
val baseVersion = publishData.getVersion(false)
val isRelease = !baseVersion.contains('-')
val isMainBranch = branch == "master"
if (!isRelease || isMainBranch) { // Only publish releases from the main branch
Expand Down

0 comments on commit 68fbd69

Please sign in to comment.