build.gradle 1.6 KB

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