forked from TheSeeker/KeepAlive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
43 lines (36 loc) · 789 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
41
42
43
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
}
configurations {
extraLibs
}
dependencies {
compile files('../fred/build/libs/freenet.jar')
compile group: 'org.apache.ant', name: 'ant', version: '1.10.5'
extraLibs group: 'com.h2database', name: 'h2', version: '1.4.199'
configurations.compile.extendsFrom(configurations.extraLibs)
}
sourceSets {
main {
java {
srcDir 'src/'
}
}
}
jar {
manifest {
attributes(
'Plugin-Main-Class': 'keepalive.Plugin')
}
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}
processResources {
from ('src/resources') {
into 'resources'
}
}