Database-Manager/build.gradle.kts

78 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-02-21 14:27:57 -05:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "dev.fyloz.colorrecipesexplorer"
2022-04-10 23:44:10 -04:00
version = "6.0"
2021-02-21 14:27:57 -05:00
plugins {
2022-04-10 23:44:10 -04:00
kotlin("jvm") version "1.6.20"
id("org.jetbrains.dokka") version "1.6.10"
2021-03-04 13:05:23 -05:00
id("maven-publish")
2022-04-10 23:44:10 -04:00
id("com.github.johnrengelman.shadow") version "7.1.2"
2021-02-21 14:27:57 -05:00
}
repositories {
mavenCentral()
}
dependencies {
2022-04-10 23:44:10 -04:00
implementation("org.liquibase:liquibase-core:4.9.0")
2021-02-21 14:27:57 -05:00
// Logging
2022-04-10 23:44:10 -04:00
implementation("io.github.microutils:kotlin-logging:2.1.21")
implementation("org.slf4j:slf4j-api:1.7.36")
implementation("ch.qos.logback:logback-classic:1.2.11")
2022-04-10 23:44:10 -04:00
runtimeOnly("mysql:mysql-connector-java:8.0.28")
2022-04-10 23:44:10 -04:00
testImplementation("io.mockk:mockk:1.12.3")
testImplementation("io.kotest:kotest-runner-junit5:5.2.2")
testImplementation("io.kotest:kotest-framework-datatest:5.2.2")
2021-03-04 13:05:23 -05:00
}
publishing {
publications {
create<MavenPublication>("cre-database-manager") {
from(components["kotlin"])
}
}
repositories {
maven {
2021-09-11 23:33:04 -04:00
url = uri("https://archiva.fyloz.dev/repository/internal/")
name = "Archiva"
credentials {
username = System.getenv("ARCHIVA_USERNAME")
password = System.getenv("ARCHIVA_PASSWORD")
2021-03-04 13:05:23 -05:00
}
}
}
2021-02-21 14:27:57 -05:00
}
tasks.test {
useJUnitPlatform()
2021-03-04 13:05:23 -05:00
testLogging {
events("failed")
}
reports {
junitXml.isEnabled = true
html.isEnabled = false
}
2021-02-21 14:27:57 -05:00
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "dev.fyloz.colorrecipesexplorer.databasemanager.DatabaseUpdaterKt"
}
2021-02-21 14:27:57 -05:00
}
2021-03-04 13:05:23 -05:00
tasks.dokkaHtml {
outputDirectory.set(rootDir.resolve("dokka"))
}