DefaultSwiftBinaryTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename source compatibility property and fix CI failures

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

  1. … 19 more files in changeset.
Added methods to the various native component types to allow implementation and API dependencies to be declared on the component instance instead of on the project's `dependencies` block, for consistency with the binaries.

  1. … 32 more files in changeset.
Added an (internal for now) `names` property to each C++ and Swift binary, which code that needs to construct names for the binary can use instead of reverse engineering this from the name of the binary. This allows for different binaries to use different schemes (which they already do but communicate this through special names).

  1. … 21 more files in changeset.
Add support for configuring Swift language support of a component

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

  1. … 32 more files in changeset.
Fixing tests

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

  1. … 31 more files in changeset.
Move module map generation to the consumer side

  1. … 24 more files in changeset.
Add support for debuggable release variant for Swift projects

  1. … 40 more files in changeset.
Wire together Swift modules at compile time using the `.swiftmodule` files rather than using the directories containing such files.

- The module file is exposed as the artifact shared between projects, rather than its parent directory.

- `SwiftBinary.compileImportPath` is replaced with `compileModules`.

- `SwiftComile.includes` is replaced with `modules`.

- Swift source is now correctly recompiled when an upstream module's API changes, as the module files are now treated as inputs to compilation. Previously they were not.

  1. … 11 more files in changeset.
Pushed handling of the `-enable-testing` flag for Swift compilation down to the base plugin.

  1. … 13 more files in changeset.
Add queryable properties to Swift binaries

  1. … 21 more files in changeset.
Native plugins use configurations.maybeCreate(name) instead of .create()

So that their application don't fail the build at configuration time

if a configuration with the same name happen to already exist.

  1. … 13 more files in changeset.
Changed the Swift plugins so that `Configuration` instances are created and wired up as the convention plugins register components and binaries, rather than assuming that exactly one variant of exactly one component is produced by a project and that the project has exactly one variant of exactly one test suite.

This change doesn't add any public mechanism for registering components or binaries, it simply removes some assumptions from the various plugins.

    • -0
    • +49
    ./DefaultSwiftBinaryTest.groovy
  1. … 19 more files in changeset.