-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
41 lines (32 loc) · 947 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
usePlugin 'java'
usePlugin 'eclipse'
version = "0.1"
defaultTasks "test","jar"
repositories {
mavenCentral()
}
manifest.mainAttributes(
"Implementation-Title": "DeCentClient",
"Implementation-Version": version,
"Main-Class": "decentchat.client.ClientMain"
)
dependencies {
compile group: 'net.sf.jopt-simple', name: 'jopt-simple', version: '3.2-rc1'
compile group: 'log4j', name: 'log4j', version: '1.2.14'
testCompile group: 'junit', name: 'junit', version: '4.7'
}
task rmic(dependsOn: compileJava) << {
String[] classes = ['decentchat.internal.remotes.NodeImpl', 'decentchat.internal.remotes.ProtocolInterfaceImpl']
for(classe in classes) {
String command = """rmic -classpath ${sourceSets.main.classesDir} -d ${sourceSets.main.classesDir} ${classe}"""
println command
String test = command.execute().text
print test
}
}
jar.dependsOn(rmic)
jar.doFirst {
for(file in configurations.compile) {
jar.merge(file)
}
}