static
This commit is contained in:
59
maxkey-webs/maxkey-web-maxkey/config/build_docker.gradle
Normal file
59
maxkey-webs/maxkey-web-maxkey/config/build_docker.gradle
Normal file
@@ -0,0 +1,59 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
|
||||
id 'org.springframework.boot' version "${springBootVersion}"
|
||||
}
|
||||
|
||||
apply plugin: 'com.google.cloud.tools.jib'
|
||||
|
||||
description = "maxkey-web-maxkey"
|
||||
|
||||
//docker
|
||||
jib {
|
||||
from {
|
||||
image = 'openjdk:8-jre-alpine'
|
||||
}
|
||||
to {
|
||||
//https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey
|
||||
image = "maxkeytop/maxkey"
|
||||
tags = ["${project.version}".toString(), 'latest']
|
||||
auth {
|
||||
username = "maxkeytop"
|
||||
password = "password"
|
||||
}
|
||||
}
|
||||
container {
|
||||
mainClass = "org.maxkey.MaxKeyApplication"
|
||||
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=443','-Duser.timezone=Asia/Shanghai']
|
||||
ports = ['443']
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":maxkey-common")
|
||||
implementation project(":maxkey-core")
|
||||
implementation project(":maxkey-persistence")
|
||||
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
||||
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-desktop")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-formbased")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
|
||||
|
||||
}
|
||||
57
maxkey-webs/maxkey-web-maxkey/config/build_jar.gradle
Normal file
57
maxkey-webs/maxkey-web-maxkey/config/build_jar.gradle
Normal file
@@ -0,0 +1,57 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
|
||||
}
|
||||
dependencies {
|
||||
//springboot jar
|
||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
||||
id 'org.springframework.boot' version "${springBootVersion}"
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
||||
description = "maxkey-web-maxkey"
|
||||
|
||||
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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":maxkey-common")
|
||||
implementation project(":maxkey-core")
|
||||
implementation project(":maxkey-persistence")
|
||||
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
||||
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-desktop")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-formbased")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
|
||||
}
|
||||
25
maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle
Normal file
25
maxkey-webs/maxkey-web-maxkey/config/build_standard.gradle
Normal file
@@ -0,0 +1,25 @@
|
||||
description = "maxkey-web-maxkey"
|
||||
|
||||
//add support for Java
|
||||
apply plugin: 'java'
|
||||
|
||||
dependencies {
|
||||
implementation project(":maxkey-common")
|
||||
implementation project(":maxkey-core")
|
||||
implementation project(":maxkey-persistence")
|
||||
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-social")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
||||
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-cas")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-desktop")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-formbased")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
|
||||
}
|
||||
Reference in New Issue
Block a user