Update version and support data on README. (#6429)
This commit is contained in:
parent
27b368124d
commit
eaeed364ba
1 changed files with 6 additions and 9 deletions
15
build.gradle
15
build.gradle
|
@ -127,18 +127,15 @@ jar {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example configuration to allow publishing using the maven-publish task
|
// Example configuration to allow publishing using the maven-publish task
|
||||||
// we define a custom artifact that is sourced from the reobfJar output task
|
// This is the preferred method to reobfuscate your jar file
|
||||||
// and then declare that to be published
|
jar.finalizedBy('reobfJar')
|
||||||
// Note you'll need to add a repository here
|
// 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
|
||||||
def reobfFile = file("$buildDir/reobfJar/output.jar")
|
//publish.dependsOn('reobfJar')
|
||||||
def reobfArtifact = artifacts.add('default', reobfFile) {
|
|
||||||
type 'jar'
|
|
||||||
builtBy 'reobfJar'
|
|
||||||
}
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
artifact reobfArtifact
|
artifact jar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
|
Loading…
Reference in a new issue