Skip to content

Commit

Permalink
Only grab Pam's mods from CurseForge if it's not a Jenkins build
Browse files Browse the repository at this point in the history
 * An unfortunate fix for the jenkins build exploding because of the single quote in the filenames of Pam's mods
  • Loading branch information
squeek502 committed Mar 4, 2015
1 parent 629f76e commit 68177ba
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions build.gradle
Expand Up @@ -37,19 +37,6 @@ repositories {
maven {
url "http://www.ryanliptak.com/maven/"
}
ivy {
artifactPattern "http://addons.cursecdn.com/files/2223/550/[module] [revision].[ext]"
}
ivy {
artifactPattern "http://addons.cursecdn.com/files/2206/431/[module] [revision].[ext]"
}
ivy {
artifactPattern "http://addons.cursecdn.com/files/2206/430/[module] [revision].[ext]"
}
ivy {
artifactPattern "http://addons.cursecdn.com/files/2206/423/[module] [revision].[ext]"
}

}

// Define properties file
Expand Down Expand Up @@ -102,10 +89,20 @@ dependencies {
compile "tconstruct:TConstruct:${config.minecraft_version}-${config.tcon_version}:deobf"
compile "com.github.glitchfiend.biomesoplenty:BiomesOPlenty:${config.minecraft_version}-${config.bop_version}:deobf"
compile "applecore:AppleCore:${config.minecraft_version}-${config.applecore_version}:deobf"
compile "pam:Pam's HarvestCraft:1.7.10f@jar"
compile "pam:Pam's Random Pants:1.7.2a@zip"
compile "pam:Pam's Temperate Plants:1.7.2b@zip"
compile "pam:Pam's WeeeFlowers:1.7.2b@zip"
}

// the single quotes in these filenames seems to cause problems with
// the jenkins server, so skip this for jenkins builds
if (System.getenv().BUILD_NUMBER != null) {
// 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@jar" }
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
Expand Down

0 comments on commit 68177ba

Please sign in to comment.