-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
95 lines (82 loc) · 2.55 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
val kotlinVersion = libs.versions.kotlin.get()
kotlin("jvm") version kotlinVersion
kotlin("kapt") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
alias(libs.plugins.anvil)
alias(libs.plugins.vanniktech.mavenPublish)
`maven-publish`
}
repositories {
mavenCentral()
}
dependencies {
implementation(libs.michaelbull.kotlinResult)
implementation(libs.kotlin.reflect)
implementation(libs.dagger)
kapt(libs.dagger.compiler)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
kaptTest(libs.dagger.compiler)
testImplementation(kotlin("test"))
testImplementation(libs.kotest.assertions.core)
testImplementation(libs.mockk)
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
val javaVersion = libs.versions.jvmVersion.get().toInt()
jvmToolchain(javaVersion)
}
mavenPublishing {
group = "com.x12q"
version = "1.0.0-alpha.6.1"
val libId = "randomizer"
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates(group.toString(), libId, version.toString())
pom{
name.set("Randomizer")
description.set("A randomizer library for Kotlin")
inceptionYear.set("2024")
url.set("https://github.com/x12q/randomizer")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("x12q")
name.set("The-Phong Pham")
url.set("x12q.com")
}
}
scm {
url.set("https://github.com/x12q/randomizer")
connection.set("scm:git:git://github.com/x12q/randomizer.git")
developerConnection.set("scm:git:ssh://git@github.com/x12q/randomizer.git")
}
issueManagement {
system.set("GitHub Issues")
url.set("https://github.com/x12q/randomizer/issues")
}
}
}
//publishing {
// /**
// * This is for local publishing
// */
// publications {
// create<MavenPublication>("maven") {
// groupId = group.toString()
// artifactId = id
// version = version
// from(components["java"])
// }
// }
//}