-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (65 loc) · 2.02 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
plugins {
id 'java'
id 'application'
id 'com.github.sherter.google-java-format' version '0.9'
}
googleJavaFormat {
source 'src/main'
source 'src/test'
include '**/*.java'
exclude '**/domain/*.java'
exclude '**/*Importer.java'
exclude '**/*DB.java'
}
compileJava {
options.compilerArgs << '--enable-preview'
}
repositories {
mavenCentral()
}
ext {
vtx_version = "3.9.+"
junit_version = "5.+"
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.26'
compile group: 'ch.qos.logback', name: 'logback-classic', version: "1.2.3"
compile 'org.apache.commons:commons-lang3:3.9'
compile "io.vertx:vertx-core:${vtx_version}"
compile "io.vertx:vertx-core:${vtx_version}"
compile "io.vertx:vertx-web:${vtx_version}"
compile "io.vertx:vertx-web-client:${vtx_version}"
compile "io.vertx:vertx-pg-client:${vtx_version}"
compile "io.vertx:vertx-rx-java2:${vtx_version}"
compile "com.google.guava:guava:30.0-jre"
testCompile "org.junit.jupiter:junit-jupiter-api:${junit_version}"
testCompile "org.junit.jupiter:junit-jupiter-engine:${junit_version}"
}
mainClassName = 'io.rcapp.Main'
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest {
attributes 'Main-Class': mainClassName
}
archiveBaseName = "backend"
}
task Importer(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Importer',
'Implementation-Version': "1.0",
'Main-Class': 'io.rcapp.imprt.Importer'
}
archiveBaseName = "importer"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task Geocoder(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Geocoder',
'Implementation-Version': "1.0",
'Main-Class': 'io.rcapp.imprt.Geocoder'
}
archiveBaseName = "geocoder"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}