forked from matyb/java-koans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (37 loc) · 985 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.+'
testCompile 'org.easymock:easymock:3.4'
}
task createJar(type: Jar){
archiveName = 'koans.jar'
manifest {
attributes 'Implementation-Title': 'Java Koans',
'Implementation-Version': 2.0,
'Main-Class': 'com.sandwich.koan.runner.AppLauncher'
}
baseName = "java-koans"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }}
with jar
}
task copyJarToBin {
doLast {
copy {
from './build/libs/koans.jar'
into '../koans/app/lib'
}
}
}
test {
classpath = project.sourceSets.test.runtimeClasspath + files("${projectDir}/../koans/app/config")
}
allprojects {
sourceCompatibility = 1.5
targetCompatibility = 1.5
}
task buildApp (dependsOn: [clean, test, createJar, copyJarToBin])