Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Extract core JVM platform classes into new subproject ‘platform-jvm’

    • -104
    • +0
    ./plugins/CreateJvmBinariesTest.groovy
    • -83
    • +0
    ./plugins/CreateTasksForJarBinariesTest.groovy
  1. … 85 more files in changeset.
Internalize the mainSources FunctionalSourceSet into ComponentSpec.getSources()

- All LanguageSourceSets added to a component’s main source set are automatically part of the components sources

- Don’t use a rule to accomplish this: it’s part of the core component behaviour

- Once SourceSets are managed by model rules, this mechanism should be simpler

+review REVIEW-5076

  1. … 10 more files in changeset.
fix ci

  1. … 1 more file in changeset.
linking main functionalSourceSet of component to component#sources is business of ComponentModelBasePlugin

+review REVIEW-5076

  1. … 9 more files in changeset.
Inject FunctionalSourceSet into ComponentSpec at creation time

- introduce ComponentSpecInternal to access "mainSourceSet"

+review REVIEW-5076

    • -0
    • +58
    ./DefaultJvmLibrarySpecTest.groovy
    • -36
    • +0
    ./DefaultProjectJvmLibraryTest.groovy
    • -2
    • +5
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 25 more files in changeset.
more renamings

ProjectBinary -> BinarySpec

ProjectBinaryInternal -> BinarySpecInternal

ProjectJarBinary -> JarBinarySpec

ProjectJvmLibraryBinary -> JvmLibraryBinarySpec

ProjectNativeBinaryTest -> NativeBinarySpecTest

+ several default implementations according to their related interfaces

    • -0
    • +74
    ./DefaultJarBinarySpecTest.groovy
    • -74
    • +0
    ./DefaultProjectJarBinaryTest.groovy
    • -6
    • +6
    ./plugins/CreateJvmBinariesTest.groovy
    • -4
    • +4
    ./plugins/CreateTasksForJarBinariesTest.groovy
  1. … 56 more files in changeset.
rename ProjectJvmLibrary to JvmLibrarySpec

    • -6
    • +6
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 9 more files in changeset.
Rename: NamedProjectComponentIdentifier -> ComponentSpecIdentifier

- No longer extends ProjectComponentIdentifier, which represents an instance/binary

- Plan is to rename ProjectComponent -> ComponentSpec

    • -2
    • +2
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 21 more files in changeset.
Replace uses of model rules with rule source classes.

The goal is to get rid of the model rules class to make evolving the model registry easier. Only benefit of this change at this point is the improved error reporting due to the strong rule identity provided by rule sources.

    • -3
    • +11
    ./plugins/CreateJvmBinariesTest.groovy
    • -1
    • +2
    ./plugins/CreateTasksForJarBinariesTest.groovy
  1. … 33 more files in changeset.
Added JavaToolChain to ProjectJvmLibraryBinary

    • -2
    • +16
    ./DefaultProjectJarBinaryTest.groovy
    • -1
    • +5
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 8 more files in changeset.
Renamed ProjectJvmBinary -> ProjectJvmLibraryBinary

  1. … 7 more files in changeset.
Hoisted ProjectNativeComponentInternal.getProjectPath() up to ProjectComponent

    • -2
    • +10
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 30 more files in changeset.
Use correct destination dir for resources tasks

    • -1
    • +4
    ./plugins/CreateTasksForJarBinariesTest.groovy
  1. … 5 more files in changeset.
Introduced a separate ProjectJvmLibrary for a library component built by Gradle

    • -0
    • +29
    ./DefaultProjectJvmLibraryTest.groovy
    • -6
    • +6
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 12 more files in changeset.
A bunch of work on the Jvm binary model

- Renamed JarBinary -> ProjectJarBinary

- need a better naming scheme, but this is consistent

- Introduced ProjectJarBinaryInternal and ClassDirectoryBinaryInternal

- ProjectJvmBinary has classesDir and resourcesDir

- ProjectJarBinary has jarFile

    • -0
    • +60
    ./DefaultProjectJarBinaryTest.groovy
    • -8
    • +12
    ./plugins/CreateJvmBinariesTest.groovy
    • -13
    • +10
    ./plugins/CreateTasksForJarBinariesTest.groovy
  1. … 20 more files in changeset.
Further detangling of ProjectBinary (built) from Binary (used)

    • -2
    • +2
    ./plugins/CreateTasksForJarBinariesTest.groovy
  1. … 5 more files in changeset.
More reworking of native/jvm component models

- Moved ‘extends BuildableModelElement, Named’ from Binary to ProjectBinary

- ‘binaries’ is now a container of ProjectBinary instances

- Dependency resolution converts ProjectBinary to Binary instances

- PrebuiltLibrary has a set of NativeLibraryBinary

    • -2
    • +2
    ./plugins/CreateTasksForJarBinariesTest.groovy
  1. … 22 more files in changeset.
Introduced JarBinary type to JVM component model

    • -0
    • +60
    ./DefaultJarBinaryTest.groovy
    • -60
    • +0
    ./DefaultJvmLibraryBinaryTest.groovy
    • -3
    • +3
    ./plugins/CreateJvmBinariesTest.groovy
    • -0
    • +82
    ./plugins/CreateTasksForJarBinariesTest.groovy
    • -81
    • +0
    ./plugins/CreateTasksForJvmBinariesTest.groovy
  1. … 9 more files in changeset.
Instead of moving and aliasing the Jar task, just keep it in the original package

    • -1
    • +1
    ./plugins/CreateTasksForJvmBinariesTest.groovy
  1. … 6 more files in changeset.
Include resources from all ResourceSets in JvmLibraryBinary jar

- ProjectJvmBinary is a binary built by Gradle for the jvm runtime

- Added JvmBinaryTasks to provide access to all tasks associated with a ProjectJvmBinary

- Added classesDir and jarFile properties that are configured on construction

- Attach a ProcessResources task for each ResourceSet

    • -0
    • +57
    ./DefaultJvmBinaryTasksTest.groovy
    • -0
    • +21
    ./DefaultJvmLibraryBinaryTest.groovy
    • -1
    • +4
    ./plugins/CreateJvmBinariesTest.groovy
    • -0
    • +16
    ./plugins/CreateTasksForJvmBinariesTest.groovy
  1. … 10 more files in changeset.
Wire sources from JvmLibrary into JvmLibraryBinary

    • -3
    • +25
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 2 more files in changeset.
Simplified implementation of source-aware model types

  1. … 7 more files in changeset.
Use the ‘jar’ task in the jvm-component plugin

- Moved the org.gradle.api.java.archive package from ‘plugins’ to ‘language-jvm’

- Moved org.gradle.api.tasks.bundling.Jar -> org.gradle.runtime.jvm.tasks

- Left the existing task type as a stub extending the new task type

- Replaced Zip with Jar in the ‘jvm-component’ plugin

    • -3
    • +3
    ./plugins/CreateTasksForJvmBinariesTest.groovy
  1. … 24 more files in changeset.
Continue to extract generic infrastructure out of ‘cpp’:

- Moved ‘source’ property from

- ProjectNativeComponent -> ProjectComponent

- ProjectNativeBinary -> ProjectBinary

- Moved SourceSetNotationParser into ‘language-base’

- Create a functional source set for every ProjectComponent instance created.

  1. … 20 more files in changeset.
Added 'jvmLibraries' container and renamed 'libraries' to 'softwareComponents'

    • -24
    • +5
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 9 more files in changeset.
Introduced single container for all software components

- Added SoftwareComponent, SoftwareComponentContainer and Application types

- native component types extend base types

- Replaced LibraryContainer with SoftwareComponentContainer (not yet filtered)

- Replaced custom ExecutableContainer with filtered view over 'components'

    • -2
    • +2
    ./plugins/CreateJvmBinariesTest.groovy
  1. … 20 more files in changeset.
Moved a few of the new 'legacy' plugin classes into the 'plugins' project

    • -53
    • +0
    ./ClassDirectoryBinaryNamingSchemeTest.groovy
    • -79
    • +0
    ./DefaultClassDirectoryBinaryTest.groovy
  1. … 17 more files in changeset.
Reorganised package structure of language-jvm project

    • -0
    • +53
    ./ClassDirectoryBinaryNamingSchemeTest.groovy
    • -0
    • +79
    ./DefaultClassDirectoryBinaryTest.groovy
    • -0
    • +39
    ./DefaultJvmLibraryBinaryTest.groovy
    • -0
    • +29
    ./DefaultJvmLibraryTest.groovy
    • -0
    • +71
    ./plugins/CreateJvmBinariesTest.groovy
    • -0
    • +65
    ./plugins/CreateTasksForJvmBinariesTest.groovy
  1. … 46 more files in changeset.