forked from briandilley/jsonrpc4j
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
151 lines (122 loc) · 3.83 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
buildscript {
ext {
set("jacksonVersion", "2.10.2")
set("springVersion", "4.3.26.RELEASE")
set("springBotVersion", "1.4.7.RELEASE")
set("jettyVersion", "9.4.0.RC3")
set("slf4jVersion", "1.7.30")
}
repositories {
gradlePluginPortal()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath("com.adarshr:gradle-test-logger-plugin:1.6.0")
}
}
plugins {
id('jacoco')
}
repositories {
mavenLocal()
gradlePluginPortal()
mavenCentral()
jcenter()
}
apply plugin: "java"
apply plugin: "com.adarshr.test-logger"
group = "com.github.bisq-network"
version = "1.6.0.bisq.2"
description = """
This project aims to provide the facility to easily implement JSON-RPC for the java programming language.
"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
ext {
releaseVersion = !version.toString().endsWith('-SNAPSHOT')
}
test {
testLogging {
exceptionFormat = "FULL"
showExceptions = true
showStackTraces = true
showCauses = true
}
maxParallelForks = 1
forkEvery = 1
maxHeapSize = "2g"
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.5"
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
csv.enabled true
html.enabled true
}
}
java {
registerFeature('servletSupport') {
usingSourceSet(sourceSets.main)
}
registerFeature('springSupport') {
usingSourceSet(sourceSets.main)
}
}
dependencies {
implementation 'net.iharder:base64:2.3.9'
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
servletSupportImplementation 'javax.portlet:portlet-api:3.0.1'
servletSupportImplementation 'javax.servlet:javax.servlet-api:4.0.1'
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
springSupportImplementation "org.springframework:spring-core:${springVersion}"
springSupportImplementation "org.springframework:spring-context:${springVersion}"
springSupportImplementation "org.springframework:spring-web:${springVersion}"
springSupportImplementation "org.springframework:spring-webmvc:${springVersion}"
implementation 'commons-codec:commons-codec:1.10'
implementation 'org.apache.httpcomponents:httpcore-nio:4.4.5'
testImplementation 'junit:junit:4.12'
testImplementation 'org.easymock:easymock:3.4'
testImplementation("org.springframework.boot:spring-boot-starter-web:${springBotVersion}") {
exclude module: 'logback-classic'
}
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBotVersion}"
testImplementation("org.eclipse.jetty:jetty-server:${jettyVersion}") {
exclude module: 'javax.servlet'
}
testImplementation("org.eclipse.jetty:jetty-servlet:${jettyVersion}") {
exclude module: 'org.eclipse.jetty.orbit'
}
testImplementation("javax.jws:jsr181-api:1.0-MR1")
testRuntime 'org.apache.logging.log4j:log4j-slf4j-impl:2.7'
testRuntime 'org.apache.logging.log4j:log4j-core:2.7'
}
task documentationJar(type: Jar) {
archiveClassifier.set("javadoc")
from javadoc
}
task sourcesJar(type: Jar) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
artifacts {
archives documentationJar, sourcesJar
}
apply from: 'publishing.gradle'
tasks.named('jar') {
manifest {
attributes('Automatic-Module-Name': '$group')
}
}