blob: 6084ff57579595d34138cae6260930adbb9388ea (
plain) (
blame)
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
|
/*
buildfile for gradle (http://gradle.org/)
*/
apply plugin: 'java'
buildDir = "$projectDir/build-gradle"
if (null != System.getenv('GNUNET_JAVA_IVY')) {
repositories {
ivy {
url System.getenv('GNUNET_JAVA_IVY')
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.gnunet', name: 'gnunet-java', version: '0.2'
compile group: 'com.google.guava', name: 'guava', version: '16.0.1'
}
compileJava.options.debugOptions.debugLevel = "source,lines,vars"
/*
TODO: should we really use the compile task for this?
*/
task msgtypes (type: JavaCompile) {
description = "Updates the index of GNUnet message types known to gnunet-java."
classpath = project.sourceSets.main.runtimeClasspath
source = files(project.sourceSets.main.allJava)
options.setCompilerArgs(["-processor", "org.gnunet.construct.MessageIdAnnotationProcessor",
"-proc:only",
"-s", "src"])
destinationDir = file("$buildDir/classes/main/")
}
task copyDeps(type: Copy) {
into "$projectDir/lib"
from configurations.runtime
}
|