blob: 3d1389cc9d51733c4a60ee4f9b72c466f5ab6fe7 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'scala'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'org.scoverage'
ext.dockerImageName = 'scala'
apply from: '../../gradle/docker.gradle'
project.archivesBaseName = "openwhisk-common"
repositories {
mavenCentral()
}
dependencies {
compile "org.scala-lang:scala-library:${gradle.scala.version}"
compile ('com.github.pureconfig:pureconfig_2.12:0.9.0') {
exclude group: 'org.scala-lang', module: 'scala-compiler'
exclude group: 'org.scala-lang', module: 'scala-reflect'
}
compile 'io.spray:spray-json_2.12:1.3.5'
compile 'com.lihaoyi:fastparse_2.12:2.1.3'
compile "com.typesafe.akka:akka-actor_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-stream_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-slf4j_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-http-core_2.12:${gradle.akka_http.version}"
compile "com.typesafe.akka:akka-http-spray-json_2.12:${gradle.akka_http.version}"
compile 'com.lightbend.akka:akka-stream-alpakka-file_2.12:0.15'
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'org.slf4j:jcl-over-slf4j:1.7.25'
compile 'org.slf4j:log4j-over-slf4j:1.7.25'
compile 'commons-codec:commons-codec:1.9'
compile 'commons-io:commons-io:2.6'
compile 'commons-collections:commons-collections:3.2.2'
compile 'org.apache.kafka:kafka-clients:2.0.0'
compile ('org.apache.httpcomponents:httpclient:4.5.5')
compile ('com.fasterxml.uuid:java-uuid-generator:3.1.3')
compile 'com.github.ben-manes.caffeine:caffeine:2.6.2'
compile 'com.google.code.findbugs:jsr305:3.0.2'
compile "io.fabric8:kubernetes-client:${gradle.kube_client.version}"
compile ('io.kamon:kamon-core_2.12:1.1.3') {
exclude group: 'com.lihaoyi'
}
compile 'io.kamon:kamon-statsd_2.12:1.0.0'
compile ('io.kamon:kamon-system-metrics_2.12:1.0.0') {
exclude group: 'io.kamon', module: 'sigar-loader'
}
compile ('io.kamon:kamon-prometheus_2.12:1.1.1')
compile ('io.kamon:kamon-datadog_2.12:1.0.0')
//for mesos
compile 'com.adobe.api.platform.runtime:mesos-actor:0.0.17'
//tracing support
compile 'io.opentracing:opentracing-api:0.31.0'
compile 'io.opentracing:opentracing-util:0.31.0'
compile ('io.opentracing.brave:brave-opentracing:0.31.0'){
exclude group: 'io.zipkin.brave', module:'brave-tests'
}
compile 'io.zipkin.reporter2:zipkin-sender-okhttp3:2.6.1'
compile 'io.zipkin.reporter2:zipkin-reporter:2.6.1'
compile 'io.reactivex:rxscala_2.12:0.26.5'
compile 'io.reactivex:rxjava-reactive-streams:1.2.1'
compile ('com.microsoft.azure:azure-cosmosdb:2.6.2')
compile ('com.lightbend.akka:akka-stream-alpakka-s3_2.12:1.0.1') {
exclude group: 'org.apache.httpcomponents' //Not used as alpakka uses akka-http
exclude group: 'com.fasterxml.jackson.core'
exclude group: 'com.fasterxml.jackson.dataformat'
}
compile ('com.amazonaws:aws-java-sdk-cloudfront:1.11.517')
//Following constraints ensure that akka related transitive dependencies match the
//current version used
constraints {
//akka cluster dependencies being pulled by mesos-actor
compile "com.typesafe.akka:akka-remote_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-cluster_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-cluster-metrics_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-cluster-tools_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-distributed-data_2.12:${gradle.akka.version}"
compile "com.typesafe.akka:akka-http-xml_2.12:${gradle.akka_http.version}"
}
}
configurations {
compile {
exclude group: 'commons-logging'
exclude group: 'log4j'
}
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.additionalParameters = gradle.scala.compileFlags
}