IdeaModelBuilderTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove support for connecting to Gradle <2.6

  1. … 147 more files in changeset.
Remove handling for case without composite context

The composite context is now always part of the services in a build, so

we no longer need to handle the case where it does not exist.

  1. … 6 more files in changeset.
Remove deprecated methods on TestUtil (#672)

In order to use project builder correctly without having

leaking files on windows it is necessary to initialize

the test fixture for NativeServices and clean up

the test directory after building.

AbstractProjectBuilderSpec provides a nice base class

for Groovy tests.

I removed the deprecated methods since using them leads

to files lying around. Migrating all the usages to the "new"

way ensures it is used correctly.

  1. … 97 more files in changeset.
Renamed some internal services to reflect a broader role in composite build

- ProjectComponentRegistry -> LocalComponentRegistry

- renamed getProject() -> getComponent()

- ProjectComponentProvider -> LocalComponentProvider

- Extracted register() method into a sub-interface

  1. … 22 more files in changeset.
Always use the registered iml artifact to determine module name

This consolidates the work done for IDE support in #composite-builds

with that for regular builds: the consumer project no longer needs

to reach into the dependent project to inspect the state of the

`ideaModel` extension. This information is now pushed from the

dependent project.

  1. … 13 more files in changeset.
Added `IdeaModuleIdentifier` allowing idea module dependencies to be identified in a composite

- `IdeaModule.identifier` returns a unique identifier for the module

- `IdeaModuleDependency.target` returns the unique identifier for the target module

- Compatibility mapper sets these values for older gradle versions

  1. … 18 more files in changeset.
dont inherit module language and bytecode level from IdeaProject#languageLevel

  1. … 10 more files in changeset.
Add coverage for source and target compatibility defined in properties files

  1. … 1 more file in changeset.
Renames in IDEA tooling model

- `IdeaJavaLanguageSettings.javaSdk` -> `.jdk`

- `JavaRuntime` -> `InstalledJdk`

- `InstalledJdk.homeDirectory` -> `javaHome`

+review REVIEW-5740

  1. … 11 more files in changeset.
Renamed `IdeaJavaSettings` -> `IdeaJavaLanguageSettings`

+review REVIEW-5726

  1. … 13 more files in changeset.
Some more cleanup on idea tapi model

- update javadoc

- rename sourceLanguageLevel -> languageLevel as it matches idea namings

- fix IdeaModelBuilderTest

- tweak release notes after renamings

+review REVIEW-5740

  1. … 5 more files in changeset.
cleanup idea tapi java model

- remove Xinherited method

- rename targetBytecodeLevel to targetBytecodeVersion

+review REVIEW-5740

  1. … 5 more files in changeset.
Rename targetRuntime -> javaSDK in idea tapi model

changed all according methods in idea tapi model:

- getTargetRuntime

- setTargetRuntime

- isTargetRuntimeInherited

TBD: Still using JavaRuntime to model the JavaSDK in idea. Probably have

something more specific here makes sense.

+review REVIEW-5723

  1. … 5 more files in changeset.
Changed tooling model of Idea sourceLanguageLevel to match local IDE model

- Removed isSourceLanguageLevelInherited: use null instead

+review REVIEW-5726

  1. … 4 more files in changeset.
update IdeaModelBuilder reflecting Idea IDE model

- cleanup some integtest coverage

+review REVIEW-5726

  1. … 2 more files in changeset.
cleanup and fix some tapi unit test coverage

+review REVIEW-5726

let javasourcesettings be null for non java idea modules

- more unit test coverage for target bytecode level in idea model

+review REVIEW-5726

  1. … 2 more files in changeset.
mark modules with same target bytecode level as projec with inherited=true

- add some more test coverage

- minor cleanup

  1. … 6 more files in changeset.
Remove unused imports

+review REVIEW-5726

  1. … 1 more file in changeset.
Remove unnecessary method from DefaultIdeaLanguageLevel

+review REVIEW-5726

  1. … 1 more file in changeset.
Make unit test method naming consistent

+review REVIEW-5726

Define unit tests for IDEA project and module source language level

+review REVIEW-5726

    • -0
    • +253
    ./IdeaModelBuilderTest.groovy