mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 11:07:23 -04:00
Gradle: Create 1.8.0-snapshot mod versions, include build day in filename, do not include Git ref in mod version
This commit is contained in:
parent
f1323cb5ca
commit
bd7c9e72bb
10
build.gradle
10
build.gradle
@ -39,6 +39,10 @@ file "build.properties" withReader {
|
||||
}
|
||||
|
||||
version = "${mod_version}"
|
||||
if (version.endsWith("-snapshot")) {
|
||||
version += "-" + (new Date().format('yyyyMMdd'))
|
||||
}
|
||||
|
||||
group = "li.cil.oc"
|
||||
archivesBaseName = "OpenComputers"
|
||||
|
||||
@ -169,19 +173,19 @@ dependencies {
|
||||
minecraft {
|
||||
version = "${config.minecraft.version}-${config.forge.version}"
|
||||
|
||||
replace "@VERSION@", project.simpleVersion
|
||||
replace "@VERSION@", "${mod_version}"
|
||||
replace "/*@MCVERSIONDEP@*/", ", acceptedMinecraftVersions = \"[${config.minecraft.version},${config.minecraft.version}+)\""
|
||||
}
|
||||
|
||||
processResources {
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod.info'
|
||||
expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version
|
||||
expand 'version': "${mod_version}", 'mcversion': config.minecraft.version
|
||||
}
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'application.conf'
|
||||
filter { line ->
|
||||
line.replaceAll("@VERSION@", project.simpleVersion)
|
||||
line.replaceAll("@VERSION@", "${mod_version}")
|
||||
}
|
||||
}
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
|
@ -1 +1 @@
|
||||
mod_version=0.0.0
|
||||
mod_version=1.8.0-snapshot
|
||||
|
Loading…
x
Reference in New Issue
Block a user