diff --git a/examples/src/main/scala/za/co/absa/clientexample/Application.scala b/examples/src/main/scala/za/co/absa/clientexample/Application.scala index dd89730..cfd65a9 100644 --- a/examples/src/main/scala/za/co/absa/clientexample/Application.scala +++ b/examples/src/main/scala/za/co/absa/clientexample/Application.scala @@ -17,15 +17,16 @@ package za.co.absa.clientexample import za.co.absa.clientexample.config.ConfigProvider +import za.co.absa.loginclient.authorization.JWTDecoderProvider +import za.co.absa.loginclient.tokenRetrieval.service.RetrieveToken -import java.nio.file.{Paths, Files} +import java.nio.file.{Files, Paths} import java.util.Scanner object Application { def main(args: Array[String]): Unit = { - //TODO: Add Client Client Library and uncomment code - /*var configPath = "" + var configPath = "" if (args.length < 1) { throw new Exception("Usage: Application ") } else { @@ -97,6 +98,6 @@ object Application { println(s"UNAUTHORIZED. PLEASE TRY AGAIN") println("----------------------------------------------") } - }*/ + } } } diff --git a/project/Dependencies.scala b/project/Dependencies.scala index c76bd42..ea4b680 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -75,6 +75,8 @@ object Dependencies { lazy val springBootTest = "org.springframework.boot" % "spring-boot-starter-test" % Versions.springBoot % Test lazy val springBootSecurityTest = "org.springframework.security" % "spring-security-test" % Versions.spring % Test + lazy val clientLib = "za.co.absa" % "login-service-client-library_2.12" % "0.1.0-SNAPSHOT" + def serviceDependencies: Seq[ModuleID] = Seq( jacksonModuleScala, jacksonDatabind, @@ -124,6 +126,8 @@ object Dependencies { def exampleDependencies: Seq[ModuleID] = Seq( pureConfig, - pureConfigYaml + pureConfigYaml, + + clientLib ) } \ No newline at end of file diff --git a/publish.sbt b/publish.sbt index 3f84fd0..866c025 100644 --- a/publish.sbt +++ b/publish.sbt @@ -58,4 +58,6 @@ ThisBuild / publishTo := { } ThisBuild / publishMavenStyle := true +ThisBuild / credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "TheLydonKing", "JamesBue10368Sonatype!!!") + ThisBuild / versionScheme := Some("semver-spec")