mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Build script cleanup.
This commit is contained in:
parent
42b96045db
commit
aa4601c276
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Gradle
|
||||||
|
/.gradle
|
||||||
|
/build
|
||||||
|
|
||||||
|
# Eclipse
|
||||||
|
/.classpath
|
||||||
|
/.project
|
||||||
|
/.settings
|
||||||
|
/bin
|
||||||
|
|
||||||
|
# IntelliJ IDEA
|
||||||
|
/*.iml
|
||||||
|
/*.ipr
|
||||||
|
/*.iws
|
||||||
|
/.idea
|
||||||
|
/out
|
||||||
|
|
||||||
|
# Debugging
|
||||||
|
/eclipse
|
||||||
|
/run
|
43
build.gradle
43
build.gradle
@ -29,5 +29,44 @@ if (System.getenv("BUILD_NUMBER") != null)
|
|||||||
ext.simpleVersion = version
|
ext.simpleVersion = version
|
||||||
version = "MC${config.minecraft.version}-${project.version}"
|
version = "MC${config.minecraft.version}-${project.version}"
|
||||||
|
|
||||||
apply from: 'gradle/forge.gradle'
|
repositories {
|
||||||
apply from: 'gradle/artifact.gradle'
|
maven {
|
||||||
|
name = "oc"
|
||||||
|
url = "http://maven.cil.li/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile "li.cil.oc:OpenComputers:MC${config.minecraft.version}-${config.oc.version}:api"
|
||||||
|
}
|
||||||
|
|
||||||
|
minecraft {
|
||||||
|
version = "${config.minecraft.version}-${config.forge.version}"
|
||||||
|
|
||||||
|
replaceIn "li/cil/occ/OpenComponents.java"
|
||||||
|
replace "@VERSION@", project.simpleVersion
|
||||||
|
}
|
||||||
|
|
||||||
|
processResources {
|
||||||
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
|
include 'mcmod.info'
|
||||||
|
expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version
|
||||||
|
}
|
||||||
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
|
exclude 'mcmod.info'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
classifier = 'universal'
|
||||||
|
}
|
||||||
|
|
||||||
|
// because the normal default jar task has been modified to be obfuscated
|
||||||
|
task deobfJar(type: Jar) {
|
||||||
|
from sourceSets.main.output
|
||||||
|
classifier = 'deobf'
|
||||||
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives deobfJar
|
||||||
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
minecraft.version=1.6.4
|
minecraft.version=1.6.4
|
||||||
forge.version=9.11.1.964
|
forge.version=9.11.1.964
|
||||||
oc.version=1.3.0.433-beta.1
|
oc.version=1.3.+
|
||||||
occ.version=0.2.0
|
occ.version=0.2.0
|
@ -1,13 +0,0 @@
|
|||||||
jar {
|
|
||||||
classifier = 'universal'
|
|
||||||
}
|
|
||||||
|
|
||||||
// because the normal default jar task has been modified to be obfuscated
|
|
||||||
task deobfJar(type: Jar) {
|
|
||||||
from sourceSets.main.output
|
|
||||||
classifier = 'deobf'
|
|
||||||
}
|
|
||||||
|
|
||||||
artifacts {
|
|
||||||
archives deobfJar
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
repositories {
|
|
||||||
maven {
|
|
||||||
name = "oc"
|
|
||||||
url = "http://maven.cil.li/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compile group: 'li.cil.oc', name: 'OpenComputers', version: "MC${config.minecraft.version}-${config.oc.version}", classifier: 'api'
|
|
||||||
}
|
|
||||||
|
|
||||||
minecraft {
|
|
||||||
version = "${config.minecraft.version}-${config.forge.version}"
|
|
||||||
|
|
||||||
replaceIn "li/cil/occ/OpenComponents.java"
|
|
||||||
replace "@VERSION@", project.simpleVersion
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'mcmod.info'
|
|
||||||
expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version
|
|
||||||
}
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'mcmod.info'
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
apply plugin: 'maven-publish'
|
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
mavenJava(MavenPublication) {
|
|
||||||
artifact apiJar
|
|
||||||
artifact deobfJar
|
|
||||||
}
|
|
||||||
}
|
|
||||||
repositories {
|
|
||||||
maven {
|
|
||||||
url "${config.maven.url}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user