-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (87 loc) · 2.63 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
sourceSets.main.java.srcDir 'src'
group = 'io.github.vaneproject'
version = '1.1.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.poi:poi:5.2.3'
implementation 'org.apache.poi:poi-ooxml:5.2.3'
implementation 'org.jetbrains:annotations:24.0.0'
implementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.apache.logging.log4j:log4j-to-slf4j:2.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
}
test {
useJUnitPlatform()
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
java {
withJavadocJar()
withSourcesJar()
}
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'io.github.vaneproject'
artifactId = 'xrm'
version = this.version
from components.java
pom {
name = 'xrm'
description = 'Xlsx Relational Mapping (Xlsx to Object)'
url = 'https://github.com/VaneProject/xrm'
licenses {
license {
name = 'Apache License'
url = 'https://github.com/VaneProject/xrm/blob/master/LICENSE'
}
}
developers {
developer {
id = 'PersesTitan'
name = 'PersesTitan'
email = '[email protected]'
organization = "VaneProject"
organizationUrl = 'https://github.com/VaneProject'
}
}
scm {
connection = 'scm:git:git:github.com/VaneProject/xrm.git'
developerConnection = 'scm:git:ssh://github.com/VaneProject/xrm.git'
url = 'https://github.com/VaneProject/xrm'
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.properties["ossrhUsername"]
password = project.properties["ossrhPassword"]
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}