-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
54 lines (45 loc) · 1.44 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
}
group 'io.github.apickledwalrus'
version '1.3'
compileJava.options.encoding = 'UTF-8'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
repositories {
mavenCentral()
maven { url 'https://repo.skriptlang.org/releases' }
maven { url 'https://papermc.io/repo/repository/maven-public/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
implementation group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.annotation', version: '2.2.600'
implementation group: 'com.google.code.findbugs', name: 'findbugs', version: '3.0.1'
implementation group: 'com.destroystokyo.paper', name: 'paper-api', version: '1.16.5-R0.1-SNAPSHOT'
implementation (group: 'com.github.SkriptLang', name: 'Skript', version: '2.6.2') {
transitive = false
}
}
processResources {
filter ReplaceTokens, tokens: [
'version': version
]
}
task nightlyResources(type: 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'
}
task nightlyBuild(type: Jar) {
dependsOn nightlyResources
from sourceSets.main.output
archiveFileName = 'skript-gui-nightly.jar'
}