-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
57 lines (50 loc) · 1.63 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 '7.1.2' // Shadow plugin for bundling dependencies
}
group 'com.takaro' // Retaining group from original build.gradle
version = System.getenv("GITHUB_REF")?.replace("refs/tags/", "") ?: "dev-SNAPSHOT" // Retaining version logic from original build.gradle
repositories {
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url = 'https://maven.enginehub.org/repo/'
}
maven {
url = 'https://repo.codemc.org/repository/maven-public/'
}
maven {
name = "papermc"
url = "https://papermc.io/repo/repository/maven-public/"
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.21.1-R0.1-SNAPSHOT' // Retaining Spigot API version from original build.gradle
implementation 'org.java-websocket:Java-WebSocket:1.5.0'
implementation 'org.apache.logging.log4j:log4j-api:2.17.1'
implementation 'org.apache.logging.log4j:log4j-core:2.17.1'
implementation 'org.slf4j:slf4j-simple:1.7.25'
implementation 'com.google.code.gson:gson:2.8.9'
}
processResources {
filesMatching('**/*.yml') {
expand 'version': project.version
}
filesMatching('**/*.properties') {
expand 'version': project.version
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
shadowJar {
archiveFileName = "TakaroPlugin-${version}-all.jar"
}
tasks.build.dependsOn shadowJar