diff options
| author | Unnoen <Unnoen@users.noreply.github.com> | 2020-02-15 07:02:00 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-14 12:02:00 -0800 |
| commit | eaeed364ba2b2a96ff23194430edbc9d1c624b91 (patch) | |
| tree | 6c10923c0226b5e4d8f4644454648bc215db2ca3 /build.gradle | |
| parent | 27b368124dfc02c7d23dbfd26debe7a162feb3e9 (diff) | |
Update version and support data on README. (#6429)
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/build.gradle b/build.gradle index ff823f9..9b0d650 100644 --- a/build.gradle +++ b/build.gradle @@ -127,18 +127,15 @@ jar { } // Example configuration to allow publishing using the maven-publish task -// we define a custom artifact that is sourced from the reobfJar output task -// and then declare that to be published -// Note you'll need to add a repository here -def reobfFile = file("$buildDir/reobfJar/output.jar") -def reobfArtifact = artifacts.add('default', reobfFile) { - type 'jar' - builtBy 'reobfJar' -} +// This is the preferred method to reobfuscate your jar file +jar.finalizedBy('reobfJar') +// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing +//publish.dependsOn('reobfJar') + publishing { publications { mavenJava(MavenPublication) { - artifact reobfArtifact + artifact jar } } repositories { |
