From c47bef40cc3b01d0dac1941b9be9ce7229d40af9 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 26 Feb 2022 20:52:03 +0330 Subject: a working dockerfile --- build.gradle.kts | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index 4fb985e..d08e6f6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,22 +12,30 @@ repositories { } dependencies { - implementation("org.springframework.boot:spring-boot-starter-data-jdbc") + // implementation("org.springframework.boot:spring-boot-starter-data-jdbc") implementation("org.springframework.boot:spring-boot-starter-web") - runtimeOnly("org.postgresql:postgresql") + // runtimeOnly("org.postgresql:postgresql") testImplementation("org.springframework.boot:spring-boot-starter-test") } -tasks.create("FatJar", Jar::class) { - description = "makes a fatjar" - group = "build" - manifest.attributes["Main-Class"] = "com.terminaldweller.MainApplication" - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - val dependencies = configurations.runtimeClasspath.get().map(::zipTree) - from(dependencies) - with(tasks.jar.get()) +// tasks.create("FatJar", Jar::class) { +// description = "makes a fatjar" +// group = "build" +// manifest.attributes["Main-Class"] = "com.terminaldweller.MainApplication" +// duplicatesStrategy = DuplicatesStrategy.EXCLUDE +// val dependencies = configurations.runtimeClasspath.get().map(::zipTree) +// from(dependencies) +// with(tasks.jar.get()) +// } + +springBoot { + mainClass.set("com.terminaldweller.MainApplication") } +// application { +// mainClass.set("com.terminaldweller.MainApplication") +// } + sourceSets { main { java { -- cgit v1.2.3