|
@@ -1,3 +1,16 @@
|
|
|
+buildscript {
|
|
|
+ repositories {
|
|
|
+ jcenter()
|
|
|
+ }
|
|
|
+ dependencies {
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+plugins {
|
|
|
+ id 'com.google.cloud.tools.jib' version '2.6.0'
|
|
|
+ id 'org.springframework.boot' version '2.3.4.RELEASE'
|
|
|
+}
|
|
|
+
|
|
|
description = "maxkey-web-maxkey"
|
|
|
|
|
|
// Apply the java plugin to add support for Java
|
|
@@ -7,15 +20,21 @@ apply plugin: 'java'
|
|
|
//apply plugin: 'com.bmuschko.tomcat-base'
|
|
|
//apply plugin: 'com.bmuschko.tomcat'
|
|
|
|
|
|
-buildscript {
|
|
|
- repositories {
|
|
|
- jcenter()
|
|
|
- }
|
|
|
- dependencies {
|
|
|
- //classpath "com.bmuschko:gradle-tomcat-plugin:2.2.3"
|
|
|
- }
|
|
|
+jib {
|
|
|
+ from {
|
|
|
+ image = 'adoptopenjdk:11-jre-openj9'
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ image = "maxkey/maxkey-web-maxkey"
|
|
|
+ tags = ["${project.version}".toString(), 'latest']
|
|
|
+ }
|
|
|
+ container {
|
|
|
+ jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=80']
|
|
|
+ ports = ['80']
|
|
|
+ }
|
|
|
}
|
|
|
-dependencies {
|
|
|
+
|
|
|
+dependencies {
|
|
|
compile project(":maxkey-core")
|
|
|
compile project(":maxkey-persistence")
|
|
|
|