upmc-enterprises / gradle-slack-uploader-plugin

Uploads artifacts from a Gradle build as a file to a Slack channel

Home Page:https://oliverspryn.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when attempting to import project

Mouseater opened this issue · comments

I get the error below when attempting to add your plugin.
`Could not resolve all artifacts for configuration ':classpath'.

Could not find com.github.allbegray:slack-api:1.7.0.RELEASE.
Searched in the following locations:
- https://plugins.gradle.org/m2/com/github/allbegray/slack-api/1.7.0.RELEASE/slack-api-1.7.0.RELEASE.pom
Required by:
project : > com.oliverspryn.gradle.slackuploader:com.oliverspryn.gradle.slackuploader.gradle.plugin:2.1.0 > gradle.plugin.com.oliverspryn.gradle:slackuploader:2.1.0`

Project still appears to be on github, https://github.com/allbegray/slack-api

I'll look into this. My guess is that you need to add Jitpack as a source repository, like how I do it here: https://github.com/upmc-enterprises/gradle-slack-uploader-plugin/blob/develop/demo/build.gradle#L4

It is also mentioned in the Slack API project here: https://github.com/allbegray/slack-api#maven

If that is the only necessary change, I'll update the documentation to mention it. Thank you for letting me know.

I'll look into this. My guess is that you need to add Jitpack as a source repository, like how I do it here: https://github.com/upmc-enterprises/gradle-slack-uploader-plugin/blob/develop/demo/build.gradle#L4

It is also mentioned in the Slack API project here: https://github.com/allbegray/slack-api#maven

If that is the only necessary change, I'll update the documentation to mention it. Thank you for letting me know.

I updated my build.gradle to match how you outlined above but I still get the same error, I will put a copy of what my my code looks like below for those sections.

plugins {
    id 'java-library'
    id 'eclipse'
    id 'groovy'
    id 'maven-publish'
    id 'idea'
    id "com.oliverspryn.gradle.slackuploader" version "2.1.0"
}

repositories {
    mavenCentral()
    maven { url 'https://jitpack.io' }
}