From a4ed8c17b076d0735d13cd2de0477a1b64b1a065 Mon Sep 17 00:00:00 2001 From: Douglas Thomsen Date: Thu, 22 Aug 2024 08:55:59 -0600 Subject: [PATCH] Update error message. --- .../src/main/scala/codeartifact/CodeArtifactKeys.scala | 6 +++--- .../src/main/scala/codeartifact/CodeArtifactPlugin.scala | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactKeys.scala b/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactKeys.scala index 7d8f65f..f8cefd3 100644 --- a/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactKeys.scala +++ b/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactKeys.scala @@ -20,6 +20,9 @@ trait CodeArtifactKeys { val codeArtifactResolvers: SettingKey[List[String]] = settingKey[List[String]]("Additional CodeArtifact repos from which to consume packages.") + + val codeArtifactGetTokenInstructions = + settingKey[Option[String]]("Instructions on how to get a token for CodeArtifact") } trait InternalCodeArtifactKeys { @@ -31,9 +34,6 @@ trait InternalCodeArtifactKeys { val codeArtifactToken = taskKey[Option[String]]( "CodeArtifact authentication. Provided by environment variable CODEARTIFACT_AUTH_TOKEN or fetched dynamically from available AWS credentials." ) - - val codeArtifactGetTokenInstructions = - taskKey[Option[String]]("Instructions on how to get a token for CodeArtifact") } object CodeArtifactKeys extends CodeArtifactKeys diff --git a/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactPlugin.scala b/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactPlugin.scala index 5a539c0..1cfda85 100644 --- a/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactPlugin.scala +++ b/sbt-codeartifact/src/main/scala/codeartifact/CodeArtifactPlugin.scala @@ -18,6 +18,7 @@ object CodeArtifactPlugin extends AutoPlugin { def buildPublishSettings: Seq[Setting[_]] = Seq( ThisBuild / codeArtifactUrl := "", + ThisBuild / codeArtifactGetTokenInstructions := None, ThisBuild / codeArtifactResolvers := Nil )