build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. }
  5. dependencies {
  6. //springboot jar
  7. //classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  8. }
  9. }
  10. description = "maxkey-web-maxkey"
  11. // Apply the java plugin to add support for Java
  12. apply plugin: 'java'
  13. //springboot jar
  14. /*
  15. apply plugin: 'io.spring.dependency-management'
  16. plugins {
  17. id 'org.springframework.boot' version "${springBootVersion}"
  18. }
  19. bootJar {
  20. dependsOn jar
  21. baseName = 'maxkey-boot'
  22. version = "${project.version}-ga"
  23. mainClass = 'org.maxkey.MaxKeyApplication'
  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. */
  35. /*
  36. plugins {
  37. id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
  38. id 'org.springframework.boot' version "${springBootVersion}"
  39. }
  40. jib {
  41. from {
  42. image = 'adoptopenjdk:11-jre-openj9'
  43. }
  44. to {
  45. image = "maxkey/maxkey-docker"
  46. tags = ["${project.version}".toString(), 'latest']
  47. }
  48. container {
  49. jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=443']
  50. ports = ['443']
  51. }
  52. }
  53. */
  54. dependencies {
  55. compile project(":maxkey-core")
  56. compile project(":maxkey-persistence")
  57. compile project(":maxkey-authentications:maxkey-authentication-core")
  58. compile project(":maxkey-authentications:maxkey-authentication-social")
  59. compile project(":maxkey-authentications:maxkey-authentication-captcha")
  60. compile project(":maxkey-protocols:maxkey-protocol-authorize")
  61. compile project(":maxkey-protocols:maxkey-protocol-cas")
  62. compile project(":maxkey-protocols:maxkey-protocol-desktop")
  63. compile project(":maxkey-protocols:maxkey-protocol-extendapi")
  64. compile project(":maxkey-protocols:maxkey-protocol-formbased")
  65. compile project(":maxkey-protocols:maxkey-protocol-tokenbased")
  66. compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  67. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  68. compile project(":maxkey-protocols:maxkey-protocol-jwt")
  69. compile project(":maxkey-identitys:maxkey-identity-kafka")
  70. }
  71. /*
  72. //For Eclipse IDE only
  73. eclipse {
  74. wtp {
  75. component {
  76. //define context path, default to project folder name
  77. contextPath = '/maxkey'
  78. }
  79. }
  80. }
  81. tomcat {
  82. httpPort = 80
  83. contextPath = '/maxkey'
  84. }*/