-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (45 loc) · 913 Bytes
/
build.gradle
File metadata and controls
57 lines (45 loc) · 913 Bytes
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
apply plugin: 'java'
apply plugin: 'eclipse'
defaultTasks 'build'
task wrapper(type: Wrapper){
gradleVersion = '1.6'
}
sourceSets {
main {
resources.srcDirs = ["src/main/resources"]
}
}
configurations {
bundle
compile.extendsFrom bundle
}
dependencies {
testCompile 'junit:junit:4.10'
}
repositories {
mavenCentral()
}
compileJava{
}
test {
useJUnit()
}
task docs(type:Exec) {
ext {
outputDir = file('build/docs')
}
commandLine 'doxygen'
inputs.file file("Doxyfile")
inputs.files sourceSets.main.java, sourceSets.test.java
outputs.dir outputDir
}
jar {
//This is the variable to change if you would like a different name
baseName = "JavaServer"
from configurations.bundle.collect { it.isDirectory() ? it : zipTree(it)}
manifest {
attributes("Main-Class": "com.server.ServerHandler");
}
}
build.dependsOn docs
task all (dependsOn: [build])