diff options
author | terminaldweller <thabogre@gmail.com> | 2022-02-26 17:22:03 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-02-26 17:22:03 +0000 |
commit | c47bef40cc3b01d0dac1941b9be9ce7229d40af9 (patch) | |
tree | f4199af340b3a1896ce2c9a1951c5e4c8690762e /build.gradle.kts | |
parent | added a fatjar task (diff) | |
download | mdrtl-c47bef40cc3b01d0dac1941b9be9ce7229d40af9.tar.gz mdrtl-c47bef40cc3b01d0dac1941b9be9ce7229d40af9.zip |
a working dockerfile
Diffstat (limited to '')
-rw-r--r-- | build.gradle.kts | 28 |
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 { |