Gradle / maven

Fix archive names (includes project/module name + version)
Generate MD5 hash alongside jar
Improve build time
- asynchronous building
- enable daemon
- change scope of a few statements
- skip building of 3 jars
Add filtering to the plugin.yml (maven/gradle)
Bump version to 3.3.0 in pom
This commit is contained in:
Jesse Boyd
2016-02-26 23:55:21 +11:00
parent f921db937a
commit c7870b617c
8 changed files with 49 additions and 20 deletions

View File

@ -1,6 +1,3 @@
apply plugin: 'eclipse'
apply plugin: 'idea'
buildscript {
repositories {
jcenter()
@ -13,7 +10,9 @@ buildscript {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
compile project(':Core')
@ -33,7 +32,6 @@ repositories {
url = "https://repo.spongepowered.org/maven"
}
}
minecraft {
version = "1.8.9-11.15.1.1742"
mappings = "snapshot_20160204"
@ -48,10 +46,17 @@ processResources {
'mcVersion': project.minecraft.version
}
}
shadowJar {
dependencies {
include(dependency(':Core'))
}
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
}
shadowJar.doLast {
task ->
ant.checksum file: task.archivePath
}
reobf {