build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. buildscript {
  2. repositories {
  3. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
  4. }
  5. }
  6. plugins {
  7. id 'java'
  8. id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
  9. id 'org.springframework.boot' version "${springBootVersion}"
  10. }
  11. apply plugin: 'com.google.cloud.tools.jib'
  12. description = "tiahu-auth"
  13. //docker
  14. jib {
  15. from {
  16. image = "${jibFromImage}"
  17. }
  18. to {
  19. //https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey
  20. image = "${jibToImage}_auth: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.MaxKeyApplication"
  30. jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=443','-Duser.timezone=Asia/Shanghai']
  31. ports = ['443']
  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-social")
  41. implementation project(":maxkey-authentications:maxkey-authentication-captcha")
  42. implementation project(":maxkey-authentications:maxkey-authentication-otp")
  43. implementation project(":maxkey-protocols:maxkey-protocol-authorize")
  44. implementation project(":maxkey-protocols:maxkey-protocol-cas")
  45. implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
  46. implementation project(":maxkey-protocols:maxkey-protocol-formbased")
  47. implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
  48. implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  49. implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  50. implementation project(":maxkey-protocols:maxkey-protocol-jwt")
  51. implementation project(":maxkey-webs:maxkey-web-resources")
  52. }