2016-12-01 06:11:08 +03:00
|
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
|
2018-03-18 19:32:13 +03:00
|
|
|
val iotHubKafkaConnectVersion = "0.7.0"
|
2016-12-16 04:14:08 +03:00
|
|
|
|
2016-12-01 06:11:08 +03:00
|
|
|
name := "kafka-connect-iothub"
|
|
|
|
organization := "com.microsoft.azure.iot"
|
2016-12-16 04:14:08 +03:00
|
|
|
version := iotHubKafkaConnectVersion
|
2016-12-01 06:11:08 +03:00
|
|
|
|
|
|
|
scalaVersion := "2.11.8"
|
|
|
|
|
|
|
|
scalacOptions ++= Seq("-deprecation", "-explaintypes", "-unchecked", "-feature")
|
|
|
|
|
|
|
|
libraryDependencies ++= {
|
|
|
|
|
2017-06-21 17:20:46 +03:00
|
|
|
val kafkaVersion = "0.10.2.1"
|
2018-03-16 23:14:44 +03:00
|
|
|
val azureEventHubSDKVersion = "1.0.0"
|
2016-12-01 06:11:08 +03:00
|
|
|
val scalaLoggingVersion = "3.5.0"
|
|
|
|
val logbackClassicVersion = "1.1.7"
|
|
|
|
val scalaTestVersion = "3.0.0"
|
|
|
|
val configVersion = "1.3.1"
|
|
|
|
val json4sVersion = "3.5.0"
|
2017-06-21 17:20:46 +03:00
|
|
|
val iotHubServiceClientVersion = "1.4.22"
|
2016-12-01 06:11:08 +03:00
|
|
|
|
|
|
|
Seq(
|
2016-12-07 04:15:25 +03:00
|
|
|
"org.apache.kafka" % "connect-api" % kafkaVersion % "provided",
|
|
|
|
"org.apache.kafka" % "connect-json" % kafkaVersion % "provided",
|
2016-12-21 23:58:29 +03:00
|
|
|
"ch.qos.logback" % "logback-classic" % logbackClassicVersion % "provided",
|
2016-12-01 06:11:08 +03:00
|
|
|
"com.microsoft.azure" % "azure-eventhubs" % azureEventHubSDKVersion,
|
|
|
|
"org.json4s" %% "json4s-jackson" % json4sVersion,
|
|
|
|
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
|
2017-01-31 01:10:40 +03:00
|
|
|
"com.microsoft.azure.sdk.iot" % "iot-service-client" % iotHubServiceClientVersion,
|
2016-12-01 06:11:08 +03:00
|
|
|
|
|
|
|
// Test dependencies
|
|
|
|
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
|
|
|
|
"com.typesafe" % "config" % configVersion % "test"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2016-12-16 04:14:08 +03:00
|
|
|
assemblyJarName in assembly := s"kafka-connect-iothub-assembly_2.11-$iotHubKafkaConnectVersion.jar"
|
2016-12-15 06:04:17 +03:00
|
|
|
|
2016-12-01 06:11:08 +03:00
|
|
|
publishArtifact in Test := true
|
|
|
|
publishArtifact in(Compile, packageDoc) := true
|
|
|
|
publishArtifact in(Compile, packageSrc) := true
|
|
|
|
publishArtifact in(Compile, packageBin) := true
|
|
|
|
|
|
|
|
fork in run := true
|
|
|
|
|
|
|
|
licenses += ("MIT", url("https://github.com/Azure/toketi-kafka-connect-iothub/blob/master/LICENSE"))
|
|
|
|
publishMavenStyle := true
|
|
|
|
|
|
|
|
// Bintray: Organization > Repository > Package > Version
|
|
|
|
bintrayOrganization := Some("microsoftazuretoketi")
|
|
|
|
bintrayRepository := "toketi-repo"
|
|
|
|
bintrayPackage := "kafka-connect-iothub"
|
|
|
|
bintrayReleaseOnPublish in ThisBuild := true
|
|
|
|
|
|
|
|
// Required in Sonatype
|
|
|
|
pomExtra :=
|
|
|
|
<url>https://github.com/Azure/toketi-kafka-connect-iothub</url>
|
|
|
|
<scm><url>https://github.com/Azure/toketi-kafka-connect-iothub</url></scm>
|
|
|
|
<developers><developer><id>microsoft</id><name>Microsoft</name></developer></developers>
|