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

Forbidden from maven repo url #110

Closed
Millad opened this issue Jul 11, 2021 · 7 comments
Closed

Forbidden from maven repo url #110

Millad opened this issue Jul 11, 2021 · 7 comments

Comments

@Millad
Copy link

Millad commented Jul 11, 2021

I followed the instruction on your site for quick start with gradle. I added the maven repo url but get forbidden when downloading koma core api...

@drmoose
Copy link
Contributor

drmoose commented Jul 11, 2021

Bintray no longer exists. See #108 for new gradle dependencies.

@Millad
Copy link
Author

Millad commented Aug 11, 2021

Hello again @drmoose,

I have tried the following without luck.



plugins {
    id("java")
    id("org.jetbrains.kotlin.jvm") version "1.3.72"
    id("io.github.0ffz.github-packages") version "1.2.1"
    application
}

repositories {
    mavenCentral()
    jcenter()
    githubPackage("kyonifer")
    maven { url = uri("https://plugins.gradle.org/m2/") }
}

dependencies {
    implementation("com.kyonifer:koma-core-ejml:0.12")
}

It still cannot fint the dependency

@drmoose
Copy link
Contributor

drmoose commented Aug 11, 2021

The jcenter line needs to be removed entirely; jcenter has been deleted.

You also appear to be missing a buildscript block. At a minimum, the following is necessary for the github-packages plugin to work:

buildscript {
  repositories {
    maven { url "https://plugins.gradle.org/m2/" }
    mavenCentral()
  }
}

Also, you need to use version 0.12.1 of koma, not 0.12.

@Millad
Copy link
Author

Millad commented Aug 11, 2021

  buildscript {
    repositories {
        mavenCentral()
        githubPackage("kyonifer")
        maven { url = uri("https://plugins.gradle.org/m2/") }
    }
}

dependencies {
    implementation("com.kyonifer:koma-core-ejml:0.12.1")

says :

Line 11:         githubPackage("kyonifer")
                   ^ Unresolved reference: githubPackage

Following: https://github.com/0ffz/gpr-for-gradle

@Millad
Copy link
Author

Millad commented Aug 11, 2021

@drmoose
Copy link
Contributor

drmoose commented Aug 11, 2021

⬆️ I opened that pull request on your repo. Each commit message should show what I did and why.

@Millad
Copy link
Author

Millad commented Aug 11, 2021

thanks, i would have never guessed the githubPackage() this() method.

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

2 participants