Skip to content

Commit

Permalink
#22 examples for sdk s3
Browse files Browse the repository at this point in the history
 + addDependencyTreePlugin added
  • Loading branch information
dk1844 committed Nov 19, 2021
1 parent d75e4e2 commit a4756f3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ examples/data/output
/examples-s3-sdk-extension/data/output_s3/

pom.xml.bkp
.bsp
/data/
/.bsp/sbt.json
9 changes: 9 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ lazy val examples = (project in file("examples"))
mergeStrategy
).dependsOn(core)

lazy val s3sdkExamples = (project in file("examples-s3-sdk-extension"))
.settings(
name := "examples-s3-sdk-extension",
libraryDependencies ++= (rootDependencies ++ s3sdkExtensionDependencies),
scalacOptions += "-target:jvm-1.8", // AWS S3 SDK requires 1.8 level for static methods in interfaces
assembly / test := {}, // skipping tests for s3sdk, because one needs specific setup to run it (intent: run manually)
mergeStrategy
)
.dependsOn(s3sdkExtension, examples)

val mergeStrategy: Def.SettingsDefinition = assembly / assemblyMergeStrategy := {
case PathList("META-INF", _) => MergeStrategy.discard
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<scalatest.version>3.2.9</scalatest.version>
<slf4j.version>1.7.25</slf4j.version>
<specs.version>2.5</specs.version>
<aws.java.sdk.version>2.13.65</aws.java.sdk.version>
<aws.java.sdk.version>2.17.85</aws.java.sdk.version>
<mockito.scala.version>1.15.0</mockito.scala.version>
<commons.version>0.0.27</commons.version>
<typesafe.config.version>1.4.1</typesafe.config.version>
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object Dependencies {
val mockitoScala = "1.15.0"
val scalatest = "3.2.9"
val specs2 = "2.5"
val aws = "2.13.65"
val aws = "2.17.85"
}

// TODO alternate for multiversion build (hint: getScalaDependency(scalaVersion.value) in cobrix ); see Issue #121
Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0")

addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")

addDependencyTreePlugin

0 comments on commit a4756f3

Please sign in to comment.