-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (39 loc) · 998 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
42
43
44
45
46
47
48
49
50
51
52
plugins {
kotlin("jvm") version "2.0.21"
application
}
group = "dev.yuua"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation("org.seleniumhq.selenium:selenium-java:4.26.0")
implementation("org.seleniumhq.selenium:selenium-support:4.26.0")
implementation("com.github.ajalt.clikt:clikt:4.4.0")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
}
application {
mainClass.set("MainKt")
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "MainKt"
}
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName.set("pixiv-novels-markdown")
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter {
it.name.endsWith("jar")
}.map { zipTree(it) }
})
}