forked from florianroesler/dynamopencl
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (55 loc) · 1.4 KB
/
build.gradle
File metadata and controls
69 lines (55 loc) · 1.4 KB
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
67
68
69
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 )
}
}
/* TODO: This file needs to be updated for Gradle 7
(see commit e31d9489daa87603ffa8e438514d259de383f2d9 for fixes)
but fixing it breaks the older Gradle versions in Ubuntu 16.04 and 18.04. */
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/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
}