-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
122 lines (109 loc) · 3.25 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.12.0'
}
group = 'io.github.lambig'
archivesBaseName = 'Either'
version = '0.2.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.6.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.6.2'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.16.1'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
tasks.register('javadocJar', Jar) {
dependsOn classes
archiveClassifier.set('javadoc')
from sourceSets.main.output
}
tasks.register('sourcesJar', Jar) {
dependsOn classes
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
test {
useJUnitPlatform()
test.outputs.upToDateWhen {true}
}
jacocoTestReport {
reports {
xml.enabled(true)
html.enabled(true)
}
}
coveralls {
jacocoReportPath 'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
}
java {
withJavadocJar()
withSourcesJar()
}
//publishing {
// publications {
// mavenJava(MavenPublication) {
// artifactId = 'Either'
// from components.java
// pom {
// name = 'Either'
// description = 'easy union-like class implementation'
// url = 'https://github.com/lambig/Either'
// licenses {
// license {
// name = 'MIT License'
// url = 'https://opensource.org/licenses/MIT'
// }
// }
// developers {
// developer {
// id = 'lambig'
// name = 'Lambig'
// email = 'ceolnua51@gmail.com'
// }
// }
// scm {
// connection = 'scm:git:https://github.com/lambig/Either'
// url = 'https://github.com/lambig/Either'
// }
// }
// }
// }
// repositories {
// maven {
// name = "OSSRH"
// url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
// credentials {
// username = ossrhUsername
// password = ossrhPassword
// }
// }
//// maven {
//// name = "OSSRH_SNAPSHOT"
//// url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
//// credentials {
//// username = ossrhUsername
//// password = ossrhPassword
//// }
//// }
//
// }
//}
//
//signing {
// sign publishing.publications.mavenJava
//}