forked from vavr-io/vavr-jackson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
108 lines (92 loc) · 3.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
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
plugins {
id 'java'
id 'maven'
id 'jacoco'
id 'checkstyle'
id 'com.bmuschko.nexus' version '2.3.1'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
group = 'io.vavr'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
compile "io.vavr:vavr:${vavrVersion}"
compile "com.fasterxml.jackson.core:jackson-databind:${fasterxmlVersion}"
testCompile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testCompile "javax.xml.bind:jaxb-api:${jaxbVersion}"
testCompile "com.squareup:javapoet:${javapoetVersion}"
testCompile "com.fasterxml.jackson.dataformat:jackson-dataformat-csv:${fasterxmlVersion}"
testCompile "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${fasterxmlVersion}"
testCompile "com.fasterxml.jackson.datatype:jackson-datatype-joda:${fasterxmlVersion}"
testCompile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${fasterxmlVersion}"
testCompile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:${fasterxmlVersion}"
testCompile "com.fasterxml.jackson.module:jackson-module-jaxb-annotations:${fasterxmlVersion}"
testCompile "com.fasterxml.jackson.module:jackson-module-scala_2.11:${fasterxmlVersion}"
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
sourceSets sourceSets.main
reports {
xml.enabled = true
xml.destination file("${buildDir}/reports/jacoco/report.xml")
html.enabled = true
csv.enabled = false
}
}
codeCoverageReport.dependsOn {
project.test
}
jar {
manifest {
attributes(
'Automatic-Module-Name': 'io.vavr.jackson'
)
}
}
modifyPom {
project {
name 'Vavr-Jackson'
description 'Jackson datatype module for Vavr.io'
url 'http://vavr.io'
inceptionYear '2016'
scm {
connection 'scm:git:[email protected]:vavr-io/vavr-jackson.git'
developerConnection 'scm:git:[email protected]:vavr-io/vavr-jackson.git'
url '[email protected]:vavr-io/vavr-jackson.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'ruslansennov'
name 'Ruslan Sennov'
email '[email protected]'
}
developer {
id 'minconghuang'
name 'Mincong Huang'
email '[email protected]'
}
}
}
}
nexus {
sign = !version.endsWith("SNAPSHOT")
}
test {
useJUnitPlatform()
}
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
}