-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (69 loc) · 2.18 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
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group 'io.rqndomhax'
version '1.0-SNAPSHOT'
description 'RqndomUHC API by RqndomHax'
compileJava.getOptions().setEncoding("UTF-8")
repositories {
mavenCentral()
maven { url 'https://repo.dmulloy2.net/repository/public/' }
mavenLocal()
}
dependencies {
compileOnly 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT'
compileOnly 'com.comphenix.protocol:ProtocolLib:4.7.0'
implementation 'xyz.xenondevs:particle:1.5.1'
implementation 'fr.mrmicky:fastboard:1.2.0'
}
java {
withJavadocJar()
withSourcesJar()
}
shadowJar {
relocate 'fr.mrmicky.fastboard', 'io.rqndomhax.fastboard'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'rqndomuhc-api'
artifact shadowJar
pom {
name = 'RqndomUHC'
description = 'An API for Minecraft UHC Plugins'
url = 'https://github.com/RqndomHax/RqndomUHC-API'
developers {
developer {
id = 'rqndomhax'
name = 'RqndomHax'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/RqndomHax/RqndomUHC-API.git'
developerConnection = 'scm:git:[email protected]:RqndomHax/RqndomUHC-API.git'
url = 'https://github.com/RqndomHax/RqndomUHC-API'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/releases/'
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
allowInsecureProtocol = false
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}