Skip to content

Commit

Permalink
Automatically pull Pam's mods from curse
Browse files Browse the repository at this point in the history
 * Now all dependencies should be auto-downloaded by the build.gradle
 * Closes #61
  • Loading branch information
squeek502 committed Feb 17, 2015
1 parent 8e835b9 commit 9843aac
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions build.gradle
@@ -1,7 +1,7 @@
buildscript {
repositories {
mavenCentral()
maven {
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
Expand Down Expand Up @@ -30,7 +30,7 @@ repositories {
name 'CB Maven FS'
url "http://chickenbones.net/maven/"
}
maven {
maven {
name "ProfMobius Maven FS"
url "http://mobiusstrip.eu/maven"
}
Expand Down Expand Up @@ -91,6 +91,16 @@ dependencies {
compile "applecore:AppleCore:${config.minecraft_version}-${config.applecore_version}:deobf"
}

// note: the 'repository' url changes with each version
repositories { ivy { artifactPattern "http://addons.cursecdn.com/files/2223/550/[module] [revision].[ext]" } }
dependencies { compile "pam:Pam's HarvestCraft:1.7.10f" }
repositories { ivy { artifactPattern "http://addons.cursecdn.com/files/2206/431/[module] [revision].[ext]"} }
dependencies { compile "pam:Pam's Random Pants:1.7.2a@zip"}
repositories { ivy { artifactPattern "http://addons.cursecdn.com/files/2206/430/[module] [revision].[ext]"} }
dependencies { compile "pam:Pam's Temperate Plants:1.7.2b@zip"}
repositories { ivy { artifactPattern "http://addons.cursecdn.com/files/2206/423/[module] [revision].[ext]"} }
dependencies { compile "pam:Pam's WeeeFlowers:1.7.2b@zip"}

processResources
{
// this will ensure that this task is redone when the versions change.
Expand Down Expand Up @@ -122,7 +132,7 @@ jar {
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
manifest {
manifest {
attributes 'FMLAT': 'HungerOverhaul_at.cfg'
}
}
Expand All @@ -143,7 +153,7 @@ if (!project.hasProperty("sftp_key"))
if (!project.hasProperty("keystore_user_password")) // keystore user pass
ext.keystore_user_password = "";
if (System.getenv().KSK_PW != null)
ext.keystore_user_password =System.getenv().KSK_PW;
ext.keystore_user_password =System.getenv().KSK_PW;
task("signJar", dependsOn: "build")
{
inputs.file jar.getArchivePath()
Expand All @@ -156,8 +166,8 @@ task("signJar", dependsOn: "build")
onlyIf {
return keystore_location != "."
}
println "archive path >> "+jar.getArchivePath()
println jar.getArchivePath()
println "archive path >> "+jar.getArchivePath()
println jar.getArchivePath()
// the actual action.. sign the jar.
doLast {
ant.signjar(
Expand All @@ -166,7 +176,7 @@ task("signJar", dependsOn: "build")
keystore: keystore_location,
alias: keystore_user_alias,
storepass: keystore_user_password,
keypass: keystore_user_password
keypass: keystore_user_password
)
}
}
Expand Down

0 comments on commit 9843aac

Please sign in to comment.