This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (76 loc) · 2.29 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
`maven-publish`
signing
}
group = "io.github.edgeatzero"
version = "1.0.2-SNAPSHOT"
repositories {
google()
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
compileOnly("io.ktor:ktor-client-core:2.0.3")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
test {
useJUnitPlatform()
}
}
signing {
sign(publishing.publications)
}
publishing {
repositories {
maven {
name = "sonatype"
if (version.toString().endsWith("SNAPSHOT")) {
setUrl("https://s01.oss.sonatype.org/content/repositories/snapshots/")
} else {
setUrl("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
}
credentials {
username = properties["sonatypeUsername"] as String
password = properties["sonatypePassword"] as String
}
}
}
publications {
create<MavenPublication>("Maven") {
groupId = "io.github.edgeatzero"
artifactId = "BookSource-api"
version = project.version.toString()
pom {
name.set("Edge Reader Source Api")
description.set("edge reader core source api")
licenses {
license {
name.set("MIT")
url.set("https://github.com/EdgeAtZero/BookSource-api/blob/master/LICENSE")
}
}
issueManagement {
system.set("Github")
url.set("https://github.com/EdgeAtZero/BookSource-api/issues")
}
scm {
connection.set("https://github.com/EdgeAtZero/BookSource-api.git")
url.set("https://github.com/EdgeAtZero/BookSource-api")
}
developers {
developer {
name.set("Edge At Zero")
email.set("[email protected]")
}
}
from(components["kotlin"])
}
}
}
}