I'm trying to compile my library, using jitpack, but i consistenly get the 'failed to resolve: $library-dependency' When i build my app. The gradle files are configured properly, so i checked out the jitpack logs for my build, and it's giving me the fatal error 'task install is ambiguous'. I'll include a copy of my build scripts, and the jitpack log.
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
dependencies {
//...
//latest BonitaToolbox commit on master
implementation 'com.github.whompum:bonitatoolbox:master-SNAPSHOT'
}
https://jitpack.io/com/github/whompum/bonitatoolbox/master/build.log
I even ran the test repo jitpack offers, but with the same output. Could this be an issue with AS, or with my libraries build files? I'm not sure but would appreciate any help you guys can offer. I'll of course include any more information on this issue.
Here's a link to a github issue i've submited: https://github.com/jitpack/jitpack.io/issues/2096
From: https://jitpack.io/docs/ANDROID/#gradle
Gradle
To enable building on JitPack you need to add the android-maven plugin.
If using Gradle 4.1 or later:
1) In your root build.gradle:
buildscript {
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' // Add this line
2) In your library/build.gradle add:
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.YourUsername'
3) Create a GitHub release or add a git tag.