kyonifer / koma

A scientific computing library for Kotlin. https://kyonifer.github.io/koma
Other
270 stars 23 forks source link

Forbidden from maven repo url #110

Closed Millad closed 2 years ago

Millad commented 2 years ago

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 commented 2 years ago

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

Millad commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago
  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 commented 2 years ago

My repo: https://github.com/Millad/Convolutional-neural-network-without-frameworks-in-kotlin

drmoose commented 2 years ago

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

Millad commented 2 years ago

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