mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 02:39:48 -04:00
cleaned up gradle scripts a little more (pulled version out of base name)
This commit is contained in:
parent
dfa24ac35c
commit
ed43b7fe31
@ -22,11 +22,14 @@ file "build.properties" withReader {
|
||||
|
||||
version = "${config.oc.version}"
|
||||
group = "li.cil.oc"
|
||||
archivesBaseName = "OpenComputers-MC${config.minecraft.version}"
|
||||
archivesBaseName = "OpenComputers"
|
||||
|
||||
if (System.getenv("BUILD_NUMBER") != null)
|
||||
version += ".${System.getenv("BUILD_NUMBER")}"
|
||||
|
||||
ext.simpleVersion = version
|
||||
version = "MC${config.minecraft.version}-${project.version}"
|
||||
|
||||
apply from: 'gradle/forge.gradle'
|
||||
apply from: 'gradle/artifact.gradle'
|
||||
apply from: 'gradle/release.gradle'
|
||||
|
@ -1,7 +1,8 @@
|
||||
jar {
|
||||
classifier = 'universal'
|
||||
manifest {
|
||||
attributes FMLCorePlugin: "li.cil.oc.common.launch.TransformerLoader", FMLCorePluginContainsFMLMod: "true"
|
||||
attributes FMLCorePlugin: "li.cil.oc.common.launch.TransformerLoader"
|
||||
attributes FMLCorePluginContainsFMLMod: "true"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ minecraft {
|
||||
processResources {
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod/info'
|
||||
expand 'version':project.version, 'mcversion':config.minecraft.version
|
||||
expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version
|
||||
}
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
|
@ -3,7 +3,6 @@ apply plugin: 'maven-publish'
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
version "MC${minecraft.version}-${project.version}"
|
||||
artifact apiJar
|
||||
artifact deobfJar
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user