-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
145 lines (123 loc) · 4.08 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
// git commit hash in version
id 'com.palantir.git-version' version "0.12.3"
id "com.github.johnrengelman.shadow" version "8.0.0"
}
shadowJar {
relocate 'cloud.commandframework', 'us.mcparks.showscript.cloud.commandframework'
relocate 'co.aikar.timings.lib', 'us.mcparks.showscript.aikar.timings.lib'
relocate 'org.codemc.worldguardwrapper', 'us.mcparks.showscript.codemc.worldguardwrapper'
}
sourceSets {
main {
java {
srcDirs "src"
}
resources {
srcDirs "res"
}
}
}
processResources {
filesMatching('**/plugin.yml') {
filter {
it.replace('@version@', version)
}
}
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
// worldguard
maven {
url = uri('https://maven.enginehub.org/repo/')
}
// spigot
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
// bungee/other misc
maven {
url = uri('https://oss.sonatype.org/content/repositories/snapshots/')
}
// aikar
maven {
url = uri('https://repo.aikar.co/nexus/content/groups/aikar/')
}
// codemc - worldguardwrapper
maven {
url = uri('https://repo.codemc.org/repository/maven-public/')
}
}
dependencies {
compileOnly 'com.google.guava:guava:21.0'
compileOnly 'org.spigotmc:spigot-api:1.12-R0.1-SNAPSHOT'
compileOnly 'org.bukkit:bukkit:1.12-R0.1-SNAPSHOT'
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:6.1.4-SNAPSHOT'
compileOnly 'com.sk89q.worldguard:worldguard-legacy:6.2'
implementation 'org.codehaus.groovy:groovy-all:3.0.12'
implementation 'cloud.commandframework:cloud-paper:1.8.3'
implementation 'cloud.commandframework:cloud-annotations:1.8.3'
implementation 'cloud.commandframework:cloud-minecraft-extras:1.8.3'
implementation "net.kyori:adventure-platform-bukkit:4.3.0"
implementation "commons-io:commons-io:2.16.1"
implementation "co.aikar:minecraft-timings:1.0.4"
implementation "org.codemc.worldguardwrapper:worldguardwrapper:1.2.1-SNAPSHOT"
}
group = 'us.mcparks'
version = '1.12-1-' + gitVersion()
description = 'ShowScript'
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = 'showscript'
shadowJar.archiveFileName = "showscript.jar"
build.dependsOn(shadowJar)
jar.enabled = false
publishing {
publications {
gpr(MavenPublication) {
artifact file("build/libs/showscript.jar")
pom {
name = "ShowScript"
description = "A Spigot plugin and programming language for scheduling commands to run at specified timecodes"
url = "https://github.com/MCParks/ShowScript"
licenses {
license {
// agpl-3.0
name = "GNU Affero General Public License v3.0"
url = "https://www.gnu.org/licenses/agpl-3.0.html"
}
}
developers {
developer {
id = "MCParks"
name = "MCParks"
email = "[email protected]"
}
}
scm {
connection = "scm:git:git://github.com/MCParks/ShowScript.git"
developerConnection = "scm:git:ssh://github.com/MCParks/ShowScript.git"
url = "https://github.com/MCParks/ShowScript"
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/mcparks/showscript")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
}