-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (77 loc) · 2.62 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.21'
id 'java'
id 'idea'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'io.freefair.lombok' version '6.5.0.3'
}
group 'net.mcmerdith.guildedmenu'
version '0.1-dev'
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenCentral()
mavenLocal()
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url "https://repo.glaremasters.me/repository/towny/" }
maven { url "https://github.com/deanveloper/SkullCreator/raw/mvn-repo/" }
maven { url "https://repo.essentialsx.net/releases/" }
maven { url "https://papermc.io/repo/repository/maven-public/" }
maven { url "https://repo.codemc.io/repository/maven-snapshots/" }
maven { url "https://nexus.phoenixdvpt.fr/repository/maven-public/" }
maven { url "https://mvn.lumine.io/repository/maven-public/" }
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
// Plugin dependencies
implementation 'org.ipvp:canvas:1.7.0-SNAPSHOT'
implementation 'dev.dbassett:skullcreator:3.0.1'
implementation 'com.github.Exlll.ConfigLib:configlib-yaml:v4.2.0'
implementation 'net.wesjd:anvilgui:1.5.3-SNAPSHOT'
// API
compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT'
// Integrations
compileOnly 'net.essentialsx:EssentialsX:2.19.0'
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
compileOnly 'com.palmergames.bukkit.towny:towny:0.98.1.0'
compileOnly 'org.wargamer2010:SignShop:3.6.1'
compileOnly 'net.Indyuce:MMOItems-API:6.7.5-SNAPSHOT'
compileOnly 'io.lumine:Mythic-Dist:5.1.4'
compileOnly 'io.lumine:MythicLib-dist:1.4.3-SNAPSHOT'
}
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "net.mcmerdith"
}
shadowJar {
minimize {
// AnvilGUI uses reflective NMS wrappers
exclude(dependency('net.wesjd:anvilgui:.*'))
}
}
tasks.shadowJar.dependsOn tasks.relocateShadowJar
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
processResources {
duplicatesStrategy = 'include'
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
test {
useJUnitPlatform()
}