build_jar.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  5. }
  6. dependencies {
  7. //springboot jar
  8. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  9. }
  10. }
  11. plugins {
  12. id 'org.springframework.boot' version "${springBootVersion}"
  13. id "io.spring.dependency-management" version "1.0.11.RELEASE"
  14. }
  15. description = "maxkey-web-manage"
  16. //springboot jar
  17. apply plugin: 'io.spring.dependency-management'
  18. //add support for Java
  19. apply plugin: 'java'
  20. bootJar {
  21. dependsOn jar
  22. baseName = 'maxkey-mgt-boot'
  23. version = "${project.version}-ga"
  24. mainClass = 'org.maxkey.MaxKeyMgtApplication'
  25. manifest {
  26. attributes(
  27. "Implementation-Title": project.name,
  28. "Implementation-Vendor": project.vendor,
  29. "Created-By": project.author,
  30. "Implementation-Date": java.time.ZonedDateTime.now(),
  31. "Implementation-Version": project.version
  32. )
  33. }
  34. }
  35. dependencies {
  36. compile project(":maxkey-common")
  37. compile project(":maxkey-core")
  38. compile project(":maxkey-persistence")
  39. compile project(":maxkey-authentications:maxkey-authentication-core")
  40. compile project(":maxkey-authentications:maxkey-authentication-captcha")
  41. compile project(":maxkey-authentications:maxkey-authentication-otp")
  42. compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  43. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  44. compile project(":maxkey-identitys:maxkey-identity-scim")
  45. compile project(":maxkey-identitys:maxkey-identity-rest")
  46. }