-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
118 lines (105 loc) · 3.12 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
plugins {
id 'java-library'
id 'jacoco'
id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
id 'org.sonarqube' version '5.1.0.4882'
}
group 'com.apptasticsoftware'
version "${version}"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.11.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation('com.github.npathai:hamcrest-optional:2.0.0')
testImplementation('org.hamcrest:hamcrest:3.0')
testImplementation('org.mockito:mockito-core:5.12.0')
testImplementation('nl.jqno.equalsverifier:equalsverifier:3.16.2')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
ext.moduleName = 'com.apptasticsoftware.rssreader'
compileJava {
options.encoding = "UTF-8"
inputs.property('moduleName', moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath
]
classpath = files()
}
}
jacoco {
toolVersion = "0.8.9"
}
jacocoTestReport {
reports {
xml.required = true
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
connectTimeout = Duration.ofMinutes(3)
clientTimeout = Duration.ofMinutes(3)
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'RSS Reader'
description = 'Java library for reading RSS and Atom feeds'
url = 'https://github.com/w3stling/rssreader'
licenses {
license {
name = 'MIT License'
url = 'https://raw.githubusercontent.com/w3stling/rssreader/master/LICENSE'
}
}
developers {
developer {
id = 'w3stling'
name = 'Apptastic Software'
email = '[email protected]'
}
}
scm {
url = 'https://github.com/w3stling/rssreader'
connection = 'scm:git://github.com/w3stling/rssreader.git'
developerConnection = 'scm:git:ssh://github.com/w3stling/rssreader.git'
}
}
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
sonar {
properties {
property "sonar.projectKey", "w3stling_rssreader"
property "sonar.organization", "w3stling"
property "sonar.host.url", "https://sonarcloud.io"
}
}