-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (38 loc) · 886 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
45
46
47
apply plugin: 'groovy'
sourceCompatibility = 8
apply plugin: 'application'
repositories {
flatDir {
dirs './libs'
}
}
dependencies {
// compile localGroovy()
compile name: 'groovy-all-2.4.10-indy'
compile fileTree(dir: './libs', include: ['*.jar'])
}
sourceSets {
main {
groovy {
srcDirs = ['src/main/groovy']
}
resources {
srcDirs = ["src/main/groovy"]
}
}
}
task runScript(type: JavaExec) {
description 'Run Simple Demo'
main = 'io.github.mcolletta.mirnn.Demo'
classpath = sourceSets.main.runtimeClasspath
if (project.hasProperty('custom_arg')) {
args project.getProperty('custom_arg')
}
}
jar {
from 'LICENSE'
from 'README.md'
// from { ["LICENSE", "README.md"] }
manifest.attributes 'Created-By': 'Mirco Colletta'
}
defaultTasks 'runScript'