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 )