This repository has been archived by the owner on Mar 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
118 lines (105 loc) · 3.13 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 '1.3.0'
id 'org.sonarqube' version '4.4.1.3373'
}
group 'com.apptasticsoftware'
version "${version}"
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jsoup:jsoup:1.17.1'
implementation 'com.apptasticsoftware:lei:3.3.3'
testImplementation("org.junit.jupiter:junit-jupiter:5.9.3")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation('nl.jqno.equalsverifier:equalsverifier:3.15')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
ext.moduleName = 'com.apptasticsoftware.tickersymbol'
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
xml.outputLocation = file("${buildDir}/reports/jacoco/report.xml")
}
}
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 = 'Ticker Symbol'
description = 'Java library for lookup ticker symbols.'
url = 'https://github.com/w3stling/tickersymbol'
licenses {
license {
name = 'MIT License'
url = 'https://raw.githubusercontent.com/w3stling/tickersymbol/master/LICENSE'
}
}
developers {
developer {
id = 'w3stling'
name = 'Apptastic Software'
email = 'apptastic.software@gmail.com'
}
}
scm {
url = 'https://github.com/w3stling/tickersymbol'
connection = 'scm:git://github.com/w3stling/tickersymbol.git'
developerConnection = 'scm:git:ssh://github.com/w3stling/tickersymbol.git'
}
}
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
sonar {
properties {
property "sonar.projectKey", "w3stling_tickersymbol"
property "sonar.organization", "w3stling"
property "sonar.host.url", "https://sonarcloud.io"
}
}