ari / gradle-release-plugin

A modern release plugin for gradle
Apache License 2.0
51 stars 24 forks source link

Transitive Dependency on a SNAPSHOT #31

Open StuporHero opened 8 years ago

StuporHero commented 8 years ago

The binary for 2.2.2 that was released to Bintray has a dependency on sqljet-1.1.8-SNAPSHOT which is not available through either Bintray or Maven Central. It's a pain to have to exclude the dependency and manually specify the dependency to sqljet-1.1.8. If anyone comes across this being unsure what to do about it, here is the workaround:

buildscript {
    dependencies {
        classpath 'org.tmatesoft.sqljet:sqljet:1.1.8'
        classpath('au.com.ish.gradle:release:2.2.2') {
            exclude group: 'org.tmatesoft.sqljet', module: 'sqljet'
        }
    }
}
StuporHero commented 8 years ago

I just had a look at the source, and it seems that the transitive dependency comes from the svnkit dependency rather than being from this project itself. I also see that the latest commit has updated svnkit to 1.8.12. If that dependency also has a transitive dependency on a snapshot version, applying the aforementioned to this project should prevent it from affecting anyone who uses the resulting release.