-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.gradle.kts
41 lines (33 loc) · 943 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jetbrains.kotlin.jvm").version("1.5.21")
}
version = "1.1.0"
group = "org.hashids"
description = "Kotlin implementation of Hashids https://hashids.org"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.junit.jupiter:junit-jupiter:5.5.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.1")
runtime("org.junit.jupiter:junit-jupiter-engine:5.5.1")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Jar> {
manifest {
attributes(mapOf(
"Implementation-Version" to project.version,
"Implementation-Title" to project.description
))
}
}