-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (86 loc) · 2.4 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'
id "com.github.johnrengelman.shadow" version "7.1.0"
id 'maven-publish'
}
group = 'me.epic'
version = '2.0.1'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
repositories {
mavenCentral()
maven {
url "https://repo.epicebic.xyz/public"
}
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven { url 'https://jitpack.io' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven {
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
}
dependencies {
implementation 'me.epic:epicspigotlib:1.4.2-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
compileOnly 'org.projectlombok:lombok:1.18.24'
compileOnly 'org.jetbrains:annotations:19.0.0'
implementation 'commons-io:commons-io:2.11.0'
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
implementation 'org.bstats:bstats-bukkit:3.0.0'
compileOnly 'me.clip:placeholderapi:2.11.2'
implementation 'me.epic:betteritemconfig:2.0.2-SNAPSHOT'
}
shadowJar {
archiveFileName = "SimpleChatGames-${project.version}.jar"
relocate 'me.epic.spigotlib', 'me.epic.chatgames.spigotlib'
relocate 'org.bstats', 'me.epic.chatgames.bstats'
destinationDirectory = file("./target/")
archiveClassifier.set('')
minimize {
exclude('me.epic.spigotlib.utils.**')
}
}
build {
dependsOn shadowJar
}
tasks.register('release') {
finalizedBy(clean, build, publish)
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifacts = [shadowJar, javadocJar, sourcesJar]
version = version + "-SNAPSHOT"
}
}
repositories {
maven {
credentials {
username = "epic"
password = System.getenv("EPICREPO_SECRET")
}
url = 'https://repo.epicebic.xyz/public/'
}
}
}