launcher

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add a `add-plugin` CLI option

This commit introduces a new CLI flag, `--add-plugin`, which allows adding a plugin to a build

directly from the command line. The main advantage of this is that there's no need to have a

build file to be able to download an apply a plugin.

There are different use cases for this, but mainly, this is about _bootstraping_ plugins.

For example, the vert.x team could publish a plugin which generates a templated Gradle build.

All the user would have to do would be something like:

`gradle --add-plugin com.vertx.bootstrap:1.5`

and then the plugin would take care of generating a build.

Another use case is to add diagnostics (build scans is an example of this but there's already

a built-in mechanism, --scan, to do this).

This spike is _compatible with included builds_, meaning that you can bootstrap with

a plugin currently in development using `--include-build`.

    • -0
    • +2
    ./cli/action/BuildActionSerializer.java
  1. … 3 more files in changeset.
Revert "Revert "Merge branch 'release'""

This reverts commit 67b8bb8f18f854f45a2f5ec52cc9c8a25981e2f2.

This restores the merge attempt from earlier.

  1. … 65 more files in changeset.
Revert "Merge branch 'release'"

This reverts commit c7fdc455dcb9a8016af0ae9bc8b4c43fde1e2d06, reversing

changes made to 9f70d52b74dbc8c71381781b6c155474031b3cf8.

The changes need a wrapper as there are API changes. Reverting for now.

  1. … 65 more files in changeset.
Reduce the amount of logging that is periodically emitted by an idle daemon

  1. … 2 more files in changeset.
Fix regression when deprecating search upward APIs

    • -6
    • +4
    ./cli/action/BuildActionSerializer.java
  1. … 9 more files in changeset.
Fix regression when deprecating search upward APIs

    • -6
    • +4
    ./cli/action/BuildActionSerializer.java
  1. … 11 more files in changeset.
Fix regression when deprecating search upward APIs

    • -6
    • +4
    ./cli/action/BuildActionSerializer.java
  1. … 12 more files in changeset.
Fix regression when deprecating search upward APIs

    • -6
    • +4
    ./cli/action/BuildActionSerializer.java
  1. … 8 more files in changeset.
Fix regression when deprecating search upward APIs

    • -6
    • +4
    ./cli/action/BuildActionSerializer.java
  1. … 9 more files in changeset.
Revert "Merge pull request #10795 from gradle/lacasseio/deprecate-methods-on-start-parameter"

This reverts commit 40cb80789fed1f36e5501d9e8ac35fcb290c6b76, reversing

changes made to f6c349254943c709e33dd409729174f5adf9f6ce.

    • -6
    • +4
    ./cli/action/BuildActionSerializer.java
  1. … 9 more files in changeset.
Warn about deprecation of search upwards and similar APIs

    • -4
    • +6
    ./cli/action/BuildActionSerializer.java
  1. … 9 more files in changeset.
Run all tasks read from the instant execution cache in parallel. Each of the tasks is isolated from the project state and so can run in parallel.

  1. … 5 more files in changeset.
Run all tasks read from the instant execution cache in parallel. Each of the tasks is isolated from the project state and so can run in parallel.

  1. … 5 more files in changeset.
Run perf with loopback

  1. … 14 more files in changeset.
Remove getDebug/setDebug methods from JvmOptions in favor of getDebugOptions()

  1. … 4 more files in changeset.
Remove getDebug/setDebug methods from JvmOptions in favor of getDebugOptions()

  1. … 4 more files in changeset.
Remove getDebug/setDebug methods from JvmOptions in favor of getDebugOptions()

  1. … 4 more files in changeset.
Remove getDebug/setDebug methods from JvmOptions in favor of getDebugOptions()

  1. … 4 more files in changeset.
Use native-platform to detect whether stdin is attached to a console, rather than `System.console()`, as this can detect more cases, such as when Gradle is running from mintty on Windows (e.g. the cygwin terminal).

This allows the `init` task to prompt the user interactively when run from mintty on Windows.

Also consolidate some of the "is x connected to a console?" logic into a single place.

  1. … 12 more files in changeset.
Use native-platform to detect whether stdin is attached to a console, rather than `System.console()`, as this can detect more cases, such as when Gradle is running from mintty on Windows (e.g. the cygwin terminal).

This allows the `init` task to prompt the user interactively when run from mintty on Windows.

Also consolidate some of the "is x connected to a console?" logic into a single place.

  1. … 12 more files in changeset.
Use native-platform to detect whether stdin is attached to a console, rather than `System.console()`, as this can detect more cases, such as when Gradle is running from mintty on Windows (e.g. the cygwin terminal).

This allows the `init` task to prompt the user interactively when run from mintty on Windows.

Also consolidate some of the "is x connected to a console?" logic into a single place.

  1. … 11 more files in changeset.
Apply `Anonymous type can be replaced with lambda` inspection the whole project

    • -6
    • +3
    ./daemon/client/DaemonCancelForwarder.java
    • -27
    • +24
    ./daemon/client/InputForwarder.java
    • -19
    • +9
    ./daemon/registry/DaemonStopEvents.java
    • -60
    • +31
    ./daemon/registry/PersistentDaemonRegistry.java
    • -6
    • +1
    ./daemon/server/CompatibleDaemonExpirationStrategy.java
    • -8
    • +1
    ./daemon/server/DaemonRegistryUnavailableExpirationStrategy.java
    • -11
    • +8
    ./daemon/server/DaemonTcpServerConnector.java
    • -58
    • +61
    ./daemon/server/DefaultDaemonConnection.java
  1. … 652 more files in changeset.
Apply `'try finally' replaceable with 'try' with resources` inspection the whole project

    • -4
    • +1
    ./exec/BuildTreeScopeBuildActionExecuter.java
  1. … 51 more files in changeset.
Apply `Explicit type can be replaced with <>` inspection the whole project

    • -2
    • +2
    ./cli/DefaultCommandLineActionFactory.java
    • -4
    • +4
    ./cli/action/BuildActionSerializer.java
    • -1
    • +1
    ./daemon/client/DefaultDaemonStarter.java
    • -1
    • +1
    ./daemon/context/DefaultDaemonContext.java
  1. … 895 more files in changeset.
Print stacktrace

  1. … 1 more file in changeset.
Test build type id

  1. … 1 more file in changeset.
Try java.io.tmpdir

  1. … 1 more file in changeset.
Use G1GC as default for daemon on Java 8+

Use G1GC as default for daemon on Java 8+

TODO experiment

  1. … 2 more files in changeset.