forked from pjfanning/excel-streaming-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (96 loc) · 3.09 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
plugins {
id 'java-library'
id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version "1.1.0"
id 'org.cyclonedx.bom' version "1.7.2"
id 'org.sonarqube' version "3.4.0.2513"
}
sonarqube {
properties {
property "sonar.projectKey", "pjfanning_excel-streaming-reader"
property "sonar.organization", "pjfanning"
property "sonar.host.url", "https://sonarcloud.io"
// the plugin seems to not detect our non-standard build-layout
property "sonar.junit.reportPaths", "$projectDir/build/test-results/test"
}
}
group = 'com.github.pjfanning'
version = '4.0.4-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
//maven { url 'https://repository.apache.org/content/repositories/staging' }
}
dependencies {
api 'org.apache.poi:poi:5.2.3'
api 'org.apache.poi:poi-ooxml:5.2.3'
implementation 'com.github.pjfanning:poi-shared-strings:2.5.5'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'commons-io:commons-io:2.11.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.nanohttpd:nanohttpd:2.3.1'
testImplementation 'org.mockito:mockito-core:4.8.0'
testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.36'
testRuntimeOnly 'org.apache.logging.log4j:log4j-to-slf4j:2.18.0'
}
test {
options {
systemProperties(System.getProperties())
}
}
tasks.named('jar') {
manifest {
attributes('Automatic-Module-Name': 'com.github.pjfanning.excelstreamingreader')
}
}
java {
withJavadocJar()
withSourcesJar()
}
nexusPublishing {
repositories {
sonatype()
}
}
publish.dependsOn cyclonedxBom
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'excel-streaming-reader'
description = 'Streaming Excel reader'
url = 'https://github.com/pjfanning/excel-streaming-reader'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'monitorjbl'
name = 'Taylor Jones'
email = '[email protected]'
}
developer {
id = 'pjfanning'
name = 'PJ Fanning'
}
}
scm {
url = 'https://github.com/pjfanning/excel-streaming-reader'
connection = 'scm:git://github.com/pjfanning/excel-streaming-reader.git'
developerConnection = 'scm:git://github.com/pjfanning/excel-streaming-reader.git'
}
}
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}