-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
70 lines (52 loc) · 1.47 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// MARK: - Properties -
group = "io.github.tscholze"
version = "1.0.10"
// MARK: - Plugins -
plugins {
kotlin("jvm") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
id("org.jetbrains.dokka") version "1.7.20"
application
}
// MARK: - Repositories -
repositories {
mavenCentral()
}
// MARK: - Dependencies -
dependencies {
// Markdown
implementation("org.commonmark:commonmark:0.20.0")
implementation("org.commonmark:commonmark-ext-yaml-front-matter:0.20.0")
implementation("org.commonmark:commonmark-ext-gfm-tables:0.20.0")
implementation("org.commonmark:commonmark-ext-autolink:0.20.0")
// Html
implementation("org.jsoup:jsoup:1.15.3")
// Json
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
// CLI
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
implementation("com.lordcodes.turtle:turtle:0.8.0")
// Test
testImplementation(kotlin("test"))
}
// MARK: - Application settings -
//application {
// mainClass.set("MainKt")
//}
// MARK: - Gradle tasks -
tasks.jar {
manifest.attributes["Main-Class"] = "MainKt"
val dependencies = configurations
.runtimeClasspath
.get()
.map(::zipTree)
from(dependencies)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}