-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
101 lines (81 loc) · 2.78 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.21"
`maven-publish`
signing
}
group = "fr.raluy.simplespreadsheet"
version = "2.0.0"
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
val apachePoiVersion = "5.2.2"
implementation("org.apache.poi:poi:$apachePoiVersion")
implementation("org.apache.poi:poi-ooxml:$apachePoiVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.7.10")
implementation("com.opencsv:opencsv:5.6")
implementation("org.apache.tika:tika-core:2.9.2")
testImplementation("org.assertj:assertj-core:3.23.1")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.0")
testImplementation(kotlin("test"))
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
signing {
sign(configurations.archives.get())
sign(publishing.publications["mavenJava"])
}
from(components["java"])
pom {
name.set("Simple Spreadsheet")
packaging = "jar"
description.set("A simple spreasdheet parser.")
url.set("https://github.com/Draluy/SimpleSpreadsheet")
licenses {
license {
name.set("GNU General Public License, version 2")
url.set("https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html")
}
}
developers {
developer {
id.set("draluy")
name.set("David Raluy")
email.set("david@raluy.fr")
}
}
scm {
connection.set("git@github.com:Draluy/SimpleSpreadsheet.git")
developerConnection.set("git@github.com:Draluy/SimpleSpreadsheet.git")
url.set("https://github.com/Draluy/SimpleSpreadsheet")
}
}
}
}
repositories {
maven {
name = "myRepo"
val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
val ossrhUsername: String by project
val ossrhPassword: String by project
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}