2021-03-07 22:53:16 +08:00
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
2021-09-08 22:27:59 +08:00
|
|
|
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
|
2021-03-07 22:53:16 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//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'
|
|
|
|
|
|
2021-09-08 22:27:59 +08:00
|
|
|
description = "maxkey-web-mgt"
|
2021-03-07 22:53:16 +08:00
|
|
|
|
|
|
|
|
jib {
|
|
|
|
|
from {
|
2021-09-08 22:27:59 +08:00
|
|
|
image = "${jibFromImage}"
|
2021-03-07 22:53:16 +08:00
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
//https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey-mgt
|
2021-09-08 22:27:59 +08:00
|
|
|
image = "${jibToImage}/maxkey-mgt"
|
2021-03-07 22:53:16 +08:00
|
|
|
tags = ["${project.version}".toString(), 'latest']
|
|
|
|
|
auth {
|
2021-09-08 22:27:59 +08:00
|
|
|
username = "${jibToAuthUsername}"
|
|
|
|
|
password = "${jibToAuthPassword}"
|
2021-03-07 22:53:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
container {
|
|
|
|
|
mainClass = "org.maxkey.MaxKeyMgtApplication"
|
2022-05-06 08:50:50 +08:00
|
|
|
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9526','-Duser.timezone=Asia/Shanghai']
|
|
|
|
|
ports = ['9526']
|
2021-03-07 22:53:16 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-08 22:27:59 +08:00
|
|
|
//build.configure { finalizedBy jib }
|
|
|
|
|
|
2021-03-07 22:53:16 +08:00
|
|
|
dependencies {
|
2021-04-17 09:44:10 +08:00
|
|
|
implementation project(":maxkey-common")
|
|
|
|
|
implementation project(":maxkey-core")
|
|
|
|
|
implementation project(":maxkey-persistence")
|
2021-03-07 22:53:16 +08:00
|
|
|
|
2021-04-17 09:44:10 +08:00
|
|
|
implementation project(":maxkey-authentications:maxkey-authentication-core")
|
|
|
|
|
implementation project(":maxkey-authentications:maxkey-authentication-captcha")
|
|
|
|
|
implementation project(":maxkey-authentications:maxkey-authentication-otp")
|
2022-08-05 06:50:32 +08:00
|
|
|
implementation project(":maxkey-authentications:maxkey-authentication-provider")
|
2023-02-02 11:48:11 +08:00
|
|
|
implementation project(":maxkey-authentications:maxkey-authentication-sms")
|
2021-09-08 18:30:54 +08:00
|
|
|
|
2021-04-17 09:44:10 +08:00
|
|
|
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
|
|
|
|
|
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
|
2022-01-23 08:12:25 +08:00
|
|
|
|
|
|
|
|
//synchronizers
|
|
|
|
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer")
|
|
|
|
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-activedirectory")
|
2022-01-23 14:13:49 +08:00
|
|
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-feishu")
|
2022-10-16 17:23:34 +08:00
|
|
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-jdbc")
|
2022-01-23 08:12:25 +08:00
|
|
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-ldap")
|
|
|
|
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-workweixin")
|
|
|
|
|
implementation project(":maxkey-synchronizers:maxkey-synchronizer-dingtalk")
|
2021-09-08 18:30:54 +08:00
|
|
|
|
2021-03-07 22:53:16 +08:00
|
|
|
|
|
|
|
|
}
|