-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (56 loc) · 1.83 KB
/
Copy pathbuild.gradle
File metadata and controls
64 lines (56 loc) · 1.83 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
55
56
57
58
59
60
61
62
63
64
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "8.1.1"
}
group = "lol.aabss"
version = "1.6"
repositories {
mavenCentral()
maven {url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"}
maven {url = "https://oss.sonatype.org/content/groups/public/"}
maven {url = "https://repo.skriptlang.org/releases"}
maven {url = "https://jitpack.io"}
}
dependencies {
implementation "org.jetbrains:annotations:24.0.0"
implementation "com.github.SkriptLang:skript-reflect:2.4-dev1"
compileOnly "org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT"
implementation "com.github.SkriptLang:Skript:2.11.0"
implementation "com.github.ItsRadiiX:Discord-Webhooks:3df5653b8b"
}
shadowJar {
dependencies {
include(dependency("com.github.ItsRadiiX:Discord-Webhooks:3df5653b8b"))
include(dependency("org.jetbrains:annotations:24.0.0"))
include(dependency("com.github.SkriptLang:skript-reflect:2.4-dev1"))
}
relocate 'com.itsradiix.discordwebhook', 'lol.aabss.skhttp.libs.discordwebhook'
relocate 'org.jetbrains.annotations', 'lol.aabss.skhttp.libs.annotations'
archiveClassifier = ''
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
def oldestJava = 17
tasks.withType(JavaCompile).configureEach {
options.compilerArgs += ['-source', '' + oldestJava, '-target', '' + oldestJava]
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset "UTF-8"
filesMatching("plugin.yml") {
expand props
}
filesMatching("lang/default.lang") {
expand props
}
from ("lang") {
include "**/*"
into "lang/"
}
filesNotMatching("**/*.png") {
filter ReplaceTokens, tokens: ["version": project.version]
}
}