Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- apply plugin: 'idea'
- apply plugin: 'war'
- apply plugin: 'jetty'
- version = '1.0'
- repositories {
- mavenCentral()
- }
- def springVersion = '4.0.4.RELEASE'
- dependencies {
- compile 'javax.servlet:servlet-api:2.5'
- compile group: 'org.springframework', name: 'spring-web', version:springVersion
- compile group: 'org.springframework', name: 'spring-core', version:springVersion
- compile group: 'org.springframework', name: 'spring-webmvc', version:springVersion
- testCompile group: 'junit', name: 'junit', version: '4.11'
- }
- jettyRunWar.contextPath = ''
- // need to set the stopPort and stopKey so we are able to stop jetty!
- jettyRunWar.stopPort = 8090
- jettyRunWar.stopKey = 'stopKey'
- jettyStop.stopPort = 8090
- jettyStop.stopKey = 'stopKey'
- jettyRun.stopPort = 8090
- jettyRun.stopKey = 'stopKey'
- jar {
- manifest {
- attributes 'Main-Class': 'hello.HelloWorld'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement