build_jar.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 'java'
  13. id "io.spring.dependency-management" version "1.0.11.RELEASE"
  14. id 'org.springframework.boot' version "${springBootVersion}"
  15. }
  16. apply plugin: 'io.spring.dependency-management'
  17. description = "maxkey-web-maxkey"
  18. bootJar {
  19. dependsOn jar
  20. baseName = 'maxkey-boot'
  21. version = "${project.version}-ga"
  22. mainClass = 'org.maxkey.MaxKeyApplication'
  23. manifest {
  24. attributes(
  25. "Implementation-Title": project.name,
  26. "Implementation-Vendor": project.vendor,
  27. "Created-By": project.author,
  28. "Implementation-Date": java.time.ZonedDateTime.now(),
  29. "Implementation-Version": project.version
  30. )
  31. }
  32. }
  33. dependencies {
  34. compile project(":maxkey-common")
  35. compile project(":maxkey-core")
  36. compile project(":maxkey-persistence")
  37. compile project(":maxkey-authentications:maxkey-authentication-core")
  38. compile project(":maxkey-authentications:maxkey-authentication-social")
  39. compile project(":maxkey-authentications:maxkey-authentication-captcha")
  40. compile project(":maxkey-authentications:maxkey-authentication-otp")
  41. compile project(":maxkey-protocols:maxkey-protocol-authorize")
  42. compile project(":maxkey-protocols:maxkey-protocol-cas")
  43. compile project(":maxkey-protocols:maxkey-protocol-desktop")
  44. compile project(":maxkey-protocols:maxkey-protocol-extendapi")
  45. compile project(":maxkey-protocols:maxkey-protocol-formbased")
  46. compile project(":maxkey-protocols:maxkey-protocol-tokenbased")
  47. compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  48. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  49. compile project(":maxkey-protocols:maxkey-protocol-jwt")
  50. }