Skip to content

Commit

Permalink
Revert to old build settings for github
Browse files Browse the repository at this point in the history
  • Loading branch information
Seun Soyinka authored and Seun Soyinka committed Aug 22, 2024
1 parent 7544b21 commit 1a4b77e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 25 deletions.
69 changes: 45 additions & 24 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,34 +1,50 @@
inThisBuild(List(
name:= "HL7-PET",
organization := "gov.cdc.hl7",
organizationName:= "CDC",
homepage := Some(url("https://github.com/cdcent/hl7-pet")),
description := "This project is a library to Parse HL7 v2 messages",
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scmInfo:= Some (
ScmInfo(
url("https://github.com/cdcgov/hl7-pet"),
"scm:[email protected]/cdcgov/hl7-pet.git"
)
),
developers := List(
Developer(
id="mcq1",
name="Marcelo Caldas",
email = "[email protected]",
url = url ("https://github.com/cdcent/hl7-pet")
)
name:= "HL7-PET"

//githubOwner := "cdc.gov"
//githubRepository := "HL7-PET"
//githubTokenSource := TokenSource.Environment("GITHUB_TOKEN")


organization:= "gov.cdc.hl7"
organizationName:= "CDC"
scmInfo:= Some (
ScmInfo(
url("https://github.com/cdcgov/hl7-pet"),
"scm:[email protected]/cdcgov/hl7-pet.git"
)
)

developers := List(
Developer(
id="mcq1",
name="Marcelo Caldas",
email = "[email protected]",
url = url ("https://github.com/cdcent/hl7-pet")
)
))
)

description := "This project is a library to Parse HL7 v2 messages"
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
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")

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")
)

credentials += Credentials(Path.userHome / ".sbt" / ".credentials")

publishMavenStyle := true

version := "1.2.10"
scalaVersion := "2.13.13"
scalaVersion:= "2.13.10"

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

Expand All @@ -41,6 +57,11 @@ libraryDependencies += "com.fasterxml.jackson.module" %% "jackson-module-scala"
libraryDependencies += "com.fasterxml.jackson.module" % "jackson-modules-base" % "2.17.0" pomOnly()
libraryDependencies += "com.google.code.gson" % "gson" % "2.10.1"

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

crossPaths:= true

publishArtifact in (Compile, packageSrc) := true
publishArtifact in (Compile, packageSrc) := true
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")
// sbt 1 only, see FAQ for 0.13 support
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.6.0")
// addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.6.0")

0 comments on commit 1a4b77e

Please sign in to comment.