blob: 6a26d05589db88ee7b7021bbe2fcc343898c34ca (
plain)
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
|
apply plugin: 'java'
apply plugin: 'application'
repositories {
mavenCentral()
}
defaultTasks 'clean', 'build'
task init << {
new File("doc").mkdirs()
new File("classes").mkdirs()
}
task clear(dependsOn: clean)
task execute(dependsOn: run)
// Config
mainClassName = "Dreieck"
run {
standardInput = System.in;
}
dependencies {
testCompile 'junit:junit:4.12'
}
sourceSets {
main {
//if you truly want to override the defaults:
java.srcDirs = ['src']
output.classesDir = 'classes'
}
test {
java {
srcDirs = ["test"]
}
}
}
javadoc {
destinationDir = file(new File('doc/'));
}
|