forked from i2p/i2p.i2p
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (48 loc) · 1.46 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
plugins {
id 'java-library'
}
sourceSets {
main {
java {
srcDir 'java/src'
srcDir 'java/build/messages-src'
}
}
test {
java {
srcDir 'java/test/junit'
exclude {
it.name.endsWith('IT.java')
}
// Needs rewriting
exclude 'net/i2p/router/tunnel/BuildMessageTestStandalone.java'
}
}
}
dependencies {
api project(':core')
implementation 'gnu.getopt:java-getopt:1.0.13'
testImplementation project(path: ':core', configuration: 'tests')
}
// Create the java files from the po files. The jar task will compile them.
// This requires gettext 0.19 or higher.
// We don't support the "slow way"
task bundle {
doLast {
if (!(new File("$buildDir/classes/java/main/net/i2p/router/util/messages_de.class")).exists())
println "router/java/bundle-messages.sh".execute().text
}
}
jar.dependsOn bundle
jar {
manifest {
attributes 'Specification-Title': 'I2P Router'
attributes 'Implementation-Title': 'I2P Java Router'
attributes 'Main-Class': 'net.i2p.router.CommandLine'
// so people with very old wrapper.config files will still work with Jetty 6
attributes 'Class-Path': 'jetty-i2p.jar jetty-java5-threadpool.jar jetty-rewrite-handler.jar jetty-sslengine.jar jetty-start.jar jetty-util.jar'
}
from ('resources', {
into "net/i2p/router/util/resources"
})
}