-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathbuild.gradle
102 lines (87 loc) · 3.13 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
import org.apache.tools.ant.filters.*
apply plugin: 'java'
apply plugin: "kotlin"
apply plugin: 'maven'
apply plugin: "com.github.johnrengelman.shadow"
group = 'me.elsiff'
version = '3.0.3-SNAPSHOT'
ext.pluginName = 'MoreFish'
ext.author = 'elsiff'
ext.website = 'https://elsiff.me'
ext.mainPackage = 'me.elsiff.morefish'
ext.mainClass = mainPackage + ".MoreFish"
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:4.0.3"
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
repositories {
jcenter()
mavenCentral()
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url "http://nexus.hc.to/content/repositories/pub_releases" }
maven { url "http://repo.citizensnpcs.co/" }
maven { url "http://repo.extendedclip.com/content/repositories/placeholderapi/" }
maven { url "http://repo.dmulloy2.net/nexus/repository/public/" }
maven { url "http://maven.sk89q.com/repo/" }
maven { url "https://repo.aikar.co/content/groups/aikar/" }
maven { url "https://hub.spigotmc.org/nexus/content/groups/public/" }
maven { url 'https://jitpack.io' }
}
compileJava {
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
compileKotlin {
kotlinOptions.javaParameters = true
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.1.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.1.0'
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0"
implementation 'co.aikar:acf-core:0.5.0-SNAPSHOT'
implementation 'co.aikar:acf-paper:0.5.0-SNAPSHOT'
implementation 'com.github.elsiff:egui:1.0.2-SNAPSHOT'
compileOnly 'com.comphenix.protocol:ProtocolLib-API:4.2.1'
compileOnly 'com.sk89q:worldguard:6.1'
compileOnly 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
compileOnly 'net.milkbowl.vault:VaultAPI:1.6'
compileOnly 'net.citizensnpcs:citizensapi:2.0.18-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.7.1'
compileOnly 'com.github.mcMMO-Dev:mcMMO:fa1bbd2'
}
configurations {
testCompile.extendsFrom compileOnly
}
shadowJar {
relocate 'co.aikar.commands', "${mainPackage}.acf"
}
build { dependsOn shadowJar }
processResources {
filteringCharset = 'UTF-8'
filter ReplaceTokens, tokens: [
"pluginName" : pluginName,
"project.version": project.property("version"),
"author" : author,
"website" : website,
"mainClass" : mainClass
]
}