123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- apply plugin: 'java'
- apply plugin: 'eclipse'
- apply plugin: 'application'
- // compiler options
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- mainClassName = 'app.UndertowMain'
- repositories {
- mavenCentral()
-
- //snapshot repository - not actually needed to run this example
- maven {
- url 'http://oss.sonatype.org/content/repositories/snapshots'
- }
- }
- dependencies {
- // Framework
- compile 'net.javapla.jawn:jawn-server-undertow:0.8.7-SNAPSHOT'
- //compile project(':jawn-server'), project(':jawn-server-undertow'), project(':jawn-server-jetty')
-
- // Database
- compile 'mysql:mysql-connector-java:5.1.35'
-
- //Logging
- runtime group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.3' exclude group: 'org.slf4j'
- }
- /* ****************** */
- /* Application */
- /* ****************** */
- run {
- if(project.hasProperty('args')){
- args project.args.split(',')
- }
- }
- applicationDistribution.from("webapp") {
- into "webapp"
- }
- /* ****************** */
- /* Eclipse */
- /* ****************** */
- eclipse {
- classpath {
- // we need the output dir to be the same as the one gradle uses when running Jetty
- // or else the dynamic loading does not apply
- defaultOutputDir = file('build/classes/main')
- }
- }
|