This is more of a 'am I doing it right' question.
Quick back story: I have built a gradle plugin (in a standalone gradle/groovy project). I am using it in a different java project. The client project was referring to it via something like:
buildScript
{
flatDir {
dirs '../my-gradle-plugin/build/libs'
}
classpath name: 'gradle-my-plugin'
}
So I didn't want the relative reference to the plugin project (nor make plugin part of the client). I thought I'd see if I can put it up in a BinTray and refer to like a 'real' plugin.
So set up BinTray and after much trial and error, I got it to work, but I don't think I did correct. Here is what I did:
- Made a maven repo: MyStuff
- Made a package: gradle-my-plugin
- Made a version: 0.1
- uploaded a file for that version, but specified a target path like "org/fhw/gradle-my-plugin/0.1"
My buildScript block looks like this:
buildScript {
repositories {
maven {
url 'http://dl.bintray.com/my-bintray-id/MyStuff
}
}
dependencies {
classpath 'org.fhw:gradle-my-plugin:0.1'
}
}
So what I am curious about is the hack I did with the target on BinTray. W/O this, the proper path wasn't in place for uploaded files/jars (for a version).
So is this a correct, process for BinTray and Gradle dependencies?