-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (80 loc) · 2.39 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
plugins {
id "java"
id "idea"
id "signing"
id "ninja.miserable.blossom" version "1.0.1"
id "org.spongepowered.plugin" version "0.8.1"
id "com.qixalite.spongestart2" version "4.0.0"
id "com.github.johnrengelman.shadow" version "2.0.1"
id "io.franzbecker.gradle-lombok" version "1.14"
}
group = "rocks.gameonthe.pdm"
version = "${major}.${minor}.${patch}-${api}-${suffix}"
description = "Personal Dim Manager helps manage player & team dims."
if (System.getenv().BUILD_NUMBER != null) {
version += "-${System.getenv().BUILD_NUMBER}"
}
compileJava {
setSourceCompatibility(JavaVersion.VERSION_1_8)
setTargetCompatibility(JavaVersion.VERSION_1_8)
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
jcenter()
maven {
name = "Sponge"
url = "http://repo.spongepowered.org/maven"
}
maven {
name = "Forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "Nucleus"
url = "http://repo.drnaylor.co.uk/artifactory/list/minecraft"
}
maven {
name = "bStats"
url = "http://repo.bstats.org/content/repositories/releases/"
}
maven {
name = "LuckPerms"
url = "https://repo.lucko.me/"
}
}
dependencies {
compile "org.spongepowered:spongeapi:${spongeapi}"
compile "me.ryanhamshire:griefprevention:${griefprevention}:api"
compile "io.github.nucleuspowered:nucleus-api:${nucleus}"
compile "org.bstats:bstats-sponge:${bstats}"
compile "org.flywaydb:flyway-core:${flyaway}"
runtimeOnly "me.ryanhamshire:griefprevention:${griefprevention}"
//compile fileTree(dir: "libs", include: "*.jar")
}
shadowJar {
dependencies {
include(dependency("org.bstats:bstats-sponge:${bstats}"))
include(dependency("org.flywaydb:flyway-core:${flyaway}"))
}
}
lombok {
version = "1.18.4"
}
blossom {
def pluginInfo = "src/main/java/rocks/gameonthe/pdm/PluginInfo.java"
replaceToken "@NAME@", project.name, pluginInfo
replaceToken "@VERSION@", project.version, pluginInfo
replaceToken "@DESCRIPTION@", project.description, pluginInfo
}
spongestart {
online "false"
minecraft "1.12.2"
forgeServerFolder "${rootProject.projectDir}/run/API7/"
}
signing {
required {Project.hasProperty("signing.keyId")}
sign configurations.archives, configurations.shadow
}
build.dependsOn(shadowJar)