IdeaDependencySubstitutionIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -4
    • +4
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 872 more files in changeset.
Annotate JUnit integ tests failing with instant execution

in already annotated subprojects

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +5
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 19 more files in changeset.
Annotate JUnit integ tests failing with instant execution

in already annotated subprojects

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +5
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 19 more files in changeset.
Let ide tests not use deprecated configurations

    • -3
    • +3
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 40 more files in changeset.
Let ide tests not use deprecated configurations

    • -3
    • +3
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 61 more files in changeset.
Let ide tests not use deprecated configurations

    • -3
    • +3
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 61 more files in changeset.
Let ide tests not use deprecated configurations

    • -3
    • +3
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 61 more files in changeset.
Let ide tests not use deprecated configurations

    • -3
    • +3
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 40 more files in changeset.
Update integration tests for optimized IDEA dependencies

    • -8
    • +8
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 6 more files in changeset.
On CI redirect maven central queries to local repo for integration tests

    • -3
    • +1
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 108 more files in changeset.
Simplify IDEA scope mapping

The old scope mapping code was hardcoded, hard to understand and exploded in complexity

each time we added a new configuration to the Java plugin. It was doing this hardcoded

mapping in an attempt to minimize the number of dependency declarations in IDEA, e.g.

remove `testRuntime` dependencies from the `TEST` scope if they were already in the `RUNTIME`

scope and not present in `testCompile`. While this slightly reduces the number of false positives

in auto completion, it is hard to follow, as IDEA itself simply does not differentiate between

"test compilation" and "test runtime".

The new implementation accepts IDEA's dependency model and does the simples possible mapping to it:

- no hardcoded mapping rules for the Java plugin

- users can put dependencies into the 4 IDEA scopes (`COMPILE`,`PROVIDED`,`RUNTIME`, `TEST`)

- the IdeaPlugin uses the same API for adding dependencies that the user would use

- those scopes are not postprocessed in any way

The default mapping for the Java plugin is simplified to:

- `COMPILE` is empty

- `PROVIDED` = `compileClasspath`

- `RUNTIME` = `runtimeClasspath`

- `TEST`= `testCompileClasspath + testRuntimeClasspath`

The benefit of this mapping is that we no longer use `minus` configurations, which we might want

to deprecate/remove as well.

    • -8
    • +8
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 20 more files in changeset.
Renamed method to avoid ambiguous overloads in Groovy (screwed up in IDE)

    • -1
    • +1
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 13 more files in changeset.
Add simple DSL for dependency substitution

- Replaces ‘withProject’ and ‘withModule’ methods

    • -6
    • +6
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 8 more files in changeset.
Substituted project dependencies are now honoured in generated IDE classpaths

+review REVIEW-5436

    • -3
    • +0
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Manually functionally revert d454084 & 867375a to unbreak IDE project metadata generation.

The associated test cases have been ignored. The functionality will be restored in 2.5.

    • -1
    • +3
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 2 more files in changeset.
Fixed IDE plugins not detecting transitively substituted project dependencies

    • -2
    • +0
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 2 more files in changeset.
Update IDE integration tests to use new dependency substitution DSL

    • -12
    • +6
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Further test coverage for dependency substitution in Eclipse projects

- Extracted existing tests into separate class

- Added (currently failing) test for substitution of transitive external del

    • -1
    • +1
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 2 more files in changeset.
Further test coverage for dependency substitution with the ‘idea’ plugin

- Extracted coverage into separate integration test

- Use inline build scripts and test fixtures for readability

- Added (currently failing) test for replacing transitive external dependency with project dependency

    • -0
    • +128
    ./IdeaDependencySubstitutionIntegrationTest.groovy
  1. … 7 more files in changeset.