-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (43 loc) · 1.24 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
}
group 'com.github.skriptness.unsafeskript'
version '1.0-alpha1'
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/'
}
}
dependencies {
implementation 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
implementation 'com.github.SkriptLang:Skript:2.7.0-beta3'
implementation 'org.eclipse.jdt:org.eclipse.jdt.annotation:2.2.600'
}
Properties properties = new Properties()
def jarDir
if (project.rootProject.file('local.properties').exists()) {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
jarDir = properties.getProperty('jarDir') as String
}
tasks.withType(JavaCompile).configureEach {
jar {
archiveFileName.set("${rootProject.name}-${project.version}.jar")
if (jarDir != null) {
destinationDirectory.set(file(jarDir))
}
}
}
processResources {
filter ReplaceTokens, tokens: [
'version' : project.property('version')
]
filteringCharset 'UTF-8'
}