build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-manage"
  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-manage"
  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-protocols:maxkey-protocol-oauth-2.0")
  36. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  37. compile project(":maxkey-identitys:maxkey-identity-scim")
  38. compile project(":maxkey-identitys:maxkey-identity-kafka")
  39. compile project(":maxkey-identitys:maxkey-identity-rest")
  40. }
  41. /*
  42. eclipse {
  43. wtp {
  44. component {
  45. //define context path, default to project folder name
  46. contextPath = 'maxkey-mgt'
  47. }
  48. }
  49. }*/