DefaultSourceSetTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename `apiCompile` to `apiElements`

to match the `runtimeElements` configuration name.

  1. … 6 more files in changeset.
Initial setup of the API and API compile configurations

This is the initial step to provide API/impl separation for the current model. The commit

introduces two new configurations:

- `api` is a bucket of dependencies configuration where the user would declare the dependencies of its

API. That configuration is not transitive, and reflects the dependencies which are strictly required

when some component needs to compile against this component.

- `apiCompile` is a consumer only configuration which extends the `api` configuration and provides

the compile classpath when a component compiles against this component. It will therefore contain

the dependencies of `api`, plus the API classes. The form in which we provide the API classes has

yet to be defined (could be a jar, a class directory, stubs, ...).

See: gradle/performance#180

  1. … 8 more files in changeset.
Favor Groovy SAM type coercion over anonymous class

See gradle/gradle-script-kotlin#124

  1. … 2 more files in changeset.
Add missing Action<?> overloads to SourceSet

See gradle/gradle-script-kotlin#124

  1. … 8 more files in changeset.
Add 'compileClasspath' configuration to all source sets

- Creates another configuration, 'compileClasspath', for all source sets

- This configuration extends from 'compileOnly'

- Source set's compileClasspath is set to 'compileClasspath' configuration

+review REVIEW-5807

  1. … 17 more files in changeset.
Add 'compileOnly' configuration for each source set.

This commit creates a new 'compileOnly' configuration for each declared source set. Dependencies added to this source set are used during compilation only. They are not included on the runtime classpath, are not inherited by test classpath, are not included in 'deployable' artifacts such as WARs, EARs or application distributions, are not exported to consuming projects, and are not included in published metadata.

+review REVIEW-5807

  1. … 22 more files in changeset.
Introduced a factory to create `SourceDirectorySet` instances, to avoid exposing the dependencies of `DefaultSourceDirectorySet` to all the places that need to create a `SourceDirectorySet`.

  1. … 37 more files in changeset.
Polishing changes to use PatternSpecFactory +review REVIEW-5627

  1. … 15 more files in changeset.
Manage creation of most PatternSet instances

- use managed CachingPatternSpecFactory instance for

these PatternSet instances

+review REVIEW-5627

  1. … 37 more files in changeset.
Changed JavaBasePlugin to create compile and process resources tasks using the legacy types rather than the software model type. This allows the software types to be created later (ie as rules require them).

  1. … 3 more files in changeset.
Some unit test coverage for handling of task dependencies for various FileCollection implementations.

  1. … 3 more files in changeset.
Some cleanup of native services initialization in unit tests

+review REVIEW-5378

  1. … 13 more files in changeset.
rewordings and test fixes related to improving string representation for source sets

  1. … 4 more files in changeset.
added method SourceSet.getJarTaskName()

  1. … 2 more files in changeset.
- Changed JavaBasePlugin to add a compile and runtime configuration for each source set. - Changed DependencyHandler so that a configuration can be used as the right-hand side of a dependency declaration. Simply a shortcut for extendsFrom(), but keeps all the dependencies grouped in one place. - Reworked some samples to simplify.

  1. … 17 more files in changeset.
Fixed deprecation warnings related to sourceSet.classes -> sourceSet.output in the remaining files

  1. … 1 more file in changeset.
Housekeeping: Added deprecation warning for sourceSets.outpu.classes -> sourceSets.xxx.output. Fixed the human description of the SourceSet's output.

  1. … 2 more files in changeset.
Moved the classesDir and resourcesDir properties to the sourceSets.xxx.output so that it is clearer

  1. … 11 more files in changeset.
- Fixed case where duplicate source directories were added to eclipse project when the java source directory was also configured as a resource directory. - Changed SourceSet.allJava, allGroovy, allScala and allSource to return a SourceDirectorySet instead of a generic FileTree. Removed code from ide plugins which reached into the implementation types for these properties, and use the api instead. This will later allow us to have per-directory include/excludes, and allow arbitrary file collections to be added to source sets.

  1. … 40 more files in changeset.
Renamed subprojects/gradle-(.+) to subprojects/$1

    • -0
    • +137
    ./DefaultSourceSetTest.groovy
  1. … 6178 more files in changeset.