-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (54 loc) · 1.49 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.21'
}
group = 'click.seichi'
version = "1.0.0.${versionSuffix}"
java {
sourceCompatibility = "1.17"
targetCompatibility = "1.17"
}
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'sk89q'
url = 'https://maven.enginehub.org/repo/'
}
}
configurations {
embed
implementation.extendsFrom(embed)
}
dependencies {
implementation 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
implementation 'com.sk89q.worldguard:worldguard-bukkit:7.0.7'
implementation 'com.sk89q.worldedit:worldedit-bukkit:7.2.20'
implementation 'com.sk89q.worldedit:worldedit-core:7.2.20'
embed 'org.jetbrains.kotlin:kotlin-stdlib'
embed 'com.google.code.gson:gson:2.11.0'
embed 'com.squareup.okhttp3:okhttp:4.12.0'
embed 'com.michael-bull.kotlin-result:kotlin-result:2.0.1'
testImplementation 'io.kotest:kotest-runner-junit5-jvm:5.9.1'
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
}
test {
useJUnitPlatform()
}