50 lines
1.2 KiB
Kotlin
50 lines
1.2 KiB
Kotlin
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.0.20"
|
|
id("com.gradleup.shadow") version "8.3.8"
|
|
}
|
|
|
|
group = "org.koitharu"
|
|
version = "0.2"
|
|
|
|
tasks.withType<Jar> {
|
|
manifest {
|
|
attributes["Main-Class"] = "org.koitharu.kotatsu.dl.MainKt"
|
|
}
|
|
}
|
|
|
|
tasks.withType<ShadowJar> {
|
|
archiveBaseName = "kotatsu-dl"
|
|
archiveClassifier = ""
|
|
archiveVersion = ""
|
|
minimize {
|
|
exclude(dependency("org.openjdk.nashorn:.*:.*"))
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven { setUrl("https://jitpack.io") }
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(kotlin("test"))
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.10.2")
|
|
implementation("com.github.ajalt.clikt:clikt-core:5.0.3")
|
|
implementation("com.github.KotatsuApp:kotatsu-parsers:14cff0d651")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("com.squareup.okio:okio:3.11.0")
|
|
implementation("org.openjdk.nashorn:nashorn-core:15.6")
|
|
implementation("org.json:json:20240303")
|
|
implementation("me.tongfei:progressbar:0.10.1")
|
|
implementation("androidx.collection:collection:1.5.0")
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
} |