-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
92 lines (77 loc) · 2.87 KB
/
build.gradle.kts
File metadata and controls
92 lines (77 loc) · 2.87 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinVersion: String = "2.1.21"
plugins {
`maven-publish`
kotlin("jvm") version "2.1.21"
id("com.adarshr.test-logger") version "4.0.0"
id("com.vanniktech.maven.publish") version "0.33.0"
}
group = "io.github.kscripting"
version = "0.6.0"
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(17)
}
tasks.withType<KotlinCompile>().all {
compilerOptions {
freeCompilerArgs.add("-Xcontext-parameters")
}
}
testlogger {
showStandardStreams = true
showFullStackTraces = false
}
tasks.test {
useJUnitPlatform()
}
// NOTE: deploying snapshots is complicated with this plugin
// It is better to use repository with the staging version of artifact to test it
mavenPublishing {
pom {
name.set("shell")
description.set("Shell - library for interoperability with different system shells")
url.set("https://github.com/kscripting/shell")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("aartiPl")
name.set("Marcin Kuszczak")
email.set("aarti@interia.pl")
}
}
scm {
connection.set("scm:git:git://https://github.com/kscripting/shell.git")
developerConnection.set("scm:git:ssh:https://github.com/kscripting/shell.git")
url.set("https://github.com/kscripting/shell")
}
}
publishToMavenCentral()
signAllPublications()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-scripting-common:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-scripting-jvm:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-scripting-dependencies-maven-all:$kotlinVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
implementation("io.arrow-kt:arrow-core:2.1.2")
implementation("org.apache.commons:commons-lang3:3.17.0")
implementation("org.slf4j:slf4j-nop:2.0.17")
val junitVersion = "6.0.0-M1"
testImplementation("org.junit.platform:junit-platform-suite-engine:$junitVersion")
testImplementation("org.junit.platform:junit-platform-suite-api:$junitVersion")
testImplementation("org.junit.platform:junit-platform-suite-commons:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.28.1")
testImplementation("io.mockk:mockk:1.14.4")
testImplementation(kotlin("script-runtime"))
}