-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
77 lines (66 loc) · 1.89 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
id 'nebula.provided-base' version '3.0.3' // if you want provided-base
}
apply plugin: 'java'
apply plugin: 'nebula.provided-base'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compileOnly "org.projectlombok:lombok:1.18.2"
compile "com.google.guava:guava:23.0"
compile "com.google.code.findbugs:jsr305:3.0.2"
compile "org.apache.commons:commons-csv:1.4"
compile "org.apache.commons:commons-lang3:3.7"
compile "commons-io:commons-io:2.5"
compile "log4j:log4j:1.2.17"
compile "org.eclipse.jetty:jetty-servlet:9.4.11.v20180605"
compile "com.unboundid:unboundid-ldapsdk:4.0.5"
compile "org.json:json:20180130"
compile "net.agkn:hll:1.6.0"
compile "com.atlassian.commonmark:commonmark:0.11.0"
testCompile "junit:junit:4.12"
}
test {
testLogging {
showStandardStreams = true
}
}
task unitTest(type: Test) {
testLogging {
showStandardStreams = true
}
exclude '**/*PerformanceTest*'
exclude '**/*Lock*Test*'
}
task dbCore(type: JavaCompile) {
source = fileTree(
dir: 'src/main/java',
excludes: [
'com/cosyan/db/lang/sql/*.java',
'com/cosyan/db/DBApi.java',
'com/cosyan/ui/**/*.java'])
classpath = configurations.compile
destinationDir = file('build/classes/dbCore')
}
task execute(type:JavaExec) {
main = 'com.cosyan.ui.WebServer'
classpath = sourceSets.main.runtimeClasspath
}
task doc(type:JavaExec) {
main = 'com.cosyan.db.doc.DocPrinter'
classpath = sourceSets.main.runtimeClasspath
args = [ project.projectDir.toString() + '/src/main' ]
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Cosyan web',
'Implementation-Version': '1.0.0',
'Main-Class': 'com.cosyan.ui.WebServer'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}