-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
96 lines (84 loc) · 1.99 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
group 'org.logcapture'
version '1.3.3'
description = 'A testing library for assert logging messages.'
repositories {
mavenCentral()
}
subprojects {
apply plugin: 'idea'
apply plugin: 'signing'
apply plugin: 'maven-publish'
apply plugin: 'java-library'
apply plugin: "jacoco"
repositories {
mavenCentral()
}
test {
testLogging {
events "passed", "skipped", "failed"
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
java {
withJavadocJar()
withSourcesJar()
}
// tasks.jacocoTestReport {
// reports {
// xml.enabled = true
// html.enabled = true
// }
// }
def pomConfig = {
name project.name
description 'A testing library for assert logging messages.'
url "http://www.jspcore.com/"
licenses {
license {
name "MIT License"
url "https://opensource.org/licenses/MIT"
distribution "repo"
}
}
scm {
connection "scm:https://[email protected]/jsalinaspolo/logcapture.git"
developerConnection "scm:[email protected]:jsalinaspolo/logcapture.git"
url "https://github.com/jsalinaspolo/logcapture"
}
developers {
developer {
id "jsalinaspolo"
name "Team JSPCore"
}
}
}
publishing {
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'org.logcapture'
artifactId project.name
version "1.3.3"
pom.withXml {
def root = asNode()
root.appendNode('description', 'A testing library for assert logging messages.')
root.children().last() + pomConfig
}
}
}
}
signing {
sign publishing.publications.MyPublication
}
}