Advertisement
Guest User

Untitled

a guest
Jun 10th, 2014
1,308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.91 KB | None | 0 0
  1. apply plugin: 'java'
  2. apply plugin: 'idea'
  3. apply plugin: 'war'
  4. apply plugin: 'jetty'
  5.  
  6. version = '1.0'
  7.  
  8. repositories {
  9.     mavenCentral()
  10. }
  11.  
  12. def springVersion = '4.0.4.RELEASE'
  13.  
  14. dependencies {
  15.   compile 'javax.servlet:servlet-api:2.5'
  16.   compile group: 'org.springframework', name: 'spring-web', version:springVersion
  17.   compile group: 'org.springframework', name: 'spring-core', version:springVersion
  18.   compile group: 'org.springframework', name: 'spring-webmvc', version:springVersion
  19.   testCompile group: 'junit', name: 'junit', version: '4.11'
  20. }
  21.  
  22. jettyRunWar.contextPath = ''
  23.  
  24. // need to set the stopPort and stopKey so we are able to stop jetty!
  25. jettyRunWar.stopPort = 8090
  26. jettyRunWar.stopKey = 'stopKey'
  27. jettyStop.stopPort = 8090
  28. jettyStop.stopKey = 'stopKey'
  29. jettyRun.stopPort = 8090
  30. jettyRun.stopKey = 'stopKey'
  31.  
  32.  
  33. jar {
  34.   manifest {
  35.     attributes 'Main-Class': 'hello.HelloWorld'
  36.   }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement