|
@@ -1,6 +1,3 @@
|
|
|
-//apply plugin: 'jar'
|
|
|
-//apply plugin: 'war'
|
|
|
-
|
|
|
apply plugin: 'docker'
|
|
|
apply plugin: 'application'
|
|
|
|
|
@@ -9,9 +6,6 @@ buildscript {
|
|
|
mavenCentral()
|
|
|
}
|
|
|
dependencies {
|
|
|
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
- classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
|
|
|
- classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
|
|
|
classpath('se.transmode.gradle:gradle-docker:1.2')
|
|
|
}
|
|
|
}
|
|
@@ -46,15 +40,5 @@ task dockerBuilder(type: Docker) {
|
|
|
dockerBuilder.dependsOn(bootJar)
|
|
|
|
|
|
|
|
|
-bootJar {
|
|
|
- enabled = true
|
|
|
-}
|
|
|
-
|
|
|
-jar {
|
|
|
- enabled = false
|
|
|
-}
|
|
|
-
|
|
|
-//实际上这个配置是没有用的,distDocker 打包出来的,启动不了
|
|
|
-startScripts{
|
|
|
- mainClassName='org.springframework.boot.loader.JarLauncher'
|
|
|
-}
|
|
|
+bootJar { enabled = true }
|
|
|
+jar { enabled = false }
|