-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (35 loc) · 872 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
apply plugin: 'java'
// project level config
sourceSets.main.java.srcDir 'src'
sourceCompatibility = 1.7
targetCompatibility = 1.7
archivesBaseName = 'instantstorage'
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('bins/'))
}
clean {
description 'Cleanup files'
delete fileTree('jars/') { include '*.jar' }
delete fileTree('bins/') { include '*.zip' }
}
dependencies {
implementation fileTree(dir: './libs/', include: '*.jar')
}