Files
MaxKey/maxkey-web-maxkey/build.gradle

104 lines
2.5 KiB
Groovy
Raw Normal View History

2020-11-03 19:25:46 +08:00
buildscript {
repositories {
jcenter()
}
dependencies {
2020-12-22 07:46:56 +08:00
//springboot jar
//classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
2020-11-03 19:25:46 +08:00
}
}
2019-04-29 23:53:10 +08:00
description = "maxkey-web-maxkey"
// Apply the java plugin to add support for Java
apply plugin: 'java'
2020-12-22 07:46:56 +08:00
//springboot jar
/*
apply plugin: 'io.spring.dependency-management'
plugins {
id 'org.springframework.boot' version "${springBootVersion}"
}
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
)
}
}
*/
2019-04-29 23:53:10 +08:00
2020-11-14 20:38:06 +08:00
/*
plugins {
2020-12-22 07:46:56 +08:00
id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
id 'org.springframework.boot' version "${springBootVersion}"
2020-11-14 20:38:06 +08:00
}
2020-11-03 19:25:46 +08:00
jib {
from {
image = 'adoptopenjdk:11-jre-openj9'
}
to {
2020-12-22 07:46:56 +08:00
image = "maxkey/maxkey-docker"
2020-11-03 19:25:46 +08:00
tags = ["${project.version}".toString(), 'latest']
}
container {
2020-12-22 07:46:56 +08:00
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=443']
ports = ['443']
2020-11-03 19:25:46 +08:00
}
2019-04-29 23:53:10 +08:00
}
2020-11-14 20:38:06 +08:00
*/
2020-11-03 19:25:46 +08:00
dependencies {
2021-02-15 09:57:52 +08:00
compile project(":maxkey-common")
2019-04-29 23:53:10 +08:00
compile project(":maxkey-core")
compile project(":maxkey-persistence")
2019-04-29 23:53:10 +08:00
2021-02-08 21:11:46 +08:00
compile project(":maxkey-authentications:maxkey-authentication-core")
compile project(":maxkey-authentications:maxkey-authentication-social")
compile project(":maxkey-authentications:maxkey-authentication-captcha")
2021-02-15 09:57:52 +08:00
compile project(":maxkey-authentications:maxkey-authentication-otp")
2021-02-08 21:11:46 +08:00
2019-04-29 23:53:10 +08:00
compile project(":maxkey-protocols:maxkey-protocol-authorize")
compile project(":maxkey-protocols:maxkey-protocol-cas")
compile project(":maxkey-protocols:maxkey-protocol-desktop")
compile project(":maxkey-protocols:maxkey-protocol-extendapi")
compile project(":maxkey-protocols:maxkey-protocol-formbased")
compile project(":maxkey-protocols:maxkey-protocol-tokenbased")
compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
2020-11-22 23:19:51 +08:00
compile project(":maxkey-protocols:maxkey-protocol-jwt")
2020-06-30 16:59:32 +08:00
2019-04-29 23:53:10 +08:00
}
2020-07-08 08:26:18 +08:00
/*
2019-04-29 23:53:10 +08:00
//For Eclipse IDE only
eclipse {
wtp {
component {
//define context path, default to project folder name
contextPath = '/maxkey'
}
}
}
tomcat {
httpPort = 80
contextPath = '/maxkey'
2020-07-08 08:26:18 +08:00
}*/