Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
Add source jar generation as an option.

Useful for Mavenisation, when TCon is just referred to by a Maven dependency. This attaches clean sources without decompiling or checking out from Git.
  • Loading branch information
Sunstrike committed Jul 13, 2014
1 parent af27bcd commit 8b8293f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Expand Up @@ -153,9 +153,16 @@ task libJar(type: Jar) {
classifier = 'lib'
}

// Create Maven source jar
task sourceJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives deobfJar
archives libJar
archives sourceJar
}
// verify the properties exist.. or initialize.
if (!project.hasProperty("keystore_location")) // keystore location
Expand Down

0 comments on commit 8b8293f

Please sign in to comment.