build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. buildscript {
  2. repositories {
  3. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
  4. }
  5. }
  6. //docker
  7. plugins {
  8. id 'java'
  9. id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
  10. id 'org.springframework.boot' version "${springBootVersion}"
  11. }
  12. apply plugin: 'com.google.cloud.tools.jib'
  13. description = "maxkey-web-mgt"
  14. jib {
  15. from {
  16. image = "${jibFromImage}"
  17. }
  18. to {
  19. //https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey-mgt
  20. image = "${jibToImage}_abg:v1.0"
  21. tags = ["${project.version}".toString(), 'latest']
  22. allowInsecureRegistries = true
  23. auth {
  24. username = "${jibToAuthUsername}"
  25. password = "${jibToAuthPassword}"
  26. }
  27. }
  28. container {
  29. mainClass = "org.maxkey.MaxKeyMgtApplication"
  30. jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9527','-Duser.timezone=Asia/Shanghai']
  31. ports = ['9527']
  32. }
  33. }
  34. //build.configure { finalizedBy jib }
  35. dependencies {
  36. implementation project(":maxkey-common")
  37. implementation project(":maxkey-core")
  38. implementation project(":maxkey-persistence")
  39. implementation project(":maxkey-authentications:maxkey-authentication-core")
  40. implementation project(":maxkey-authentications:maxkey-authentication-captcha")
  41. implementation project(":maxkey-authentications:maxkey-authentication-otp")
  42. implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  43. implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  44. //identity
  45. implementation project(":maxkey-identitys:maxkey-identity-scim")
  46. implementation project(":maxkey-identitys:maxkey-identity-rest")
  47. implementation project(":maxkey-identitys:maxkey-synchronizers")
  48. implementation project(":maxkey-identitys:maxkey-synchronizers-activedirectory")
  49. implementation project(":maxkey-identitys:maxkey-synchronizers-ldap")
  50. implementation project(":maxkey-identitys:maxkey-synchronizers-workweixin")
  51. implementation project(":maxkey-identitys:maxkey-synchronizers-dingding")
  52. implementation project(":maxkey-webs:maxkey-web-resources")
  53. }