Skip to content

Commit

Permalink
Add publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
apascali-1A committed Nov 17, 2023
1 parent 7dc62e5 commit 112b45b
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "com.amadeus"

ThisBuild / versionScheme := Some("semver-spec")

version := "2.0-SNAPSHOT"
version := "2.0.0"

scalaVersion := "2.12.12"

Expand All @@ -17,6 +17,33 @@ libraryDependencies ++= Seq(
"com.holdenkarau" %% "spark-testing-base" % "3.4.0_1.4.3" % "test"

)
// Publishing settings
publishTo := Some("GitHub Packages" at "https://maven.pkg.github.com/AmadeusITGroup/Elastic-Scaling")

resolvers += "amadeus-mvn" at "https://repository.rnd.amadeus.net/mvn-built"
resolvers += "amadeus-sbt" at "https://repository.rnd.amadeus.net/sbt-built"
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"",
sys.env.getOrElse("GITHUB_TOKEN", "")
)

publishMavenStyle := true
Test / publishArtifact := false

pomIncludeRepository := { _ => true }

// Artifact metadata
pomExtra :=
<description>
Elastic scaling is a library that allows to control the number of resources (executors) instantiated
by a Spark Structured Streaming Job in order to optimize the effective microbatch duration.
The goal is to use the minimum needed resources for processing the workload, in a time that is the closest
to the microbatch duration itself, adapting the number of executors to the volume of data received.
</description>
<url>https://github.com/AmadeusITGroup/Elastic-Scaling</url>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>https://github.com/AmadeusITGroup/Elastic-Scaling/LICENSE.txt</url>
</license>
</licenses>

0 comments on commit 112b45b

Please sign in to comment.