Skip to content

Commit

Permalink
springboot jar package
Browse files Browse the repository at this point in the history
  • Loading branch information
shimingxy committed Dec 21, 2020
1 parent 2c7f4fc commit b683ae3
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 22 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ jacksonVersion =2.11.2
bouncycastleVersion =1.64
httpcomponentsVersion =4.5.12
poiVersion =4.1.2
jibGradlePluginVersion =2.6.0
43 changes: 32 additions & 11 deletions maxkey-web-manage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,58 @@ buildscript {
jcenter()
}
dependencies {
//springboot jar
//classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}



description = "maxkey-web-manage"

// Apply the java plugin to add support for Java
apply plugin: 'java'
//apply plugin: 'war'
//apply plugin: 'eclipse-wtp'
//apply plugin: 'com.bmuschko.tomcat-base'
//apply plugin: 'com.bmuschko.tomcat'

//springboot jar
/*
apply plugin: 'io.spring.dependency-management'
plugins {
id 'org.springframework.boot' version "${springBootVersion}"
}
bootJar {
dependsOn jar
baseName = 'maxkey-mgt-boot'
version = "${project.version}-ga"
mainClass = 'org.maxkey.MaxKeyMgtApplication'
manifest {
attributes(
"Implementation-Title": project.name,
"Implementation-Vendor": project.vendor,
"Created-By": project.author,
"Implementation-Date": java.time.ZonedDateTime.now(),
"Implementation-Version": project.version
)
}
}
*/

/*
plugins {
id 'com.google.cloud.tools.jib' version '2.6.0'
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
id 'org.springframework.boot' version "${springBootVersion}"
}
jib {
from {
image = 'adoptopenjdk:11-jre-openj9'
}
to {
image = "maxkey/maxkey-mgt"
image = "maxkey/maxkey-mgt-docker"
tags = ["${project.version}".toString(), 'latest']
}
container {
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=80']
ports = ['80']
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9521']
ports = ['9521']
}
}
*/
Expand Down
44 changes: 33 additions & 11 deletions maxkey-web-maxkey/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,59 @@ buildscript {
jcenter()
}
dependencies {
//springboot jar
//classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}



description = "maxkey-web-maxkey"

// Apply the java plugin to add support for Java
apply plugin: 'java'
//apply plugin: 'war'
//apply plugin: 'eclipse-wtp'
//apply plugin: 'com.bmuschko.tomcat-base'
//apply plugin: 'com.bmuschko.tomcat'

//springboot jar
/*
apply plugin: 'io.spring.dependency-management'
plugins {
id 'org.springframework.boot' version "${springBootVersion}"
}
bootJar {
dependsOn jar
baseName = 'maxkey-boot'
version = "${project.version}-ga"
mainClass = 'org.maxkey.MaxKeyApplication'
manifest {
attributes(
"Implementation-Title": project.name,
"Implementation-Vendor": project.vendor,
"Created-By": project.author,
"Implementation-Date": java.time.ZonedDateTime.now(),
"Implementation-Version": project.version
)
}
}
*/


/*
plugins {
id 'com.google.cloud.tools.jib' version '2.6.0'
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
id 'org.springframework.boot' version "${springBootVersion}"
}
jib {
from {
image = 'adoptopenjdk:11-jre-openj9'
}
to {
image = "maxkey/maxkey"
image = "maxkey/maxkey-docker"
tags = ["${project.version}".toString(), 'latest']
}
container {
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=80']
ports = ['80']
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=443']
ports = ['443']
}
}
*/
Expand Down
Binary file not shown.

0 comments on commit b683ae3

Please sign in to comment.