Skip to content

Instantly share code, notes, and snippets.

@hnOsmium0001
Created May 31, 2020 19:14
Show Gist options
  • Save hnOsmium0001/0ac141ab2659a4bee7f36060978ef12d to your computer and use it in GitHub Desktop.
Save hnOsmium0001/0ac141ab2659a4bee7f36060978ef12d to your computer and use it in GitHub Desktop.
Minecraft mod publishing to Bintray
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
}
}
}
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