Is this the right place for discussing Kotlin Jupy...
# datascience
c
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.
👌 1
a
works like charm both from local and from the remote
c
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
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
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.
Copy code
@file:Repository("<https://jcenter.bintray.com>")
a
I used github packages from regular build script, I am not sure how configuration worked for them...
c
Was your package public or private?
a
Public.
c
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