Newer
Older
jetty / build.gradle
plugins {
	id 'war'
	id 'application'
}

repositories {
	mavenCentral()
}

dependencies {
	providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
	
	// jetty 10 supports servlet 4
	def jettyVer = "10.+"
	
	implementation group: 'org.eclipse.jetty', name: 'jetty-webapp', version: jettyVer
	implementation group: 'org.eclipse.jetty', name: 'jetty-annotations', version: jettyVer
	implementation group: 'org.eclipse.jetty', name: 'apache-jsp', version: jettyVer
	implementation group: 'org.eclipse.jetty', name: 'jetty-slf4j-impl', version: jettyVer
	implementation group: 'com.h2database', name: 'h2', version: '1.4.200'
	implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.5'
}

task deployWar(type: Copy) {
    into "${projectDir}/deploy"
    with war
}

clean {
	delete "${projectDir}/deploy"
}

war.dependsOn deployWar

mainClassName = "Start"