Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sbt 1.7 #1

Merged
merged 10 commits into from
Sep 20, 2022
Merged

Sbt 1.7 #1

merged 10 commits into from
Sep 20, 2022

Conversation

listba
Copy link
Collaborator

@listba listba commented Sep 20, 2022

recreating: gilcloud#31 here so we can publish a new version

The plugin originally relied on the RequestInterceptor capabilities that were part of the OKHttp3 client backed exposed via sbt.CustomHttp. Additionally it also relied on the GigaHorseURLHandler to leverage the OkHttp3 client. Unfortunately all of this was removed as part of the SBT 1.7.0 release (see pr: sbt/librarymanagement#399).

The OkHttp3 client backed was swapped out for the the Apache HTTP HttpAsyncClient. But as far as i can tell it does not have the same RequestInterceptor capabilities. additionally with the removal of the GigaHorseUrlHandler There isnt any way (from what I could tell) that actually leveraged or used the Apache gigahorse client.

So to get this to work with sbt 1.7.0 I extended the BasicURLHandler that the SBT plugin is using as the default UrlHandler and added logic to add the gitlab credential headers to the getUrlInfo, download, and upload requests when the host name matches provided (or default) gitlab hostname.

From my limited testing capabilities I was able to both publish to and pull from our private self hosted gitlab repo on sbt 1.7 using the plugin without having to make any changes to my sbt files.

Additionally I pulled in the change from issue gilcloud#25 / pr gilcloud#27 since there have been a few issues with people naming their resolver gitlab-maven and the publishResolver overwrites it

@listba listba merged commit efd3398 into TangramFlex:master Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant