Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid copying buidSrc/build directory for running integration tests #29

Open
alexander-yevsyukov opened this issue Jul 15, 2021 · 0 comments
Labels
tech. debt What makes us slow in dev?

Comments

@alexander-yevsyukov
Copy link
Contributor

The class io.spine.tools.gradle.testing.GradleProject which helps with initializing Gradle projects in tests has private writeBuildSrc() method which copies the content of the buildSrc 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 the build directory is not copied, integration tests fail because Groovy-based Gradle scripts cannot resolve Kotlin-based dependencies (declared in buildSrc/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.

@alexander-yevsyukov alexander-yevsyukov transferred this issue from SpineEventEngine/base Oct 17, 2022
@alexander-yevsyukov alexander-yevsyukov added the tech. debt What makes us slow in dev? label Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech. debt What makes us slow in dev?
Projects
None yet
Development

No branches or pull requests

1 participant