Skip to content

Commit

Permalink
Cleanup buildscript, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Jan 31, 2023
1 parent 69444e5 commit cc4c71f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version_numbers
version = project.mod_version
group = project.maven_group

repositories {
Expand Down Expand Up @@ -60,7 +60,7 @@ jar {
modrinth {
token.set(env("MODRINTH_TOKEN"))
projectId.set(modrinth_id)
versionType.set(env("RELEASE_OVERRIDE") ?: "alpha" in mod_version ? "alpha" : !bool("BUILD_RELEASE") || '-' in mod_version ? "beta" : "release")
versionType.set(env("RELEASE_OVERRIDE") ?: mod_version.contains("alpha") ? "alpha" : !bool("BUILD_RELEASE") || mod_version.contains('-') ? "beta" : "release")
def changelogContents = env("CHANGELOG")
if (changelogContents != null) {
changelog.set(changelogContents)
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ org.gradle.jvmargs=-Xmx1G
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.2
loader_version=0.14.11
mod_version= FabricAutoCrafter 1.0.8-1.19.3
mod_version_numbers= 1.0.8
mod_version=1.0.9
maven_group=com.github.tatercertified
archives_base_name=fabricautocrafter
fabric_version=0.68.1+1.19.3
Expand Down

0 comments on commit cc4c71f

Please sign in to comment.