-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
66 lines (52 loc) · 1.23 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apply plugin: 'java'
apply plugin: 'eclipse'
version = '0.0.1'
repositories {
mavenCentral()
}
buildDependents.dependsOn { subprojects.build }
build.dependsOn { copyRuntimeLibs }
sourceSets {
main {
java {
srcDirs = ["src","samples"]
}
}
test {
java {
srcDirs = ["test"]
}
}
}
test {
testLogging.showStandardStreams = true
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
onOutput { descriptor, event ->
logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
}
}
dependencies {
compile group: 'com.amazonaws', name: 'aws-java-sdk-ec2', version: '1.11.34'
compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile files('aparapi/com.amd.aparapi/dist/aparapi.jar')
testCompile group: 'junit', name: 'junit', version: '4.12'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
jar {
manifest {
attributes 'Implementation-Title': 'DynamOpenCL',
'Implementation-Version': version
}
}
task copyRuntimeLibs(type: Copy) {
into new File(project.buildDir, "/libs/lib/")
from configurations.runtime
}