forked from vavr-io/vavr-gson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (70 loc) · 1.85 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
plugins {
id 'java'
id 'maven'
id 'jacoco'
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.google.code.gson:gson:${gsonVersion}"
testCompile "junit:junit:${junitVersion}"
}
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.gson'
)
}
}
modifyPom {
project {
name 'Vavr-Gson'
description 'A set of GSON serialiser/deserialisers for Vavr.io'
url 'http://vavr.io'
inceptionYear '2017'
scm {
connection 'scm:git:git@github.com:vavr-io/vavr-gson.git'
developerConnection 'scm:git:git@github.com:vavr-io/vavr-gson.git'
url 'git@github.com:vavr-io/vavr-gson.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 'ruslan.sennov@gmail.com'
}
}
}
}
nexus {
sign = !version.endsWith("SNAPSHOT")
}