build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. description = "maxkey-web-maxkey"
  2. // Apply the java plugin to add support for Java
  3. apply plugin: 'java'
  4. apply plugin: 'war'
  5. apply plugin: 'eclipse-wtp'
  6. apply plugin: 'com.bmuschko.tomcat-base'
  7. apply plugin: 'com.bmuschko.tomcat'
  8. buildscript {
  9. repositories {
  10. jcenter()
  11. }
  12. dependencies {
  13. classpath "com.bmuschko:gradle-tomcat-plugin:2.2.3"
  14. }
  15. }
  16. dependencies {
  17. def tomcatVersion = '7.0.59'
  18. tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
  19. "org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
  20. "org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"
  21. //local jars
  22. compile fileTree(dir: '../maxkey-lib/spring/', include: '*.jar')
  23. compile fileTree(dir: '../maxkey-lib/apache/', include: '*.jar')
  24. compile fileTree(dir: '../maxkey-lib/db/', include: '*.jar')
  25. compile fileTree(dir: '../maxkey-lib/common/', include: '*.jar')
  26. compile fileTree(dir: '../maxkey-lib/opensaml/', include: '*.jar')
  27. compile fileTree(dir: '../maxkey-lib/xml/', include: '*.jar')
  28. compile fileTree(dir: '../maxkey-lib/json/', include: '*.jar')
  29. compile fileTree(dir: '../maxkey-lib/log/', include: '*.jar')
  30. compile fileTree(dir: '../maxkey-lib/java/', include: '*.jar')
  31. compile fileTree(dir: '../maxkey-lib/other/', include: '*.jar')
  32. compile project(":maxkey-core")
  33. compile project(":maxkey-dao")
  34. compile project(":maxkey-jose-jwt")
  35. compile project(":maxkey-client-sdk")
  36. compile project(":maxkey-authentications")
  37. compile project(":maxkey-protocols:maxkey-protocol-authorize")
  38. compile project(":maxkey-protocols:maxkey-protocol-cas")
  39. compile project(":maxkey-protocols:maxkey-protocol-desktop")
  40. compile project(":maxkey-protocols:maxkey-protocol-extendapi")
  41. compile project(":maxkey-protocols:maxkey-protocol-formbased")
  42. compile project(":maxkey-protocols:maxkey-protocol-ltpa")
  43. compile project(":maxkey-protocols:maxkey-protocol-tokenbased")
  44. compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  45. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  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. }