description = 'micro-client'

dependencies {
  compile group: 'org.glassfish.jersey.core', name: 'jersey-client', version: "$jerseyVersion"
  compile group: 'org.apache.httpcomponents', name: 'httpclient', version: apacheHttpClientVersion
  compile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: apacheHttpClientVersionAsync
  compile project(':micro-core')
  compile project(':micro-jackson-configuration')
  testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: hamcrestVersion
  testCompile group: 'com.google.guava', name: 'guava', version: guavaVersion
  testCompile project(':micro-grizzly')
  testCompile project(':micro-jersey')
  testCompile project(':micro-events')
  testCompile "com.oath.cyclops:cyclops-futurestream:$cyclopsVersion"
}

modifyPom {
  project {
    name 'Microserver client'
    description 'Opinionated rest microservices'
    url 'https://github.com/aol/micro-server'
    inceptionYear '2015'

    groupId 'com.oath.microservices'
    artifactId 'micro-client'
    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'
      }
    }

  }
}

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'
}

