mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-22 03:45:54 -04:00
39 lines
1.2 KiB
Groovy
39 lines
1.2 KiB
Groovy
compileScala {
|
|
repositories {
|
|
ivy {
|
|
name "forge-ext"
|
|
artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]"
|
|
}
|
|
}
|
|
dependencies {
|
|
compile name: 'CodeChickenLib', version: "${config.minecraft.version}-${config.ccl.version}", ext: 'jar'
|
|
compile name: 'ForgeMultipart', version: "${config.minecraft.version}-${config.fmp.version}", ext: 'jar'
|
|
}
|
|
}
|
|
|
|
minecraft {
|
|
version = "${config.minecraft.version}-${config.forge.version}"
|
|
|
|
replaceIn "li/cil/oc/OpenComputers.scala"
|
|
replace "@VERSION@", project.simpleVersion
|
|
if (project.hasProperty("keystore_fingerprint"))
|
|
replace "@FINGERPRINT@", keystore_fingerprint
|
|
}
|
|
|
|
processResources {
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include 'mcmod.info'
|
|
expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version
|
|
}
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include 'reference.conf'
|
|
filter { line ->
|
|
line.replaceAll("@VERSION@", project.simpleVersion)
|
|
}
|
|
}
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
exclude 'mcmod.info'
|
|
exclude 'reference.conf'
|
|
}
|
|
}
|