build_jar.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. buildscript {
  2. repositories {
  3. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
  4. }
  5. dependencies {
  6. //springboot jar
  7. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  8. }
  9. }
  10. plugins {
  11. id 'org.springframework.boot' version "${springBootVersion}"
  12. id "io.spring.dependency-management" version "1.0.11.RELEASE"
  13. }
  14. description = "maxkey-web-mgt"
  15. //springboot jar
  16. apply plugin: 'io.spring.dependency-management'
  17. //add support for Java
  18. apply plugin: 'java'
  19. bootJar {
  20. dependsOn jar
  21. archiveBaseName = 'maxkey-mgt-boot'
  22. version = "${project.version}-ga"
  23. mainClass = 'org.dromara.maxkey.MaxKeyMgtApplication'
  24. manifest {
  25. attributes(
  26. "Implementation-Title": project.name,
  27. "Implementation-Vendor": project.vendor,
  28. "Created-By": project.author,
  29. "Implementation-Date": java.time.ZonedDateTime.now(),
  30. "Implementation-Version": project.version
  31. )
  32. }
  33. }
  34. dependencies {
  35. implementation project(":maxkey-common")
  36. implementation project(":maxkey-core")
  37. implementation project(":maxkey-persistence")
  38. implementation project(":maxkey-authentications:maxkey-authentication-core")
  39. implementation project(":maxkey-authentications:maxkey-authentication-captcha")
  40. implementation project(":maxkey-authentications:maxkey-authentication-ip2location")
  41. implementation project(":maxkey-authentications:maxkey-authentication-otp")
  42. implementation project(":maxkey-authentications:maxkey-authentication-provider")
  43. implementation project(":maxkey-authentications:maxkey-authentication-sms")
  44. implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  45. implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  46. //synchronizers
  47. implementation project(":maxkey-synchronizers:maxkey-synchronizer")
  48. implementation project(":maxkey-synchronizers:maxkey-synchronizer-activedirectory")
  49. implementation project(":maxkey-synchronizers:maxkey-synchronizer-feishu")
  50. implementation project(":maxkey-synchronizers:maxkey-synchronizer-jdbc")
  51. implementation project(":maxkey-synchronizers:maxkey-synchronizer-ldap")
  52. implementation project(":maxkey-synchronizers:maxkey-synchronizer-workweixin")
  53. implementation project(":maxkey-synchronizers:maxkey-synchronizer-dingtalk")
  54. }