forked from APickledWalrus/skript-placeholders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (51 loc) · 1.65 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 org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
}
group 'io.github.apickledwalrus'
version '1.6-dev'
compileJava.options.encoding = 'UTF-8'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots' }
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 'org.eclipse.jdt:org.eclipse.jdt.annotation:2.2.600'
implementation 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
implementation ('com.github.SkriptLang:Skript:2.6.4') {
transitive = false
}
implementation ('me.clip:placeholderapi:2.11.3')
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'
}