build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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-persistence")
  57. compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  58. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  59. compile project(":maxkey-identitys:maxkey-identity-scim")
  60. compile project(":maxkey-identitys:maxkey-identity-kafka")
  61. compile project(":maxkey-identitys:maxkey-identity-rest")
  62. }
  63. /*
  64. eclipse {
  65. wtp {
  66. component {
  67. //define context path, default to project folder name
  68. contextPath = 'maxkey-mgt'
  69. }
  70. }
  71. }*/