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

Create a separate TestCompilationDependencies class for Kotlin #315

Open
Frosendroska opened this issue Jul 30, 2024 · 0 comments
Open

Create a separate TestCompilationDependencies class for Kotlin #315

Frosendroska opened this issue Jul 30, 2024 · 0 comments
Labels
refactoring Refactor the project

Comments

@Frosendroska
Copy link
Contributor

Frosendroska commented Jul 30, 2024

Description

Currently there is one class that stores the dependancies for the compilation part, that are added during compilation even if they are not stated in the project gradle file.

This dependancies are Java specific:

class TestCompilationDependencies {
    companion object {
        fun getJarDescriptors() = listOf(
            JarLibraryDescriptor(
                "mockito-core-5.0.0.jar",
                "https://repo1.maven.org/maven2/org/mockito/mockito-core/5.0.0/mockito-core-5.0.0.jar",
            ),
            JarLibraryDescriptor(
                "hamcrest-core-1.3.jar",
                "https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar",
            ),
            JarLibraryDescriptor(
                "byte-buddy-1.14.6.jar",
                "https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy/1.14.6/byte-buddy-1.14.6.jar",
            ),
            JarLibraryDescriptor(
                "byte-buddy-agent-1.14.6.jar",
                "https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy-agent/1.14.6/byte-buddy-agent-1.14.6.jar",
            ),
        )
    }
}

We should make the separate TestCompilationDependencies for each language and probably for each framework.

For example:

For Kotlin the "org.mockito.kotlin:mockito-kotlin:5.1.0" is missing.

@arksap2002 arksap2002 added the refactoring Refactor the project label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactor the project
Projects
None yet
Development

No branches or pull requests

2 participants