-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (61 loc) · 1.91 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
kotlin("jvm") version "2.0.21"
id("java-library")
id("com.vanniktech.maven.publish") version "0.30.0"
}
val versionName = "0.3.6"
group = "com.kylecorry"
version = versionName
mavenPublishing {
coordinates("com.kylecorry", "luna", versionName)
pom {
name.set("Luna")
description.set("A library of useful Kotlin utilities.")
url.set("https://github.com/kylecorry31/luna")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("kylecorry31")
name.set("Kyle Corry")
email.set("kylecorry31@gmail.com")
}
}
scm {
connection.set("scm:git:git://github.com/kylecorry31/luna.git")
developerConnection.set("scm:git:ssh://github.com:kylecorry31/luna.git")
url.set("https://github.com/kylecorry31/luna")
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.2")
testImplementation("org.junit.platform:junit-platform-runner:1.10.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
}
tasks.test {
useJUnitPlatform()
}
// Setup javadocs
tasks.withType<Javadoc> {
// Add the sources to the javadoc task
source = sourceSets.main.get().allJava
classpath += files(sourceSets.main.get().compileClasspath)
// Only include public and protected classes
include("**/public/**", "**/protected/**")
}
kotlin {
jvmToolchain(11)
}