diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-04-25 01:34:58 +0100 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-04-25 01:34:58 +0100 |
| commit | 453d20a124a81bbd26ede4f405298e0ede3f23e4 (patch) | |
| tree | 93f6f74150a8fc03fe2d35b0d853e3416c033ca5 /build.gradle | |
| parent | 1db974998c4e5242cd2603020e6c8ebfea5b454e (diff) | |
- Changed the build.gradle file to output more fancy files and proper build names
- Fixed a problem with the Golden Object crashing if it doesn't have an object in the Jewelry Modifier GUI
- Improved the GUI of the Jewelry Modifier so it keeps the selection even if you re-size the screen and added a button for adding items for Golden Objects
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 70 |
1 files changed, 45 insertions, 25 deletions
diff --git a/build.gradle b/build.gradle index 8b041df..7236e70 100644 --- a/build.gradle +++ b/build.gradle @@ -17,47 +17,67 @@ buildscript { apply plugin: 'forge' -version = "2.0.0" -group= "darkknight.jewelrycraft" // http://maven.apache.org/guides/mini/guide-naming-conventions.html -archivesBaseName = "Jewelrycraft" +project.ext.buildnumber = "undefined" +if (System.getenv().BUILD_NUMBER) project.buildnumber = System.getenv().BUILD_NUMBER + +version = "1.7.10-alpha-" + project.buildnumber +group= "darkknight.jewelrycraft2" +archivesBaseName = "Jewelrycraft 2" + +sourceCompatibility = JavaVersion.VERSION_1_7 +targetCompatibility = JavaVersion.VERSION_1_7 minecraft { version = "1.7.10-10.13.0.1208" assetDir = "eclipse/assets" } -dependencies { - // you may put jars on which you depend on in ./libs - // or you may define them like so.. - //compile "some.group:artifact:version:classifier" - //compile "some.group:artifact:version" - - // real examples - //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env - //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env - - // for more info... - // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html - // http://www.gradle.org/docs/current/userguide/dependency_management.html - -} - -processResources -{ - // this will ensure that this task is redone when the versions change. +processResources{ inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version - // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' - // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version } - // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } + +sourceSets { + main { + output.resourcesDir = output.classesDir + java { + srcDir 'java' + } + resources { + srcDir 'resources' + } + } +} + +jar { + classifier = 'universal' +} + +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'src' + from sourceSets.main.allSource +} + +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +task devJar(type: Jar) { + classifier = 'dev' + from sourceSets.main.output +} + +artifacts { + archives sourcesJar, javadocJar, devJar +} |
