Skip to content

Commit

Permalink
Merge branch 'refs/heads/1.20' into 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Aug 28, 2024
2 parents cd06100 + a0016b7 commit ce8fdbf
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ plugins {
allprojects {
apply plugin: "maven-publish"
apply plugin: "fabric-loom"
apply plugin: "com.github.breadmoirai.github-release"
apply plugin: "com.modrinth.minotaur"

version = "$baseVersion+$branch"
archivesBaseName = project == rootProject ? slug : "${slug}-${project.name}"
Expand Down Expand Up @@ -131,8 +129,8 @@ allprojects {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId "switchy" + '-' + project.name
version "$project.baseVersion+$project.branch"
artifactId "${rootProject.slug}-${project.name}"
version "${rootProject.baseVersion}+${rootProject.branch}"
}
}
}
Expand All @@ -151,7 +149,6 @@ dependencies {
modLocalRuntime libs.serverTranslationsApi
}


githubRelease {
token = "$System.env.GITHUB_TOKEN"
owner = project.user
Expand All @@ -162,7 +159,7 @@ githubRelease {
releaseName = "v${baseVersion}"
allowUploadToExisting = true
generateReleaseNotes = true
body = !file("CHANGELOG.md").exists() ? "" : rootProject.file("CHANGELOG.md").text
body = !rootProject.file("CHANGELOG.md").exists() ? "" : rootProject.file("CHANGELOG.md").text
}

modrinth {
Expand All @@ -172,17 +169,16 @@ modrinth {
uploadFile = remapJar
gameVersions = compatibleVersions.split(", ").toList()
loaders = compatibleLoaders.split(", ").toList()
changelog = !file("CHANGELOG.md").exists() ? "" : rootProject.file("CHANGELOG.md").text + "\n\nChangelog: https://github.com/${user}/${slug}/releases/tag/v${baseVersion}+${tagBranch}"
changelog = !rootProject.file("CHANGELOG.md").exists() ? "" : rootProject.file("CHANGELOG.md").text + "\n\nChangelog: https://github.com/${user}/${slug}/releases/tag/v${baseVersion}+${tagBranch}"
syncBodyFrom = rootProject.file("README.md").text
dependencies {
required.version libs.fapi.get().getName(), libs.versions.fapi.get()
optional.version libs.owo.get().getName(), libs.versions.owo.get()
optional.version libs.fabrictailor.get().getName(), libs.versions.fabrictailor.get()
optional.version libs.pehkui.get().getName(), libs.versions.pehkui.get()
optional.version libs.origins.get().getName(), libs.versions.origins.get()
optional.version libs.fabrication.get().getName(), libs.versions.fabrication.get()
optional.version libs.styledNicknames.get().getName(), libs.versions.styledNicknames.get()
optional.version libs.figura.get().getName(), libs.versions.figura.get()
optional.version libs.fabrictailor.get().getName(), libs.versions.fabrictailor.get()
optional.version libs.origins.get().getName().replace("-fabric", ""), libs.versions.origins.get().replace("v", "")
optional.project libs.pehkui.get().getName()
optional.project libs.figura.get().getName()
}
}

Expand Down

0 comments on commit ce8fdbf

Please sign in to comment.