build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. }
  5. dependencies {
  6. }
  7. }
  8. plugins {
  9. id 'com.google.cloud.tools.jib' version '2.6.0'
  10. id 'org.springframework.boot' version '2.3.4.RELEASE'
  11. }
  12. description = "maxkey-web-maxkey"
  13. // Apply the java plugin to add support for Java
  14. apply plugin: 'java'
  15. //apply plugin: 'war'
  16. //apply plugin: 'eclipse-wtp'
  17. //apply plugin: 'com.bmuschko.tomcat-base'
  18. //apply plugin: 'com.bmuschko.tomcat'
  19. jib {
  20. from {
  21. image = 'adoptopenjdk:11-jre-openj9'
  22. }
  23. to {
  24. image = "maxkey/maxkey-web-maxkey"
  25. tags = ["${project.version}".toString(), 'latest']
  26. }
  27. container {
  28. jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=80']
  29. ports = ['80']
  30. }
  31. }
  32. dependencies {
  33. compile project(":maxkey-core")
  34. compile project(":maxkey-persistence")
  35. compile project(":maxkey-authentications")
  36. compile project(":maxkey-protocols:maxkey-protocol-authorize")
  37. compile project(":maxkey-protocols:maxkey-protocol-cas")
  38. compile project(":maxkey-protocols:maxkey-protocol-desktop")
  39. compile project(":maxkey-protocols:maxkey-protocol-extendapi")
  40. compile project(":maxkey-protocols:maxkey-protocol-formbased")
  41. compile project(":maxkey-protocols:maxkey-protocol-tokenbased")
  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-kafka")
  45. }
  46. /*
  47. //For Eclipse IDE only
  48. eclipse {
  49. wtp {
  50. component {
  51. //define context path, default to project folder name
  52. contextPath = '/maxkey'
  53. }
  54. }
  55. }
  56. tomcat {
  57. httpPort = 80
  58. contextPath = '/maxkey'
  59. }*/