I’m looking to refactor the Lazybones project into a 3-sub-project build with:
- lazybones-gradle-plugin * lazybones-templates * lazybones-app
The Lazybones Gradle plugin is designed to simplify the packaging and publication of templates and I want to use it in the lazybones-templates project. Unfortunately, the lazybones-templates build complains that it doesn’t know about the Gradle plugin.
This is the extent of the lazybones-templates build file:
buildscript {
repositories {
maven {
name "local"
url = "file://${rootProject.buildDir}/sharedRepo"
}
}
dependencies {
classpath "uk.co.cacoethes:lazybones-gradle-plugin:1.0-SNAPSHOT" //project(":lazybones-gradle-plugin")
}
}
apply plugin: "lazybones-templates"
I originally had a ‘project()’ reference in the ‘buildscript’, but that didn’t seem to work either.
Is it possible to define a plugin in the same multi-project build as it’s used?