Avoid copying buidSrc/build
directory for running integration tests
#29
Labels
tech. debt
What makes us slow in dev?
The class
io.spine.tools.gradle.testing.GradleProject
which helps with initializing Gradle projects in tests has privatewriteBuildSrc()
method which copies the content of thebuildSrc
folder from the root of the project into a temp directory created for an integration test.The current implementation copies not only source code, but also the
build
directory. If thebuild
directory is not copied, integration tests fail because Groovy-based Gradle scripts cannot resolve Kotlin-based dependencies (declared inbuildSrc/src/main/kotlin/io/spine/internal/dependency
).It is still not clear to me why the Kotlin-based dependencies work for a clean project and do not work in tests, but I don't think we should invest too much time into clarifying this “mystery”. I would put time and efforts into migrating build scripts from Groovy to Kotlin instead.
The text was updated successfully, but these errors were encountered: