I have developed an internal plugin. The plugin has its own version. I then use that plugin for a build process in a repository. If I change the version of the plugin, I have to update the build.gradle to spell our the new version. I have about 100 of these repositories. Is there a way to specify in my build.gradle to use the latest version of the plugin that can be found in that location? I could ran a batch file before gradle that find the latest, updates build.gradle with that number and then runs the build process but this is a big work around to a functionality that should be available. See code below where I call the plugin that I change quite often:
buildscript {
repositories {
maven {
url "c:/git/_TEST/plug-in"
}
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'com.myplugin.gradle', name: 'com.myplugin.mypluginbuild', version: '1.0'
}
apply plugin: 'com.myplugin.mypluginbuild'
}
if I don't specify the version, it returns an error. Any suggestions?