mangadex_at_home/build.gradle

60 lines
1.6 KiB
Groovy
Raw Normal View History

2020-06-06 22:52:25 +00:00
plugins {
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-13 23:19:04 +00:00
id 'dev.afanasev.sekret' version '0.0.3'
2020-06-06 22:52:25 +00:00
}
group = "com.mangadex"
version = "git describe --tags".execute().text.trim()
mainClassName = "mdnet.base.MangaDexClient"
2020-06-06 22:52:25 +00:00
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
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-13 22:25:03 +00:00
implementation group: "org.http4k", name: "http4k-format-gson", version: "$http_4k_version"
2020-06-12 19:56:51 +00:00
implementation group: "commons-io", name: "commons-io", version: "2.7"
2020-06-12 19:56:51 +00:00
2020-06-13 23:19:04 +00:00
implementation group:"ch.qos.logback", name: "logback-classic", version: "$logback_version"
runtimeOnly group:"io.netty", name: "netty-tcnative-boringssl-static", version: "2.0.30.Final"
compileOnly group:"dev.afanasev", name: "sekret-annotation", version: "0.0.3"
2020-06-06 22:52:25 +00:00
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
spotless {
java {
2020-06-12 19:56:51 +00:00
indentWithSpaces(4)
2020-06-06 22:52:25 +00:00
eclipse()
removeUnusedImports()
trimTrailingWhitespace()
endWithNewline()
}
kotlin {
2020-06-12 19:56:51 +00:00
indentWithSpaces(4)
2020-06-06 22:52:25 +00:00
ktlint()
trimTrailingWhitespace()
endWithNewline()
}
}
run {
args = ["dev/settings.json"]
}