This is the question "I am doing it right."
A brief history: I built the gradle plugin (in a standalone gradle / groovy project). I am using it in another java project. The client project referred to it through something like:
buildScript { flatDir { dirs '../my-gradle-plugin/build/libs' } classpath name: 'gradle-my-plugin' }
Therefore, I do not need a relative link to the plug-in project (nor do I make the plug-in part of the client). I thought I'd see if I could put it in BinTray and call it a βrealβ plugin.
Thus, after setting up BinTray and after much trial and error, I got it to work, but I donβt think I fixed it. Here is what I did:
- Made by maven repo: MyStuff
- Made package: gradle -my-plugin
- Made in version: 0.1
- uploaded the file for this version, but indicated the target path, for example, "org / fhw / gradle -my-plugin / 0.1"
My buildScript block is as follows:
buildScript { repositories { maven { url 'http://dl.bintray.com/my-bintray-id/MyStuff } } dependencies { classpath 'org.fhw:gradle-my-plugin:0.1' } }
So I'm interested, this is the hack I made with a target on BinTray. W / O, the correct path was not set for downloaded files / jars (for version).
So is this the right process for BinTray and gradle dependencies?
source share