forked from sammyt291/FineHarvest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (84 loc) · 2.61 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
103
104
105
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
description = 'FineHarvest'
group = 'finetree.org'
version = '1.4.7'
repositories {
mavenCentral()
maven {
url = uri("https://maven.enginehub.org/repo/")
}
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://oss.sonatype.org/content/groups/public/')
}
maven {
url = uri('https://redempt.dev')
}
maven {
url = uri('https://maven.enginehub.org/repo/')
}
maven {
url = uri('https://nexus.neetgames.com/repository/maven-releases/')
}
maven {
url = uri('https://jitpack.io')
}
maven {
url = uri('https://repo.papermc.io/repository/maven-public/')
}
maven {
url = uri('https://repo.glaremasters.me/repository/bloodshot')
}
maven {
url = uri('https://repo.essentialsx.net/releases/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'com.github.Redempt:RedLib:6.5.2.1'
compileOnly 'org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT'
compileOnly 'com.gmail.nossr50.mcMMO:mcMMO:2.1.225' exclude group: 'commons-io'
compileOnly 'com.github.Archy-X:AureliumSkills:Beta1.3.23'
compileOnly 'com.github.TechFortress:GriefPrevention:16.18'
compileOnly 'com.github.TownyAdvanced:Towny:0.100.3.13'
compileOnly 'com.github.angeschossen:LandsAPI:6.37.0'
compileOnly 'dev.espi:protectionstones:2.10.2'
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.7'
implementation(platform("com.intellectualsites.bom:bom-newest:1.39"))
compileOnly 'com.intellectualsites.plotsquared:plotsquared-core'
compileOnly 'com.griefdefender:api:2.1.0-SNAPSHOT'
compileOnly 'net.essentialsx:EssentialsX:2.19.0'
}
java.sourceCompatibility = JavaVersion.VERSION_17
shadowJar {
archiveFileName = project.description + "-" + version + ".jar"
relocate 'redempt.redlib', 'org.finetree.fineharvest.redlib'
// Check if running in GitHub Actions
if (System.getenv("GITHUB_ACTIONS") == null) {
destinationDirectory = file('X:/plugins')
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc).configureEach {
options.encoding = 'UTF-8'
}
processResources {
def props = [version: version, name: project.description]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}