forked from DevOnTheRocks/SkyClaims
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (72 loc) · 2.16 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
plugins {
id "java"
id "idea"
id "signing"
id "ninja.miserable.blossom" version "1.0.1"
id "com.github.johnrengelman.shadow" version "2.0.1"
id "org.spongepowered.plugin" version "0.8.1"
id 'com.qixalite.spongestart2' version '3.0.1'
}
group = "net.mohron.skyclaims"
version = "${major}.${minor}.${patch}-${api}-${suffix}"
description = "SkyClaims is an Island Management plugin that integrates with GriefPrevention."
if (System.getenv().BUILD_NUMBER != null) {
version += "-${System.getenv().BUILD_NUMBER}"
}
compileJava {
sourceCompatibility = targetCompatibility = "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 "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}")
runtimeOnly("me.ryanhamshire:griefprevention:${griefprevention}")
//compile fileTree(dir: "libs", include: "*.jar")
}
shadowJar {
dependencies {
include(dependency("me.ryanhamshire:griefprevention:${griefprevention}:api"))
include(dependency("io.github.nucleuspowered:nucleus-api:${nucleus}"))
}
}
blossom {
def pluginInfo = "src/main/java/net/mohron/skyclaims/PluginInfo.java"
replaceToken "@NAME@", project.name, pluginInfo
replaceToken "@VERSION@", project.version, pluginInfo
replaceToken "@DESCRIPTION@", project.description, pluginInfo
}
spongestart {
online "false"
minecraft "1.12.2"
type "bleeding"
spongeForge "${spongeforge}"
forge "${forge}"
forgeServerFolder "run/API7/"
}
signing {
required {Project.hasProperty("signing.keyId")}
sign configurations.archives, configurations.shadow
}
build.dependsOn(shadowJar)