-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (38 loc) · 910 Bytes
/
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
repositories {
mavenCentral()
}
apply plugin: 'java'
// project level config
sourceSets.main.java.srcDir 'src'
sourceCompatibility = 1.7
targetCompatibility = 1.7
archivesBaseName = 'skillparameterized'
build {
doLast {
copy {
from jar
into 'jars'
}
}
}
task release(type: Zip) {
description 'Create releaseable zip file.'
def cmdOutput = 'jq -rj .version mod_info.json'.execute().text
from '.'
include 'src/'
include 'data/'
include 'graphics/'
include 'sounds/'
include 'jars/'
include 'mod_info.json'
archiveName archivesBaseName + '-' + cmdOutput + '.zip'
destinationDir(file('bin/'))
}
clean {
description 'Cleanup files'
delete fileTree('jars/') { include '*.jar' }
delete fileTree('bin/') { include '*.zip' }
}
dependencies {
implementation fileTree(dir: './lib/', include: '*.jar')
}