-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (90 loc) · 2.58 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'maven-publish'
id 'org.jetbrains.dokka' version '1.4.10.2'
id 'signing'
id 'com.palantir.git-version' version '0.12.3'
}
group 'pro.felixo'
version gitVersion()
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation "com.willowtreeapps.assertk:assertk-jvm:0.21"
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.4.2"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
}
task sourcesJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
classifier = 'javadoc'
from "$buildDir/javadoc"
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact(sourcesJar) {
classifier = 'sources'
}
artifact(javadocJar) {
classifier = 'javadoc'
}
pom {
name = "csv-kotlin"
description = "A clean, fast, and convenient CSV library for Kotlin/JVM"
url = "https://github.com/berlix/csv-kotlin"
licenses {
license {
name = "The Unlicense"
url = "https://unlicense.org"
}
}
developers {
developer {
id = "berlix"
name = "Felix Engelhardt"
email = "[email protected]"
}
}
scm {
connection = "scm:git:git://github.com/berlix/csv-kotlin.git"
developerConnection = "scm:git:[email protected]:berlix/csv-kotlin.git"
url = "https://github.com/berlix/csv-kotlin"
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_TOKEN")
}
}
}
}
signing {
useInMemoryPgpKeys(System.getenv("OSSRH_GPG_KEY"), System.getenv("OSSRH_GPG_PASSWORD"))
sign publishing.publications.mavenJava
}