build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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-manage"
  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-mgt-boot'
  22. version = "${project.version}-ga"
  23. mainClass = 'org.maxkey.MaxKeyMgtApplication'
  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-mgt-docker"
  46. tags = ["${project.version}".toString(), 'latest']
  47. }
  48. container {
  49. jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9521']
  50. ports = ['9521']
  51. }
  52. }
  53. */
  54. dependencies {
  55. compile project(":maxkey-core")
  56. compile project(":maxkey-authentications:maxkey-authentication-captcha")
  57. compile project(":maxkey-persistence")
  58. compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  59. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  60. compile project(":maxkey-identitys:maxkey-identity-scim")
  61. compile project(":maxkey-identitys:maxkey-identity-kafka")
  62. compile project(":maxkey-identitys:maxkey-identity-rest")
  63. }
  64. /*
  65. eclipse {
  66. wtp {
  67. component {
  68. //define context path, default to project folder name
  69. contextPath = 'maxkey-mgt'
  70. }
  71. }
  72. }*/