forked from xvik/dropwizard-guicey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
120 lines (106 loc) · 3.14 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
plugins {
id 'groovy'
id 'jacoco'
id 'project-report'
id 'ru.vyarus.java-lib' version '1.0.4'
id 'ru.vyarus.github-info' version '1.1.0'
id 'ru.vyarus.quality' version '2.1.0'
id 'com.github.kt3k.coveralls' version '2.7.1'
id 'com.jfrog.bintray' version '1.7.3'
id 'net.researchgate.release' version '2.5.0'
id 'com.github.ben-manes.versions' version '0.13.0'
id "io.spring.dependency-management" version "0.6.1.RELEASE"
}
sourceCompatibility = 1.8
wrapper {
gradleVersion = 3.3
}
ext {
dropwizard = '1.1.0'
guice = '4.1.0'
}
repositories { jcenter(); mavenCentral(); mavenLocal() }
dependencyManagement {
imports {
mavenBom "com.google.inject:guice-bom:$guice"
mavenBom "io.dropwizard:dropwizard-bom:$dropwizard"
}
}
dependencies {
provided 'junit:junit'
provided 'io.dropwizard:dropwizard-testing'
provided 'org.spockframework:spock-core:1.0-groovy-2.4'
provided 'com.github.stefanbirkner:system-rules:1.16.0'
provided 'com.google.code.findbugs:annotations:3.0.1'
provided "org.glassfish.hk2:guice-bridge:2.5.0-b32"
compile 'com.google.inject:guice'
compile 'com.google.inject.extensions:guice-servlet'
compile 'com.google.inject.extensions:guice-multibindings'
compile 'io.dropwizard:dropwizard-core'
compile 'ru.vyarus:generics-resolver:2.0.1'
testCompile 'io.dropwizard:dropwizard-auth'
testCompile 'org.glassfish.jersey.ext:jersey-proxy-client'
testCompile 'cglib:cglib-nodep:3.2.0'
testCompile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2'
}
group = 'ru.vyarus'
description = 'Dropwizard guice integration'
github {
user = 'xvik'
license = 'MIT'
}
pom {
developers {
developer {
id 'xvik'
name 'Vyacheslav Rusakov'
email 'vyarus@gmail.com'
}
}
}
bintray {
user = findProperty('bintrayUser')
key = findProperty('bintrayKey')
publications = ['maven']
dryRun = false
publish = true
pkg {
repo = 'xvik'
name = project.name
desc = project.description
labels = ['dropwizard', 'guice']
publicDownloadNumbers = true
version {
gpg {
sign = true
passphrase = findProperty('gpgPassphrase')
}
mavenCentralSync {
sync = true
user = findProperty('sonatypeUser')
password = findProperty('sonatypePassword')
}
}
}
}
afterReleaseBuild {
dependsOn = [bintrayUpload]
doLast {
logger.warn "RELEASED $project.group:$project.name:$project.version"
}
}
test {
testLogging {
events 'skipped', 'failed', 'standard_error'
exceptionFormat 'full'
}
maxHeapSize = '512m'
}
dependencyUpdates.revision = 'release'
jacocoTestReport.reports.xml.enabled = true
task showDependenciesTree(dependsOn: 'htmlDependencyReport', group: 'help', description:
'Generates dependencies tree report and opens it in browser') {
doLast {
java.awt.Desktop.getDesktop().open(file('build/reports/project/dependencies/root.html'))
}
}