Open hdghg opened 2 months ago
I was able to exclude the springboot from culprits, this configuration in app/build.gradle.kts
still causes the error:
plugins {
java
id("ru.vyarus.quality") version "5.0.0"
}
buildscript {
repositories {
mavenCentral()
}
}
Unfortunately, using subprojects {}
syntax is not an option
Thank you very much for the sample project! I reproduced the problem and will look for the cause
A quick workaround is to create root build.gralde.kts
with:
plugins {
id("ru.vyarus.quality").version("5.0.0").apply(false)
}
And inside sub-projects (app, lib) remove plugin version:
plugins {
`java-library`
id("ru.vyarus.quality")
}
The main problem is a global gradle service, registered only once. With separate plugin registrations, second module could not match service class becuase it was loaded with different class loader. The fix above forces plugin loading in the root project so both sub-projects would use it from the same class loader (and so could use one gradle service).
I will see how to resolve this in the plugin itself, but it would take some time.
Hello! I ran into an issue while trying to configure the quality plugin with spring-boot-plugin in multi-module build:
The build consists of 3 files:
settings.gradle.kts
:app/build.gradle.kts
:lib/build.gradle.kts
:url to repo: https://github.com/hdghg/gradle-quality-plugin-bugreport