Skip to content

Commit

Permalink
Merge pull request #97 from maggi373/1.12.2
Browse files Browse the repository at this point in the history
update to 9.12.4
  • Loading branch information
maggi373 authored Feb 20, 2023
2 parents cadf20c + 1013fa2 commit 672d9ba
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 235 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }}
MAVEN_REPO: ${{ secrets.MAVEN_DEVREPO }}
BUILD_VER: '-${{ github.run_number }}'
BUILD_VER: ${{ github.run_number }}
27 changes: 14 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ repositories {
}


version = "${minecraft_version}-${mod_version}"
if (System.getenv("BUILD_VER") == null){
mod_version = mod_version
} else {
mod_version = mod_version + "-" + System.getenv("BUILD_VER")
}
version = minecraft_version + "-" + mod_version
group = "mekanism"
archivesBaseName = "Mekanism-Community-Edition"
libsDirName = "../output"
Expand All @@ -65,7 +70,7 @@ minecraft {
runDir = "run"
useDepAts = true

replace '${version}', project.version
replace '${version}', mod_version
replaceIn "Mekanism.java"
replaceIn "MekanismGenerators.java"
replaceIn "MekanismTools.java"
Expand Down Expand Up @@ -109,14 +114,14 @@ dependencies {
}

processResources {
inputs.property "version", project.version
inputs.property "version", mod_version
inputs.property "mc_version", minecraft_version

from(sourceSets.main.resources.srcDirs) {
include "mcmod.info"

// replace version and mcversion
expand "version": project.version, "mc_version": minecraft_version
expand "version": mod_version, "mc_version": minecraft_version
}

// copy everything else, thats not the mcmod.info
Expand Down Expand Up @@ -145,7 +150,7 @@ task coreJar(type: Jar) {

from('etc/core') {
include '*.info'
expand 'version':project.version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
expand 'version':mod_version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
}

from zipTree(jar.outputs.getFiles().getSingleFile()).matching {
Expand All @@ -161,7 +166,7 @@ task alltJar(type: Jar) {

from('etc/all') {
include '*.info'
expand 'version':project.version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
expand 'version':mod_version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
}

from zipTree(jar.outputs.getFiles().getSingleFile()).matching {
Expand All @@ -177,7 +182,7 @@ task toolsJar(type: Jar) {

from('etc/tools') {
include '*.info'
expand 'version':project.version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
expand 'version':mod_version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
}

from zipTree(jar.outputs.getFiles().getSingleFile()).matching {
Expand All @@ -191,7 +196,7 @@ task generatorsJar(type: Jar) {

from('etc/generators') {
include '*.info'
expand 'version':project.version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
expand 'version':mod_version,'mc_version':minecraft_version,'mcmp_version':mcmp_version
}

from zipTree(jar.outputs.getFiles().getSingleFile()).matching {
Expand Down Expand Up @@ -252,11 +257,7 @@ publishing {
mavenJava(MavenPublication) {
artifactId = project.archivesBaseName
groupId = project.group
if (System.getenv("BUILD_VER") == null){
version = project.version
} else {
version = project.version + System.getenv("BUILD_VER")
}
version = project.version
artifacts = [toolsJar, coreJar, generatorsJar, alltJar, apiJar]
pom {
name.set("Mekanism Community Edition")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
minecraft_version=1.12.2
mappings_version=stable_39
forge_version=14.23.5.2847
mod_version=9.12.3
mod_version=9.12.4

mcmp_version=2.5.3
jei_version=4.15.0.289
Expand Down
Loading

0 comments on commit 672d9ba

Please sign in to comment.