add openapi service
This commit is contained in:
59
maxkey-webs/maxkey-web-openapi/config/build_docker.gradle
Normal file
59
maxkey-webs/maxkey-web-openapi/config/build_docker.gradle
Normal file
@@ -0,0 +1,59 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
||||
}
|
||||
}
|
||||
//docker
|
||||
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-openapi"
|
||||
|
||||
jib {
|
||||
from {
|
||||
image = "${jibFromImage}"
|
||||
}
|
||||
to {
|
||||
//https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey-openapi
|
||||
image = "${jibToImage}/maxkey-openapi"
|
||||
tags = ["${project.version}".toString(), 'latest']
|
||||
auth {
|
||||
username = "${jibToAuthUsername}"
|
||||
password = "${jibToAuthPassword}"
|
||||
}
|
||||
|
||||
}
|
||||
container {
|
||||
mainClass = "org.maxkey.MaxKeyOpenApiApplication"
|
||||
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9526','-Duser.timezone=Asia/Shanghai']
|
||||
ports = ['9525']
|
||||
}
|
||||
}
|
||||
|
||||
//build.configure { finalizedBy jib }
|
||||
|
||||
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-captcha")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
||||
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||
|
||||
//webapis
|
||||
implementation project(":maxkey-web-apis:maxkey-web-api-scim")
|
||||
implementation project(":maxkey-web-apis:maxkey-web-api-rest")
|
||||
|
||||
}
|
||||
59
maxkey-webs/maxkey-web-openapi/config/build_jar.gradle
Normal file
59
maxkey-webs/maxkey-web-openapi/config/build_jar.gradle
Normal file
@@ -0,0 +1,59 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
||||
}
|
||||
dependencies {
|
||||
//springboot jar
|
||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'org.springframework.boot' version "${springBootVersion}"
|
||||
id "io.spring.dependency-management" version "1.0.11.RELEASE"
|
||||
}
|
||||
|
||||
description = "maxkey-web-openapi"
|
||||
|
||||
//springboot jar
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
||||
//add support for Java
|
||||
apply plugin: 'java'
|
||||
|
||||
|
||||
|
||||
bootJar {
|
||||
dependsOn jar
|
||||
baseName = 'maxkey-openapi-boot'
|
||||
version = "${project.version}-ga"
|
||||
mainClass = 'org.maxkey.MaxKeyOpenApiApplication'
|
||||
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-captcha")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
||||
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||
|
||||
//webapis
|
||||
implementation project(":maxkey-web-apis:maxkey-web-api-scim")
|
||||
implementation project(":maxkey-web-apis:maxkey-web-api-rest")
|
||||
}
|
||||
24
maxkey-webs/maxkey-web-openapi/config/build_standard.gradle
Normal file
24
maxkey-webs/maxkey-web-openapi/config/build_standard.gradle
Normal file
@@ -0,0 +1,24 @@
|
||||
description = "maxkey-web-openapi"
|
||||
|
||||
//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-captcha")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
||||
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
||||
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
||||
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
||||
|
||||
//webapis
|
||||
implementation project(":maxkey-web-apis:maxkey-web-api-scim")
|
||||
implementation project(":maxkey-web-apis:maxkey-web-api-rest")
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user