Skip to content

Commit

Permalink
Update build.sbt (#3)
Browse files Browse the repository at this point in the history
removed the commented code and made some adjustments that were causing the build to fail.
  • Loading branch information
TeaSmith7 authored Jan 10, 2024
1 parent 462d151 commit e9fdc0b
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,51 +28,31 @@ homepage := Some(url("https://github.com/cdcent/hl7-pet"))

pomIncludeRepository := { _ => false }

publishTo := Some("GitHub cdcgov Apache Maven Packages" at "https://maven.pkg.github.com/cdcgov/hl7-pet");

//credentials += Credentials ("~/.sbt/sonatype_credentials")
//credentials += Credentials ("CDC Nexus Repository Manager", "https://imagehub.cdc.gov/", "mcq1", "")
publishTo := Some("GitHub cdcgov Apache Maven Packages" at "https://maven.pkg.github.com/cdcgov/hl7-pet")
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"cdcgov",
System.getenv("GITHUB_TOKEN")
);
)

publishMavenStyle := true


//useGpg := true

version := "1.2.7.3"

//scalaVersion := "2.12.17"
scalaVersion:= "2.13.10"

mainClass := Some("gov.cdc.hl7pet.DeIdentifierApp")
Global / excludeLintKeys += mainClass

libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.14"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.14" % "test"
libraryDependencies += "org.scalatest" %% "scalatest-flatspec" % "3.2.14" % Test

libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.14" % Test
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.14.0"
libraryDependencies += "com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.14.1"
libraryDependencies += "com.fasterxml.jackson.module" % "jackson-modules-base" % "2.14.0" pomOnly()
libraryDependencies += "com.google.code.gson" % "gson" % "2.10"

// https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-scala
libraryDependencies += "com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.14.1"
// https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-modules-base
libraryDependencies += "com.fasterxml.jackson.module" % "jackson-modules-base" % "2.14.0" pomOnly()
// https://mvnrepository.com/artifact/com.google.code.gson/gson
libraryDependencies += "com.google.code.gson" % "gson" % "2.10"
// https://mvnrepository.com/artifact/org.scalatest/scalatest-flatspec
//libraryDependencies += "org.scalatest" %% "scalatest-flatspec" % "3.2.14" % Test


//assemblyMergeStrategy in assembly := {
// case PathList("META-INF", xs @ _*) => MergeStrategy.discard
// case x => MergeStrategy.first
//}

//Do not append scala versions to the generated artifact
crossPaths:= true

publishArtifact in (Compile, packageSrc) := true

0 comments on commit e9fdc0b

Please sign in to comment.