apply plugin: 'application'
apply plugin: 'java'

sourceCompatibility = 1.8
targetCompatibility = 1.8

mainClassName = 'com.github.diegopacheco.sandbox.java.Main'

repositories {
    mavenCentral()
    maven { url 'https://oss.sonatype.org/content/groups/public/' }
}

dependencies {
  compile 'org.slf4j:slf4j-api:1.7.25'
  compile 'org.slf4j:slf4j-jdk14:1.7.25'
  
  compile  group: 'org.eclipse.jetty', name: 'jetty-server',  version: '9.4.11.v20180605'
  compile  group: 'org.eclipse.jetty', name: 'jetty-webapp',  version: '9.4.11.v20180605'
  compile  group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.4.11.v20180605'
  compile  group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1'
  
  compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet-core', version: '2.27'
  compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-jetty-http', version: '2.27'
  compile group: 'org.glassfish.jersey.inject'    , name: 'jersey-hk2', version: '2.27'
      
  testCompile([
      'junit:junit:4.12'
  ])		
}

run {    
  systemProperties System.getProperties()
}



