-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
104 lines (88 loc) · 2.53 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
98
99
100
101
102
103
104
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.20"
id("org.jetbrains.dokka") version "1.9.10"
`java-library`
`maven-publish`
}
group = "org.veupathdb.lib.s3"
version = "0.7.2+s34k-0.11.0"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
repositories {
mavenLocal()
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/veupathdb/packages")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("stdlib-jdk8"))
implementation("org.slf4j:slf4j-api:1.7.36")
implementation("io.minio:minio:8.5.10")
api("org.veupathdb.lib.s3:s34k-core:0.10.0+s34k-0.11.0")
testImplementation(kotlin("test"))
}
tasks.dokkaHtml {
outputDirectory.set(file("docs/dokka"))
}
tasks.dokkaJavadoc {
outputDirectory.set(file("docs/javadoc"))
}
task("docs") {
dependsOn("dokkaHtml", "dokkaJavadoc")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = "1.8"
}
}
publishing {
repositories {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/VEuPathDB/lib-s34k-minio")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
create<MavenPublication>("gpr") {
from(components["java"])
pom {
name.set("Generalized S3 API")
description.set("Provides a standard API for S3 operations which may be backed by varying implementations.")
url.set("https://github.com/VEuPathDB/lib-s34k-minio")
developers {
developer {
id.set("epharper")
name.set("Elizabeth Paige Harper")
email.set("epharper@upenn.edu")
url.set("https://github.com/foxcapades")
organization.set("VEuPathDB")
}
}
scm {
connection.set("scm:git:git://github.com/VEuPathDB/lib-s34k-minio.git")
developerConnection.set("scm:git:ssh://github.com/VEuPathDB/lib-s34k-minio.git")
url.set("https://github.com/VEuPathDB/lib-s34k-minio")
}
}
}
}
}