description = 'micro-spring-boot'

dependencies {
  compile 'org.springframework.boot:spring-boot:' + springBootVersion
  compile 'org.springframework.boot:spring-boot-autoconfigure:' + springBootVersion
  compile project(':micro-core')

  compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version: "$jerseyVersion"
  compile(group: 'org.glassfish.jersey.media', name: 'jersey-media-json-jackson', version: "$jerseyVersion") {
    exclude(module: 'jackson-xc')
    exclude(module: 'jackson-core-asl')
    exclude(module: 'jackson-jaxrs')
    exclude(module: 'jackson-mapper-asl')
  }
  compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet', version: "$jerseyVersion"

  compile "org.glassfish.jersey.media:jersey-media-multipart:$jerseyVersion"
  compile "org.glassfish.jersey.ext:jersey-spring4:$jerseyVersion"
  compile "org.glassfish.jersey.ext:jersey-bean-validation:$jerseyVersion"

  compile project(':micro-jackson-configuration')

  testCompile("org.springframework.boot:spring-boot-starter-web:"+ springBootVersion)
  testCompile 'org.springframework.boot:spring-boot-starter-test:' + springBootVersion
  testCompile group: 'org.glassfish.jersey.core', name: 'jersey-client', version: "$jerseyVersion"
  testCompile 'org.apache.tomcat.embed:tomcat-embed-core:' + tomcatVersion

  testCompile project(':micro-cors')
  testCompile project(':micro-swagger')
  testCompile project(':micro-client')
  testCompile project(':micro-events')
  testCompile project(':micro-metrics')
  testCompile project(':micro-guava')

  testCompile "com.oath.cyclops:cyclops-futurestream:$cyclopsVersion"
}

test {
  forkEvery = 1
}

modifyPom {
  project {
    name 'Microserver-spring-boot'
    description 'Opinionated rest microservices with Spring Boot'
    url 'https://github.com/aol/micro-server'
    inceptionYear '2015'

    groupId 'com.oath.microservices'
    artifactId 'micro-spring-boot'
    version "$version"

    scm {
      url 'scm:git@github.com:aol/micro-server.git'
      connection 'scm:git@github.com:aol/micro-server.git'
      developerConnection 'scm:git@github.com:aol/micro-server.git'
    }

    licenses {
      license {
        name 'The Apache Software License, Version 2.0'
        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
        distribution 'repo'
      }
    }

    developers {
      developer {
        id 'johnmcclean-aol'
        name 'John McClean'
        email 'john.mcclean@teamaol.com'
      }
      developer {
        id 'earlzero'
        name 'Nikita Sapozhnikov'
        email 'nikita.sapozhnikov@teamaol.com'
      }
      developer {
        id 'kewangie'
        name 'Ke Wang'
        email 'ke.wang@teamaol.com'
      }

    }
  }
}

extraArchive {
  sources = true
  tests = true
  javadoc = true
}

nexus {
  sign = true
  repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
  snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
}

