-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
57 lines (43 loc) · 1.12 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
plugins {
id 'java'
id("com.github.johnrengelman.shadow") version "8.0.0"
}
group = 'dev.var.npc.api'
version = '1.0-SNAPSHOT'
apply from: new File(rootDir, "libs.gradle")
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/groups/public/" }
// Spigot
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
// ProtocolLib
maven { url "https://repo.dmulloy2.net/repository/public/" }
}
dependencies {
compileOnly libs.bukkit
compileOnly libs."protocol-lib"
compileOnly libs.jetbrains
implementation libs.slf4j
implementation libs.fastutil
compileOnly libs.lombok
annotationProcessor libs.lombok
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
processResources {
inputs.property "version", project.version
filesMatching("plugin.yml") {
expand "version": project.version
}
}
tasks {
compileJava { options.encoding = 'UTF-8' }
shadowJar {
archiveFileName = 'FakePlayerApi.jar'
}
build {
dependsOn shadowJar
}
}