-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
101 lines (85 loc) · 2.69 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
101 lines (85 loc) · 2.69 KB
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
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import com.github.benmanes.gradle.versions.updates.gradle.GradleReleaseChannel
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinJvm
import com.vanniktech.maven.publish.SourcesJar
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.versions)
alias(libs.plugins.maven.publish)
}
tasks.withType<DependencyUpdatesTask> {
gradleReleaseChannel = GradleReleaseChannel.CURRENT.id
rejectVersionIf {
listOf("alpha", "beta", "rc", "cr", "m", "eap", "pr", "dev").any {
candidate.version.contains(it, ignoreCase = true)
}
}
}
tasks.withType<Jar> {
from(rootDir.resolve("LICENSE")) {
into("META-INF")
}
}
kotlin {
explicitApi()
jvmToolchain(8)
compilerOptions {
optIn.add("kotlin.contracts.ExperimentalContracts")
freeCompilerArgs.add("-Xreturn-value-checker=full")
}
}
dependencies {
implementation(libs.kotlin.inline.logger)
implementation(libs.kotlin.coroutines.core)
testImplementation(libs.kotlin.test)
testImplementation(libs.kotlin.coroutines.test)
testImplementation(libs.mockk)
}
mavenPublishing {
publishToMavenCentral()
signAllPublications()
configure(
KotlinJvm(
javadocJar = JavadocJar.Empty(),
sourcesJar = SourcesJar.Sources(),
)
)
pom {
name.set(project.name)
description.set(project.description)
url.set("https://github.com/michaelbull/kotlin-coroutines-jdbc")
inceptionYear.set("2019")
licenses {
license {
name.set("ISC License")
url.set("https://opensource.org/licenses/isc-license.txt")
}
}
developers {
developer {
name.set("Michael Bull")
url.set("https://www.michael-bull.com")
}
}
contributors {
contributor {
name.set("huntj88")
url.set("https://github.com/huntj88")
}
}
scm {
connection.set("scm:git:https://github.com/michaelbull/kotlin-coroutines-jdbc")
developerConnection.set("scm:git:git@github.com:michaelbull/kotlin-coroutines-jdbc.git")
url.set("https://github.com/michaelbull/kotlin-coroutines-jdbc")
}
issueManagement {
system.set("GitHub")
url.set("https://github.com/michaelbull/kotlin-coroutines-jdbc/issues")
}
ciManagement {
system.set("GitHub")
url.set("https://github.com/michaelbull/kotlin-coroutines-jdbc/actions")
}
}
}