-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (49 loc) · 1.33 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java'
}
group 'com.sovdee'
project.ext.jomlVersion = "1.10.5"
configurations.all {
resolutionStrategy.cacheChangingModulesFor 1, 'minutes'
}
repositories {
mavenCentral()
maven {
url 'https://repo.papermc.io/repository/maven-public/'
}
maven {
url 'https://repo.skriptlang.org/releases'
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("com.github.SkriptLang:Skript:2.8.4")
shadow "org.bstats:bstats-bukkit:3.0.2"
implementation "org.joml:joml:${jomlVersion}"
}
processResources {
filter ReplaceTokens, tokens: ["version": project.property("version")]
from("lang/") {
include '*.lang'
into 'lang/'
}
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compileClasspath
options.encoding = 'UTF-8'
}
task shadowJar(overwrite: true, type: ShadowJar) {
archiveFileName = 'skript-particle.jar'
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
task copyJar(type: Copy) {
dependsOn shadowJar
from "build/libs/skript-particle.jar"
into "e:/PaperServer/plugins"
}