Skip to content

Commit

Permalink
Add bintray repo
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyJayJay committed Jul 21, 2020
1 parent dbab7be commit 478bdd8
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.0.0'
id 'com.jfrog.bintray' version '1.8.4'
}

group 'com.github.johnnyjayjay'
Expand Down Expand Up @@ -42,4 +43,56 @@ artifacts {
archives shadowJar
}

bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
publications = ["SpigotMaps"]
pkg {
version {
name = project.version
released = new Date()
}
repo = "spigot-maps"
name = "spigot-maps"
vcsUrl = "https://github.com/johnnyjayjay/spigot-maps.git"
}
publish = true
}

def pomConfig = {
licenses {
license {
name "GNU Lesser General Public License, Version 3"
url "https://www.gnu.org/licenses/lgpl-3.0.html"
}
}
developers {
developer {
id "johnnyjayjay"
email "[email protected]"
}
}
scm {
url "https://github.com/johnnyjayjay/spigot-maps"
}
}

publishing {
publications {
SpigotMaps(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId "com.github.johnnyjayjay"
artifactId "spigot-maps"
version version.toString()
pom.withXml {
def root = asNode()
root.appendNode("name", "spigot-maps")
root.appendNode("description", "A library to simplify the use of customised maps in Spigot")
root.appendNode("url", "https://github.com/johnnyjayjay/spigot-maps/")
root.children().last() + pomConfig
}
}
}
}

0 comments on commit 478bdd8

Please sign in to comment.