aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-26 17:22:03 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-26 17:22:03 +0000
commitc47bef40cc3b01d0dac1941b9be9ce7229d40af9 (patch)
treef4199af340b3a1896ce2c9a1951c5e4c8690762e /build.gradle.kts
parentadded a fatjar task (diff)
downloadmdrtl-c47bef40cc3b01d0dac1941b9be9ce7229d40af9.tar.gz
mdrtl-c47bef40cc3b01d0dac1941b9be9ce7229d40af9.zip
a working dockerfile
Diffstat (limited to '')
-rw-r--r--build.gradle.kts28
1 files changed, 18 insertions, 10 deletions
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 {