Closed antonyshchenko closed 2 years ago
As you can see in your error, jitpack is looking for the pom at https://jitpack.io/com/github/ajamaica/Solana/kt/solana/1.0.0/solana-1.0.0.pom
.
The pom is actually located at https://jitpack.io/com/github/ajamaica/Solana.kt/1.0.0/Solana.kt-1.0.0.pom
.
One problem is the Solana "." kt. Gradle is expanding this as Solana/kt when looking for the pom, but that's not how it's stored. Another problem is the extra /solana/
directory in there.
I was unable to find a configuration that makes the jitpack import properly. I found a method to point to the pom in the correct place, but then it complained that the way I had pointed to it made the package name ajamaica
instead of com.github.ajamaica
so it still wouldn't build. Would love to know the proper way to import this package.
For those who try later, I was able to use GitHub Packages instead of Jitpack with the following configuration. Might be worth adding to the readme.
repositories {
maven {
url = "https://maven.pkg.github.com/ajamaica/Solana.kt"
credentials {
username = "samdowd"
password = "[token]"
}
}
}
implementation 'com.solana:solana:1.0.0'
The token is a GitHub Personal Access Token with permission read:packages
.
This is closed by the repo name change @ajamaica
Adding dependency to build.gradle
results in
Is there any other way to try the library without building it locally?