-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
60 lines (50 loc) · 1.79 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 'org.skriptlang.skript'
version '1.0-pre2'
compileJava.options.encoding = 'UTF-8'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
repositories {
mavenCentral()
maven { url 'https://repo.skriptlang.org/releases' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url "https://maven.enginehub.org/repo/" }
}
dependencies {
// eclipse annotations are only present for IDE analysis, they should not be used
implementation group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.annotation', version: '2.2.600'
implementation group: 'org.jetbrains', name: 'annotations', version: '24.1.0'
implementation group: 'org.spigotmc', name: 'spigot-api', version: '1.13.2-R0.1-SNAPSHOT'
implementation (group: 'com.github.SkriptLang', name: 'Skript', version: '2.7.3') {
transitive = false
}
implementation (group: 'com.sk89q.worldguard', name: 'worldguard-bukkit', version: '7.0.0') {
exclude module: 'bstats-bukkit'
}
}
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-worldguard-nightly.jar'
}