Skip to content

Commit

Permalink
Add Lib from Nexus to Application.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLydonKing committed Dec 8, 2023
1 parent e552ccb commit b19fff2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <config_path>")
} else {
Expand Down Expand Up @@ -97,6 +98,6 @@ object Application {
println(s"UNAUTHORIZED. PLEASE TRY AGAIN")
println("----------------------------------------------")
}
}*/
}
}
}
6 changes: 5 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -124,6 +126,8 @@ object Dependencies {

def exampleDependencies: Seq[ModuleID] = Seq(
pureConfig,
pureConfigYaml
pureConfigYaml,

clientLib
)
}
2 changes: 2 additions & 0 deletions publish.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit b19fff2

Please sign in to comment.