-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (84 loc) · 2.75 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
99
100
101
102
103
104
105
106
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'com.github.hierynomus.license' version '0.16.1'
}
group 'net.royalsaga.minecraft'
version '1.0.1'
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven {
url 'https://papermc.io/repo/repository/maven-public/'
}
maven {
url 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
}
dependencies {
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
testCompileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
api 'me.mattstudios.utils:matt-framework:1.4.6' // Commands - https://github.com/TriumphTeam/triumph-cmds
api 'org.spongepowered:configurate-yaml:4.1.1' // Config - https://github.com/SpongePowered/Configurate/
testCompileOnly 'me.clip:placeholderapi:2.10.10'
}
license {
header file('LICENSE')
encoding 'UTF-8'
mapping('java', 'JAVADOC_STYLE')
include('**/*.java')
}
shadowJar {
relocate('me.mattstudios.mf', 'net.royalsaga.minecraft.modules.libs.commands')
}
task sourceJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc
}
javadoc {
options.encoding = 'UTF-8'
if (options instanceof StandardJavadocDocletOptions) {
def opt = options as StandardJavadocDocletOptions
opt.links(
'https://docs.oracle.com/javase/8/docs/api/',
'https://javadoc.io/doc/org.jetbrains/annotations/20.1.0/',
'https://papermc.io/javadocs/paper/1.16/',
'https://javadoc.io/doc/me.mattstudios.utils/matt-framework/1.4.6/'
)
if (JavaVersion.current().isJava9Compatible()) {
opt.addBooleanOption('html5', true)
opt.addStringOption('-release', '9')
}
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
pom {
url = 'https://github.com/RoyalSaga/modules'
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/mit-license.php'
}
}
scm {
connection = 'scm:git:git://github.com/RoyalSaga/modules.git'
developerConnection = 'scm:git:ssh://github.com/RoyalSaga/modules.git'
url = 'https://github.com/RoyalSaga/modules'
}
}
}
}
repositories {
mavenLocal()
}
}