-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
98 lines (87 loc) · 2.33 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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'
version '2.1.1'
sourceCompatibility = 1.8
repositories {
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots"
}
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
mavenCentral()
}
dependencies {
compileOnly "org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT"
api "com.madgag:animated-gif-lib:1.4"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
shadowJar.classifier "withDependencies"
artifacts {
archives sourcesJar
archives javadocJar
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
}
}
}
}