mangadex_at_home/build.gradle

79 lines
2.7 KiB
Groovy
Raw Permalink Normal View History

2020-06-06 22:52:25 +00:00
plugins {
2020-07-04 19:00:59 +00:00
id "java"
id "org.jetbrains.kotlin.jvm" version "1.3.72"
id "application"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "com.diffplug.gradle.spotless" version "4.4.0"
id "dev.afanasev.sekret" version "0.0.3"
2020-06-06 22:52:25 +00:00
}
group = "com.mangadex"
version = "git describe --tags --dirty".execute().text.trim()
2020-06-17 22:41:04 +00:00
mainClassName = "mdnet.base.Main"
2020-06-06 22:52:25 +00:00
repositories {
2020-07-04 19:00:59 +00:00
mavenCentral()
jcenter()
2020-06-06 22:52:25 +00:00
}
2020-07-01 19:51:32 +00:00
configurations {
2020-07-04 19:00:59 +00:00
runtime.exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-core"
runtime.exclude group: "com.sun.mail", module: "javax.mail"
2020-07-01 19:51:32 +00:00
}
2020-06-06 22:52:25 +00:00
dependencies {
2020-07-04 19:00:59 +00:00
compileOnly group: "dev.afanasev", name: "sekret-annotation", version: "0.0.3"
2020-06-15 22:25:31 +00:00
2020-07-04 19:00:59 +00:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.jetbrains.kotlin:kotlin-reflect"
2020-07-04 19:00:59 +00:00
implementation group: "commons-io", name: "commons-io", version: "2.7"
2020-06-06 22:52:25 +00:00
2020-07-04 19:00:59 +00:00
implementation group: "org.http4k", name: "http4k-core", version: "$http_4k_version"
implementation group: "org.http4k", name: "http4k-format-jackson", version: "$http_4k_version"
implementation group: "com.fasterxml.jackson.datatype", name: "jackson-datatype-jsr310", version: "2.11.1"
implementation group: "org.http4k", name: "http4k-client-apache", version: "$http_4k_version"
implementation group: "org.http4k", name: "http4k-server-netty", version: "$http_4k_version"
runtimeOnly group: "io.netty", name: "netty-tcnative-boringssl-static", version: "2.0.30.Final"
2020-06-13 23:19:04 +00:00
2020-07-04 19:00:59 +00:00
implementation group: "ch.qos.logback", name: "logback-classic", version: "1.3.0-alpha4"
implementation group: "org.jetbrains.exposed", name: "exposed-core", version: "$exposed_version"
implementation group: "org.jetbrains.exposed", name: "exposed-dao", version: "$exposed_version"
implementation group: "org.jetbrains.exposed", name: "exposed-jdbc", version: "$exposed_version"
2020-07-01 19:51:32 +00:00
2020-07-04 19:00:59 +00:00
implementation group: "org.xerial", name: "sqlite-jdbc", version: "3.30.1"
2020-07-04 19:00:59 +00:00
implementation "com.goterl.lazycode:lazysodium-java:4.2.6"
implementation "net.java.dev.jna:jna:5.5.0"
2020-06-06 22:52:25 +00:00
}
java {
2020-07-04 19:00:59 +00:00
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
2020-06-06 22:52:25 +00:00
}
spotless {
2020-07-04 19:00:59 +00:00
java {
targetExclude("build/generated/**/*")
eclipse()
removeUnusedImports()
trimTrailingWhitespace()
endWithNewline()
}
kotlin {
ktlint()
trimTrailingWhitespace()
endWithNewline()
2020-07-01 19:51:32 +00:00
}
}
2020-07-04 19:00:59 +00:00
tasks.register("generateVersion", Copy) {
def templateContext = [version: version]
inputs.properties templateContext
from "src/template/java"
into "$buildDir/generated/java"
expand templateContext
}
2020-07-01 19:51:32 +00:00
2020-07-04 19:00:59 +00:00
sourceSets.main.java.srcDir generateVersion.outputs.files