forked from CubeEngine/AntiGuest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (47 loc) · 1.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
plugins {
id 'java'
id 'eclipse'
}
group = 'de.cubeisland'
version = '4.0.0-SNAPSHOT'
description = 'AntiGuest'
sourceCompatibility = '1.8'
configurations {
shade
implementation.extendsFrom shade
}
repositories {
mavenCentral()
maven {
name 'spigot'
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
}
dependencies {
testImplementation 'junit:junit:4.10'
testImplementation 'org.powermock:powermock-module-junit4:1.4.12'
testImplementation 'org.powermock:powermock-api-mockito:1.4.12'
compileOnly 'org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT'
shade 'org.reflections:reflections:0.9.9-RC1'
shade 'net.sf.trove4j:trove4j:3.0.3'
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep)){
exclude 'META-INF', 'META-INF/**'
}
}
}
processResources {
inputs.properties version: project.version
from (sourceSets.main.resources.srcDirs) {
include 'plugin.yml'
expand version:project.version
}
from (sourceSets.main.resources.srcDirs) {
exclude 'plugin.yml'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}