Skip to content

Commit

Permalink
Gradle build change
Browse files Browse the repository at this point in the history
Add dev and src jars to the build process.
  • Loading branch information
GenuineSounds committed Jan 30, 2015
1 parent 0d7a395 commit 8759401
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,20 @@ processResources {
exclude 'mcmod.info'
}
}

task deobfJar(type: Jar, dependsOn: 'classes') {
from sourceSets.main.output
classifier = 'dev'
}

task sourceJar(type: Jar, dependsOn: 'sourceMainJava') {
from sourceSets.main.allSource
classifier = 'src'
}

task javadocJar(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
classifier = 'javadoc'
}

tasks.build.dependsOn deobfJar, sourceJar

0 comments on commit 8759401

Please sign in to comment.