Created
May 31, 2020 19:14
-
-
Save hnOsmium0001/0ac141ab2659a4bee7f36060978ef12d to your computer and use it in GitHub Desktop.
Minecraft mod publishing to Bintray
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bintray { | |
user = findProperty('bintray.user') | |
key = findProperty('bintray.apiKey') | |
publications = ['BintrayPublication'] | |
pkg { | |
repo = 'Maven' | |
name = '<your-artifact-id>' | |
licenses = ['<your-license>'] | |
vcsUrl = '<your-git-repository-url>' | |
version { | |
name = "$project.version" | |
released = new Date() | |
} | |
} | |
} | |
publishing { | |
publications { | |
BintrayPublication(MavenPublication) { | |
artifact remapJar | |
groupId project.group | |
artifactId '<your-artifact-id>' | |
version project.version | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bintray { | |
user = findProperty('bintray.user') | |
key = findProperty('bintray.apiKey') | |
publications = ['BintrayPublication'] | |
pkg { | |
repo = 'Maven' | |
name = '<your-artifact-id>' | |
licenses = ['your-license'] | |
vcsUrl = '<your-git-repository-url>' | |
version { | |
name = "$project.version" | |
released = new Date() | |
} | |
} | |
} | |
def reobfFile = file("$buildDir/reobfJar/output.jar") | |
def reobfArtifact = artifacts.add('default', reobfFile) { | |
type 'jar' | |
builtBy 'reobfJar' | |
} | |
publishing { | |
publications { | |
BintrayPublication(MavenPublication) { | |
artifact reobfArtifact | |
groupId project.group | |
artifactId '<your-artifact-id>' | |
version project.version | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment