-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (64 loc) · 1.9 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
78
79
80
81
82
83
import com.github.spotbugs.SpotBugsTask
plugins {
id 'application'
id 'com.diffplug.gradle.spotless' version '3.24.0'
id 'com.github.spotbugs' version '2.0.0'
id 'idea'
}
repositories {
mavenCentral()
mavenLocal()
}
tasks.withType(SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
spotless {
java {
googleJavaFormat('1.7')
}
}
idea {
module {
outputDir file('build/classes/main')
testOutputDir file('build/classes/test')
}
}
ext {
lombokVersion = '1.18.8'
jerseyVersion = '2.26'
}
dependencies {
compile 'tslic.discogs:discogs-jooq:1.0'
compile 'org.postgresql:postgresql:42.2.6'
// lombok
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
// jersey with grizzly2 http server
compile "org.glassfish.jersey.containers:jersey-container-grizzly2-http:$jerseyVersion"
// jersey cdi
compile "org.glassfish.jersey.inject:jersey-hk2:$jerseyVersion"
compile "org.glassfish.jersey.ext.cdi:jersey-weld2-se:$jerseyVersion"
// weld
compile "org.jboss.weld.se:weld-se-core:2.4.8.Final"
// jersey validation
compile "org.glassfish.jersey.ext:jersey-bean-validation:$jerseyVersion"
// jersey jackson
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jerseyVersion"
// jackson
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.9.3'
// log4j2
compile 'org.apache.logging.log4j:log4j-api:2.11.2'
compile 'org.apache.logging.log4j:log4j-core:2.11.2'
// other
compile 'javax.activation:activation:1.1.1'
compile 'javax.servlet:javax.servlet-api:4.0.1'
}
task copyResources(type: Copy) {
from "${projectDir}/src/main/resources"
into "${buildDir}/classes/java/main"
}
processResources.dependsOn copyResources
mainClassName = 'tslic.discogs.Main'