-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
52 lines (40 loc) · 1.23 KB
/
build.gradle.kts
File metadata and controls
52 lines (40 loc) · 1.23 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
import org.gradle.jvm.tasks.Jar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "net.kleinhaneveld.mavendependencies"
version = "1.0-SNAPSHOT"
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin on the JVM
kotlin("jvm").version("1.3.20")
// Apply the application to add support for building a CLI application
application
}
repositories {
mavenCentral()
}
dependencies {
// Use the Kotlin JDK 8 standard library
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.github.ajalt:clikt:1.6.0")
// Use the Kotlin test library
testImplementation("org.jetbrains.kotlin:kotlin-test")
// Use the Kotlin JUnit integration
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testCompile("org.assertj:assertj-core:3.11.1")
}
application {
// Define the main class for the application
mainClassName = "net.kleinhaneveld.tree.PomParserKt"
}
tasks.withType<Jar> {
manifest.attributes.apply {
put("Main-Class", "net.kleinhaneveld.tree.PomParserKt")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
task<Exec>("deb") {
commandLine = listOf("debuild", "-i", "-us", "-uc", "-b")
}