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

Groovy is broken? #7

Open
melontini opened this issue Mar 26, 2024 · 7 comments
Open

Groovy is broken? #7

melontini opened this issue Mar 26, 2024 · 7 comments

Comments

@melontini
Copy link

melontini commented Mar 26, 2024

Hi, the plugin looks interesting, but it seems broken when using groovy.

plugins {
    id 'maven-publish'
    id "elect86.magik" version "0.3.3"
}

repositories {
    mavenCentral()
    githubPackages("kotlin-graphics/mary")
    maven { url 'https://jitpack.io' }
}

Log: https://gist.github.com/melontini/3ec6f1f7271f33298395e4fd7509091a

@melontini
Copy link
Author

melontini commented Mar 26, 2024

Oh, alright, there's a workaround using auth url

maven {
        url = "https://elect86:ghp_${new String(Base64.decoder.decode("N1YxWWxqRWNLU2h6d1B6UEp1QVBQMFg1NXVyRWhGMFJCV0cy"))}@maven.pkg.github.com/kotlin-graphics/mary"
    }

@elect86
Copy link
Collaborator

elect86 commented Mar 27, 2024

I'm not a Groovy expert, but I'm totally open to whatever would make Groovy life users easier

If you happen to know, don't hesitate, I can also send you an invitation

@melontini
Copy link
Author

I honestly have no idea what I'm doing when it comes to groovy/gradle, so I'm not much of help here.

@elect86
Copy link
Collaborator

elect86 commented Mar 27, 2024

Which project is? Would you consider switching it to Kotlin script?

@KorewaLidesu
Copy link
Contributor

I believe this is what you want to work with if you want to use Github Packages in Gradle
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry

@melontini
Copy link
Author

Yeah, I just opted for a remote apply script which gets the credentials from the credentials file.

@KorewaLidesu
Copy link
Contributor

Oh....
I see what you are try to do here.
The issue you are getting is try to make the Github repo work huh
Try this instead?

dependencies {
    implementation 'com.example:package'
}

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

No branches or pull requests

3 participants