-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (67 loc) · 1.97 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
plugins {
kotlin("jvm") version "1.7.20"
id("org.jetbrains.dokka") version "1.7.20"
id("java-library")
java
id("maven-publish")
}
lateinit var central: Publication
publishing {
publications {
central = create<MavenPublication>("cenTrAl") {
from(components["java"])
pom {
val repo = "precise_kt"
name.set("precise")
description.set("Kotlin/JVM compensated summation of Double " +
"sequences to calculate sum, mean, standard deviation")
url.set("https://github.com/rtmigo/$repo")
developers {
developer {
name.set("Artsiom iG")
email.set("ortemeo@gmail.com")
}
}
organization {
this.name.set("Revercode")
this.url.set("https://revercode.com")
}
scm {
connection.set("scm:git://github.com/rtmigo/$repo.git")
url.set("https://github.com/rtmigo/$repo")
}
licenses {
license {
name.set("MIT")
url.set("https://github.com/rtmigo/$repo/blob/HEAD/LICENSE")
}
}
}
}
}
}
group = "io.github.rtmigo"
version = "0.1.1"
java {
withSourcesJar() // для Maven Central
withJavadocJar()
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
testImplementation("io.kotest:kotest-assertions-core:5.5.1")
}
kotlin {
sourceSets {
val main by getting
val test by getting
}
}
tasks.test {
useJUnitPlatform()
}