2020-06-06 22:52:25 +00:00
|
|
|
plugins {
|
2020-06-08 15:17:21 +00:00
|
|
|
id "java"
|
|
|
|
id "org.jetbrains.kotlin.jvm" version "1.3.72"
|
|
|
|
id "application"
|
|
|
|
id "com.github.johnrengelman.shadow" version "5.2.0"
|
2020-06-06 22:52:25 +00:00
|
|
|
id "com.diffplug.gradle.spotless" version "3.18.0"
|
|
|
|
}
|
|
|
|
|
2020-06-08 15:17:21 +00:00
|
|
|
group = "com.mangadex"
|
2020-06-09 22:37:42 +00:00
|
|
|
version = "1.0.0-rc10"
|
2020-06-08 15:17:21 +00:00
|
|
|
mainClassName = "mdnet.base.MangaDexClient"
|
2020-06-06 22:52:25 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
2020-06-08 15:17:21 +00:00
|
|
|
implementation group: "com.konghq", name: "unirest-java", version: "3.7.02"
|
2020-06-06 22:52:25 +00:00
|
|
|
|
|
|
|
implementation group: "org.http4k", name: "http4k-core", version: "$http_4k_version"
|
|
|
|
implementation group: "org.http4k", name: "http4k-server-netty", version: "$http_4k_version"
|
|
|
|
implementation group: "org.http4k", name: "http4k-client-apache", version: "$http_4k_version"
|
2020-06-08 15:17:21 +00:00
|
|
|
implementation group: "commons-io", name: "commons-io", version: "2.7"
|
2020-06-06 22:52:25 +00:00
|
|
|
|
|
|
|
implementation "ch.qos.logback:logback-classic:$logback_version"
|
2020-06-08 15:17:21 +00:00
|
|
|
runtimeOnly 'io.netty:netty-tcnative-boringssl-static:2.0.30.Final'
|
2020-06-06 22:52:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
spotless {
|
|
|
|
java {
|
|
|
|
eclipse()
|
|
|
|
removeUnusedImports()
|
|
|
|
trimTrailingWhitespace()
|
|
|
|
endWithNewline()
|
|
|
|
}
|
|
|
|
kotlin {
|
|
|
|
ktlint()
|
|
|
|
trimTrailingWhitespace()
|
|
|
|
endWithNewline()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
run {
|
|
|
|
args = ["dev/settings.json"]
|
|
|
|
}
|