build_jar.gradle 1.8 KB
Newer Older
M
MaxKey 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
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
M
MaxKey 已提交
28
	archiveBaseName = 'maxkey-openapi-boot'
M
MaxKey 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
    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")	
}