-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (46 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
plugins {
kotlin("jvm") version "1.9.21"
id("maven-publish")
}
group = "org.gnit.bible"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
testImplementation("org.jetbrains.kotlin:kotlin-test")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
tasks.register<Jar>("sourcesJar") {
from(sourceSets.main.get().allSource)
archiveClassifier.set("sources")
}
publishing {
repositories {
maven(uri(".m2\\repository")){
name = project.name
}
}
/* publications.withType<MavenPublication> {
pom {
name.set(project.name)
description.set("Kotlin multiplatform core library for bbl bible software for different platforms")
}
}*/
publications {
create<MavenPublication>(project.name) {
groupId = group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
artifact(tasks.named("sourcesJar"))
}
}
}