-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (48 loc) · 1.52 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
}
compileJava.options.encoding = 'UTF-8'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
repositories {
mavenCentral()
maven { url 'https://repo.papermc.io/repository/maven-public/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://jitpack.io' }
maven { url 'https://repo.skriptlang.org/releases' }
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'https://repo.mvdw-software.com/content/groups/public/' }
}
dependencies {
implementation 'io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT'
implementation ('com.github.SkriptLang:Skript:2.7.3') {
transitive = false
}
implementation ('me.clip:placeholderapi:2.11.6')
implementation('be.maximvdw:MVdWPlaceholderAPI:3.0.1-SNAPSHOT') {
transitive = false
}
}
processResources {
filter ReplaceTokens, tokens: [
'version': version
]
}
tasks.register('nightlyResources', ProcessResources) {
from 'src/main/resources', {
include '**'
filter ReplaceTokens, tokens: [
'version': project.property('version') + '-nightly-' + 'git rev-parse --short HEAD'.execute().text.trim()
]
}
into 'build/resources/main'
}
tasks.register('nightlyBuild', Jar) {
dependsOn nightlyResources
from sourceSets.main.output
archiveFileName = 'skript-placeholders-nightly.jar'
}