https://kotlinlang.org logo
Title
c

Carter

02/24/2021, 3:21 PM
Is this the right place for discussing Kotlin Jupyter notebooks? I’m curious if there is a way to access a maven repo that requires authentication? I’m currently loading artifacts from
mavenLocal
with a notebook running on my desktop, although I was hoping to publish to a private GitHub Packages repo and pull this into a notebook running in the cloud.
:yes: 1
a

altavir

02/24/2021, 4:21 PM
works like charm both from local and from the remote
c

Carter

02/24/2021, 4:21 PM
How do I set it up?
What’s the actual syntax for username and authentication token?
I tried doing https basic auth in the URL but that didn’t work. E.g. https://$user:$token@myrepourl.com
Defining the repo in the json config file seems like a bad idea in terms of doing variable substitutions, so I think this ends up needing to be a repo declaration in the notebook itself. But I can’t figure out the correct syntax for it (or find documentation for the correct syntax).
a

altavir

02/24/2021, 4:52 PM
For github it is sufficient to setup ssl ket in the system and use ssh instead of https
But you should check with
@Repository
syntax in scripting
c

Carter

02/24/2021, 4:56 PM
For GitHub, are you referring to git repo access via ssh or maven repo access by SSH? I have the JARs already published to Maven, I just can’t seem to figure out the Maven repository syntax.
For the @Repository syntax, I mostly just see examples like this which have no regard for authentication.
@file:Repository("<https://jcenter.bintray.com>")
a

altavir

02/24/2021, 6:15 PM
I used github packages from regular build script, I am not sure how configuration worked for them...
c

Carter

02/24/2021, 7:47 PM
Was your package public or private?
a

altavir

02/25/2021, 4:49 AM
Public.
c

Carter

02/25/2021, 11:42 AM
That’s the problem. My repo is and needs to be private.
Which is why I need authentication.
I got confirmation that authenticated maven repos don’t work currently. https://youtrack.jetbrains.com/issue/KT-27701