lint and simplify code

This commit is contained in:
2023-06-01 02:15:08 +02:00
parent ad657a6136
commit 1def5ae095
4 changed files with 35 additions and 35 deletions

View File

@@ -1,6 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val containerAlwaysOn: String by project
val disableLint: String by project
val projectName = "postgres-json"
plugins {
jacoco
@@ -86,7 +87,7 @@ val sourcesJar by tasks.creating(Jar::class) {
apply(plugin = "docker-compose")
dockerCompose {
setProjectName("postgres-json")
setProjectName(projectName)
setProperty("useComposeFiles", listOf("docker-compose.yml"))
setProperty("stopContainers", !containerAlwaysOn.toBoolean())
isRequiredBy(project.tasks.test)
@@ -95,7 +96,7 @@ dockerCompose {
publishing {
repositories {
maven {
name = "postgres-json"
name = projectName
url = uri("https://maven.pkg.github.com/flecomte/postgres-json")
credentials {
username = System.getenv("GITHUB_USERNAME")
@@ -105,7 +106,7 @@ publishing {
}
publications {
create<MavenPublication>("postgres-json") {
create<MavenPublication>(projectName) {
from(components["java"])
artifact(sourcesJar)
}