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

Artifact configuration should include the test's runtime dependencies #32

Closed
tkrullmann opened this issue Jun 19, 2017 · 1 comment
Closed
Assignees
Milestone

Comments

@tkrullmann
Copy link
Member

When creating an artifact for a test set, the artifact configuration should extend from the test set's runtime configuration. This way, other projects will get the testRuntime dependencies transitively by depending on the test artifact.

Example: in project A

testSets {
    myTest { createArtifact = true }
}

dependencies {
    myTestCompile 'junit:junit:4.12'
}

in project B

dependencies {
    // this should transitively include the 'junit:junit:4.12' dependency
    testCompile project(path: ':A', configuration: 'myTest')
}
@tkrullmann tkrullmann self-assigned this Jun 19, 2017
@tkrullmann tkrullmann added this to the 1.5.0 milestone Jun 19, 2017
@tkrullmann tkrullmann modified the milestones: 1.5.0, 1.6 May 23, 2018
@tkrullmann
Copy link
Member Author

implemented in version 2.0

@tkrullmann tkrullmann modified the milestones: 1.6, 2.0 Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant