Skip to content

Commit

Permalink
Fix build to make app compile
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed May 13, 2024
1 parent b170bf1 commit ea5dcc1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 13 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ lazy val root = project in file(".") enablePlugins(PlayJava) configs(ITest) sett
lazy val ITest = config("it") extend(Test)

//scalaVersion := "2.11.8"
scalaVersion := "2.13.13"
scalaVersion := "2.13.14"
//dependencyOverrides += "com.typesafe.play" % "scalaVersion" % "2.13.13"
//crossScalaVersions := Seq("2.13.13")
//scalacOptions ++= List("-encoding", "utf8", "-deprecation", "-feature", "-unchecked")
Expand Down Expand Up @@ -111,30 +111,32 @@ libraryDependencies ++= Seq(
// "com.google.inject" % "guice" % "4.2.3",
"com.amazonaws" % "aws-java-sdk" % "1.11.46",
"commons-io" % "commons-io" % "2.4",
"com.fasterxml.jackson.core" % "jackson-core" % "2.13.5",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.5",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.5",
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-csv" % "2.13.5",
//"com.fasterxml.jackson.core" % "jackson-core" % "2.13.5",
//"com.fasterxml.jackson.core" % "jackson-databind" % "2.13.5",
//"com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.5",
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-csv" % "2.14.3",
// "com.typesafe.akka" % "akka-testkit_2.11" % "2.4.17" % "test",
// "com.typesafe.akka" % "akka-testkit_2.13" % "2.6.21" % "test",
javaWs,
// cache,
// "net.sf.ehcache" % "ehcache" % "2.10.9.2",
"com.typesafe.play" %% "play-cache" % "2.8.16",
//"com.typesafe.play" %% "play-cache" % "2.8.16",
filters,
"org.mockito" % "mockito-core" % "2.8.9",
"com.couchbase.client" % "java-client" % "3.3.1",
"org.mindrot" % "jbcrypt" % "0.3m",
"com.typesafe.play" % "play-mailer_2.13" % "7.0.2",
//"com.typesafe.play" % "play-mailer_2.13" % "7.0.2",
"com.typesafe.play" %% "play-mailer" % "9.0.0",
"com.typesafe.play" %% "play-mailer-guice" % "9.0.0",
"io.vavr" % "vavr" % "0.9.0",
"io.vavr" % "vavr-jackson" % "0.9.0",
"io.vavr" % "vavr-match" % "0.9.0",
"com.google.code.gson" % "gson" % "2.8.1" % "it",
"junit" % "junit" % "4.12" % "it",
// "com.typesafe.play" % "play-test_2.13" % "2.5.14" % "it",
"com.typesafe.play" % "play_2.13" % "2.8.16" % "it",
//"com.typesafe.play" % "play_2.13" % "2.8.16" % "it",
"io.reactivex" % "rxjava" % "1.3.0" % "it",
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-csv" % "2.9.0",
//"com.fasterxml.jackson.dataformat" % "jackson-dataformat-csv" % "2.9.0",
"io.vavr" % "vavr-match" % "0.9.0",
"org.pac4j" % "play-pac4j" % playPac4jVersion,
"org.pac4j" % "pac4j-oidc" % pac4jVersion exclude("commons-io" , "commons-io"),
Expand Down Expand Up @@ -181,12 +183,12 @@ Test / javaOptions ++= Seq(
//libraryDependencies += "org.playframework" %% "play-cache" % "3.0.0"
libraryDependencies += guice
libraryDependencies += caffeine
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.13.5"
//dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.13.5"
//val playVersionPlayTest = play.core.PlayVersion.current
//val TestDeps = Seq(
// "org.playframework" %% "play-test" % playVersionPlayTest % Test
//)

//libraryDependencies += "org.ehcache" % "ehcache" % "3.10.6"

//libraryDependencies += "com.typesafe.play" %% "play-async-cache" % "3.0.2"
//libraryDependencies += "com.typesafe.play" %% "play-async-cache" % "3.0.2"
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// The Play plugin
//addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.14")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.16")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.2")
//addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.6")
addSbtPlugin("org.scalastyle" % "scalastyle-sbt-plugin" % "1.0.0")
//addSbtPlugin("org.scalastyle" % "scalastyle-sbt-plugin" % "1.0.0")
// addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
//addSbtPlugin("com.aol.sbt" % "sbt-sonarrunner-plugin" % "1.0.4")
addSbtPlugin("com.aol.sbt" % "sbt-sonarrunner-plugin" % "1.0.4-6-g4a15e02")
Expand Down

2 comments on commit ea5dcc1

@anitha1729
Copy link

@anitha1729 anitha1729 commented on ea5dcc1 May 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[error] (update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/com/google/inject/guice/6.0.0/guice-6.0.0-no_aop.jar: not found: https://repo1.maven.org/maven2/com/google/inject/guice/6.0.0/guice-6.0.0-no_aop.jar

This dependency is not mentioned in the build.sbt, But its still referring to the same.

Attached the new build.sbt
build.txt

Even though I override it

dependencyOverrides += "com.google.inject" % "guice" % "4.2.2"

Its complaining the same

@mkurz
Copy link
Owner Author

@mkurz mkurz commented on ea5dcc1 May 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though I override it

dependencyOverrides += "com.google.inject" % "guice" % "4.2.2"

You should NOT override guice.

Please sign in to comment.