From 5c929ca98160da196287b0ed3c32ff9be257e01c Mon Sep 17 00:00:00 2001 From: shibanglin Date: Mon, 13 Feb 2023 13:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9D=E8=B5=96=E7=9F=AD=E4=BF=A1=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maxkey-webs/maxkey-web-maxkey/build.gradle | 42 ++++++++++++++++++---- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/maxkey-webs/maxkey-web-maxkey/build.gradle b/maxkey-webs/maxkey-web-maxkey/build.gradle index 56173a66e..64ce5df24 100644 --- a/maxkey-webs/maxkey-web-maxkey/build.gradle +++ b/maxkey-webs/maxkey-web-maxkey/build.gradle @@ -1,7 +1,38 @@ +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 '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" -//add support for Java -apply plugin: 'java' +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") @@ -12,8 +43,8 @@ dependencies { implementation project(":maxkey-authentications:maxkey-authentication-social") 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-authentications:maxkey-authentication-provider") + implementation project(":maxkey-authentications:maxkey-authentication-sms") implementation project(":maxkey-protocols:maxkey-protocol-authorize") implementation project(":maxkey-protocols:maxkey-protocol-cas") @@ -23,5 +54,4 @@ dependencies { 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") - -} +} \ No newline at end of file