forked from vavr-io/vavr-jackson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (72 loc) · 2.64 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
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'checkstyle'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
group = 'io.vavr'
version = '0.10.5-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
implementation "io.vavr:vavr:${vavrVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${fasterxmlVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testImplementation "javax.xml.bind:jaxb-api:${jaxbVersion}"
testImplementation "com.squareup:javapoet:${javapoetVersion}"
testImplementation "com.fasterxml.jackson.module:jackson-module-jaxb-annotations:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.dataformat:jackson-dataformat-csv:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.module:jackson-module-scala_2.11:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.core:jackson-core:${fasterxmlVersion}"
testImplementation "com.fasterxml.jackson.core:jackson-annotations:${fasterxmlVersion}"
}
tasks.register('codeCoverageReport', JacocoReport) {
dependsOn tasks.test
executionData.setFrom(fileTree(project.rootDir).include("**/build/jacoco/*.exec"))
sourceDirectories.setFrom(files(sourceSets.main.allSource.srcDirs))
classDirectories.setFrom(fileTree("build/classes/java/main") {
exclude '**/SomeExcludedClass.class'
})
reports {
xml.required.set(true)
xml.outputLocation.set(file("${buildDir}/reports/jacoco/report.xml"))
html.required.set(true)
csv.required.set(false)
}
}
tasks.test {
finalizedBy tasks.codeCoverageReport
testLogging {
events "passed", "skipped", "failed"
showStandardStreams = true
exceptionFormat "full"
showExceptions true
showCauses true
showStackTraces true
}
}
jar {
manifest {
attributes(
'Automatic-Module-Name': 'io.vavr.jackson'
)
}
}
test {
useJUnitPlatform()
}
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
}