gilcloud / sbt-gitlab

sbt plugin to allow dependency resolution and artifact publishing for gitlab
Apache License 2.0
26 stars 20 forks source link

headerAuthHandler throws None.get when plugin not configured #37

Closed meszarosotto closed 1 year ago

meszarosotto commented 1 year ago

Just upgraded to 0.1.2 and found that the local sbt commands are not working. To get this problem you need neither env variables nor TaksKeys. To reproduce this problem:

unset CI_PROJECT_ID
unset CI_GROUP_ID
unset CI_JOB_TOKEN
unset CI_SERVER_HOST

and remove all sbt-gitlab TaskKey variable, just add the plugin to your project.

sbt compile will throw Exception (and stuck basically)

[error] (headerAuthHandler) java.util.NoSuchElementException: None.get
meszarosotto commented 1 year ago

Created a PR which closes this Issue after merged. Please see https://github.com/gilcloud/sbt-gitlab/pull/38

meszarosotto commented 1 year ago

issue fixed with merged PR