forked from rodrigorato/GenericFunctionsJava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (35 loc) · 1 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
plugins {
id 'java'
id 'application'
}
group 'ist.meic.pa.GenericFunctions'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
mainClassName = 'ist.meic.pa.GenericFunctions.WithGenericFunctions'
configurations {
jar.archiveName = "genericFunctions.jar"
}
run {
if (project.hasProperty('runArgs')) {
args findProperty('runArgs')
} else {
args = ['ist.meic.pa.GenericFunctions.examples.TestJ']
}
}
task runExtended (type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = 'ist.meic.pa.GenericFunctionsExtended.WithGenericFunctions'
if (project.hasProperty('runArgs')) {
args findProperty('runArgs')
} else {
args = ['ist.meic.pa.GenericFunctionsExtended.examples.TestJ']
}
}
dependencies {
// https://mvnrepository.com/artifact/org.javassist/javassist
compile group: 'org.javassist', name: 'javassist', version: '3.22.0-GA'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
repositories {
mavenCentral()
}