-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
54 lines (45 loc) · 1.11 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'java'
id 'kr.entree.spigradle' version '2.4.4'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group = 'io.typst'
repositories {
mavenCentral()
spigotmc()
maven { url = 'https://repo.extendedclip.com/releases/' }
}
dependencies {
shadow project(':bukkit-view-core')
compileOnly spigot('1.21.4')
compileOnly lombok('1.18.36')
compileOnly('me.clip:placeholderapi:2.11.6')
annotationProcessor lombok('1.18.36')
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
spigot {
name = 'BukkitView'
commands {
create('bukkitview') {
aliases = ['view']
}
}
apiVersion = '1.21'
softDepends = ['PlaceholderAPI']
}
tasks.named('shadowJar', ShadowJar) {
configurations = [project.configurations.shadow]
}
tasks.named('assemble') {
dependsOn(shadowJar)
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
test {
useJUnitPlatform()
}