build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/', include: '*/*.jar')
  23. compile project(":maxkey-core")
  24. compile project(":maxkey-dao")
  25. compile project(":maxkey-jose-jwt")
  26. compile project(":maxkey-client-sdk")
  27. compile project(":maxkey-authentications")
  28. compile project(":maxkey-protocols:maxkey-protocol-authorize")
  29. compile project(":maxkey-protocols:maxkey-protocol-cas")
  30. compile project(":maxkey-protocols:maxkey-protocol-desktop")
  31. compile project(":maxkey-protocols:maxkey-protocol-extendapi")
  32. compile project(":maxkey-protocols:maxkey-protocol-formbased")
  33. compile project(":maxkey-protocols:maxkey-protocol-ltpa")
  34. compile project(":maxkey-protocols:maxkey-protocol-tokenbased")
  35. compile project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  36. compile project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  37. }
  38. //For Eclipse IDE only
  39. eclipse {
  40. wtp {
  41. component {
  42. //define context path, default to project folder name
  43. contextPath = '/maxkey'
  44. }
  45. }
  46. }
  47. tomcat {
  48. httpPort = 80
  49. contextPath = '/maxkey'
  50. }