Hello,
I’m working on multiple project and i want to have common files to setup build.
I’d like to have only the build.gradle specific to the project and have files to include and configure plugins.
When I put everything in my build.gradle, everything is ok. When I separate in files (and include files in build.gradle) it fails to find plugin
Exemple :
==== build.gradle====
buildscript {
repositories {
ivy {
name = “repo-spotless”
}
}
dependencies {
classpath “com.diffplug.spotless:spotless-plugin-gradle:3.0.0”
}
}
apply plugin: ‘com.diffplug.gradle.spotless’
=> if i put this into a “spotless.gradle” which is included by build.gradle it fails.
====build.gradle====
apply from: ‘spotless.gradle’
====spotless.gradle====
buildscript {
repositories {
ivy {
name = “repo-spotless”
}
}
dependencies {
classpath “com.diffplug.spotless:spotless-plugin-gradle:3.0.0”
}
}
apply plugin: ‘com.diffplug.gradle.spotless’
Any idea why ? maybe this is easy but I search the web and found nothing.
Thanks.