-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (44 loc) · 1.13 KB
/
build.gradle
File metadata and controls
54 lines (44 loc) · 1.13 KB
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 org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
// id 'skript-test' version('1.0.1')
id 'com.gradleup.shadow' version('9.2.2')
}
group = 'com.sovdee'
test {
useJUnitPlatform()
}
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://repo.papermc.io/repository/maven-public/'
}
maven {
url 'https://repo.skriptlang.org/releases'
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT'
compileOnly "com.github.SkriptLang:Skript:2.12.2"
compileOnly 'org.jetbrains:annotations:26.0.1'
implementation 'net.bytebuddy:byte-buddy:1.14.18' // for runtime code generation
}
processResources {
filter ReplaceTokens, tokens: ["version": project.property("version")]
}
shadowJar {
relocate 'net.bytebuddy', 'com.sovdee.oopsk.bytebuddy'
minimize()
archiveClassifier.set('')
}
build {
dependsOn shadowJar
}
//skriptTest {
// dependsOn build
// testScriptDirectory = file("src/test/scripts")
// extraPluginsDirectory = new File("./build/libs")
// skriptRepoRef = "dev/patch"
// runVanillaTests = false
//}