-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbab7be
commit 478bdd8
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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 | ||
} | ||
} | ||
} | ||
} |