how do you extract common configs/dependencies in ...
# announcements
b
how do you extract common configs/dependencies in gradle kotlin dsl? The problem I have is that in my
buildSrc
I can't for example configure sonarqube because of some properties missing
for example these are my common test dependencies/configs:
Copy code
.
├── integration_test_config.gradle.kts
├── test_config.gradle.kts
└── test_dependencies.gradle.kts
what I though about is making a
test
module in
buildSrc
directory and trying to glue everything in its'
build.gradle.kts
but it would heavily clutter the
buildSrc
directory so maybe there is a better solution
about that sonarqube thing:
Copy code
Line 06: sonarqube.ext {
           ^ Unresolved reference: sonarqube
Copy code
.
├── build.gradle.kts
├── sonarqube_config.gradle.kts
└──src
Copy code
plugins {
    "org.sonarqube"
}

sonarqube.ext {
    this.set("someProp", "value")
}
110 Views