From 112b45b55ca60c8506b174067ff84fdf5e661ac5 Mon Sep 17 00:00:00 2001 From: Alessandro Pascali Date: Fri, 17 Nov 2023 10:29:32 +0100 Subject: [PATCH] Add publish step --- build.sbt | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index b281048..6037063 100644 --- a/build.sbt +++ b/build.sbt @@ -4,7 +4,7 @@ organization := "com.amadeus" ThisBuild / versionScheme := Some("semver-spec") -version := "2.0-SNAPSHOT" +version := "2.0.0" scalaVersion := "2.12.12" @@ -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 := + + 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. + + https://github.com/AmadeusITGroup/Elastic-Scaling + + + Apache License 2.0 + https://github.com/AmadeusITGroup/Elastic-Scaling/LICENSE.txt + +