| | import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar |
---|
| | |
---|
| | group = "org.example" |
---|
| | version = "1.0-SNAPSHOT" |
---|
| | |
---|
| | plugins { |
---|
| | application |
---|
| | kotlin("jvm") version "1.3.61" |
---|
| | kotlin("plugin.spring") version "1.3.50" |
---|
| | id("org.springframework.boot") version "2.2.5.RELEASE" |
---|
| | id("org.springframework.boot") version "2.2.3.RELEASE" |
---|
| | id("io.spring.dependency-management") version "1.0.9.RELEASE" |
---|
| | id("com.github.johnrengelman.shadow") version "5.0.0" |
---|
| | } |
---|
| | |
---|
| | application { |
---|
| | mainClassName = "com.example.sample.SpringSampleApplicationKt" |
---|
| |
---|
| | implementation(group = "org.xerial", name = "sqlite-jdbc", version = "3.8.11.2") |
---|
| | } |
---|
| | |
---|
| | tasks { |
---|
| | withType<Jar> { |
---|
| | withType<ShadowJar> { |
---|
| | manifest { |
---|
| | attributes( |
---|
| | mapOf( |
---|
| | "Main-Class" to application.mainClassName |
---|
| |
---|
|