Skip to content

Commit

Permalink
Made project jarSign compatible
Browse files Browse the repository at this point in the history
Unified build-system; updated gradle and forge
  • Loading branch information
Dream-Master committed Mar 7, 2019
1 parent 471125e commit 8dce943
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
26 changes: 24 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ buildscript {
}

apply plugin: 'forge'
apply plugin: 'signing'

version = "1.15"
file "build.properties" withReader {
def prop = new Properties()
prop.load(it)
ext.config = new ConfigSlurper().parse prop
}

version = "${config.avaritia.version}"
group= "fox.spiteful.avaritia" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Avaritia"

minecraft {
version = "1.7.10-10.13.4.1614-1.7.10"
version = "${config.forge.version}-${config.minecraft.version}"
runDir = "eclipse"
}

Expand Down Expand Up @@ -57,3 +64,18 @@ task deobfJar(type: Jar) {

deobfJar.dependsOn classes
assemble.dependsOn deobfJar

task signJar(dependsOn: 'reobf'){
doLast {
ant.signjar(
destDir: jar.destinationDir,
jar: jar.getArchivePath(),
alias: findProperty('keyStoreAlias') ?: '',
keystore: findProperty('keyStore') ?: '',
storepass: findProperty('keyStorePass') ?: '',
digestalg: findProperty('signDigestAlg') ?: '',
tsaurl: findProperty('signTSAurl') ?: '',
verbose: true
)
}
}
3 changes: 3 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minecraft.version=1.7.10
forge.version=10.13.4.1614
avaritia.version=1.15
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip

0 comments on commit 8dce943

Please sign in to comment.