gradle

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
make inner classes static where possible

Signed-off-by: Steven Crockett <crockett.j.steven@gmail.com>

  1. … 42 more files in changeset.
Apply `Inner class may be 'static'` inspection the whole project

  1. … 41 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 890 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 897 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Add missing @Override to all modules

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +1
    ./cli/AbstractCommandLineConverter.java
    • -0
    • +2
    ./cli/AbstractPropertiesCommandLineConverter.java
  1. … 1003 more files in changeset.
Refine deprecation mechanism (#3285)

Refine deprecation mechanism

Fix https://github.com/gradle/gradle/issues/3228

  1. … 34 more files in changeset.
Represent Gradle properties and corresponding command line option as data structure (#2784)

  1. … 48 more files in changeset.
Fix deprecation warning messages

The writer wasn't flushed so sometimes deprecation messages did not show

up in stdout.

+review REVIEW-5434

  1. … 1 more file in changeset.
Retain removed options from the ParsedCommandLine

- Add check in DefaultCommandLineConverter to see if the parallel-threads

option was removed. If it has been removed, we need to enable parallel

project execution.

This change makes these command lines equivalent:

--parallel --max-workers=5

--parallel-threads=3 --max-workers=5

--max-workers=3 --parallel-threads=5

--max-workers=5 --parallel

They all enable parallel project execution and adjusts the number of

workers to 5.

+review REVIEW-5434

  1. … 3 more files in changeset.
Removed the CommandLineConverter.convert() overloads that create the a parsed object, leaving the overloads that just mutate the supplied object based on the command-line args.

    • -12
    • +0
    ./cli/AbstractCommandLineConverter.java
    • -5
    • +0
    ./cli/AbstractPropertiesCommandLineConverter.java
  1. … 13 more files in changeset.
Restrictions on option names.

Only alphanumeric characters, '-', '_' are supported in option names now.

'?' is added as an exception for help option.

  1. … 1 more file in changeset.
Use Pattern.DOTALL to ensure that newlines are handled in options.

  1. … 3 more files in changeset.
Added type param.

More cleanup on Help for Tasks based on reviews

- REVIEW-3460 add support for enums

- REVIEW-3459 move knowledge from CommandLineTaskConfigurer to CommandLineOptionDescriptor

- knowledge bout option parameters

- how to apply option on tasks

- REVIEW-3459 - dont support '--flag true' just use '--flag' instead

  1. … 10 more files in changeset.
Remove @author tags and names from source code.

- Added checkstyle check for @author

- Added not to CONTRIBUTING.md saying that we don't use names in the codebase

    • -2
    • +0
    ./cli/CommandLineArgumentException.java
  1. … 1212 more files in changeset.
Removed (unused) feature that maps a command line option to a command, and added the ability to specify a group of mutually-exclusive command-line options.

  1. … 1 more file in changeset.
REVIEW-485 Removed explicit validation of short options for the task command line options. We'll have a much better solution soon.

    • -27
    • +0
    ./cli/UnsupportedShortOptionException.java
  1. … 4 more files in changeset.
REVIEW-112 Moved the responsibility of validating cmd line options to the CommandLineParser.

    • -0
    • +27
    ./cli/UnsupportedShortOptionException.java
  1. … 6 more files in changeset.
Dependency insight report. Added very simple plugin and a way to configure the task from the command line.

1. Refactored some of the existing code that deals with automatic conversion of command line parameters into task properties (@CommandLineOption annotation).

2. Some tidy-up is pending.

  1. … 10 more files in changeset.
Renamed experimental to incubating in the CLI parser.

  1. … 3 more files in changeset.
GRADLE-2226, LongRunningOperation.withArguments() not working.

The arguments parsing now happens with allowUnknownOptions(). Also the verboseLogging settings is consumed differently - we always parse the arguments regardless of the verboseLogging. This way we can avoid such bug in future. The verbose logging parameter only kicks in if the log level is not provided by the arguments. Minor tweaks to the integration test.

(cherry picked from commit 4c9ea8e)

  1. … 5 more files in changeset.
GRADLE-2226, LongRunningOperation.withArguments() not working. The arguments parsing now happens with allowUnknownOptions(). Also the verboseLogging settings is consumed differently - we always parse the arguments regardless of the verboseLogging. This way we can avoid such bug in future. The verbose logging parameter only kicks in if the log level is not provided by the arguments. Minor tweaks to the integration test.

  1. … 5 more files in changeset.
These don't need to be Serializable any more.

GRADLE-1774 add more test coverage - extracted tests covering AbstractPropertiesCommandLineConverter functionality to AbstractPropertiesCommandLineConverterTest - added explicit test for AbstractPropertiesCommandLineConverter#configure(CommandLineParser)

    • -1
    • +3
    ./cli/AbstractPropertiesCommandLineConverter.java
  1. … 3 more files in changeset.
GRADLE-1774 fixed project properties with equals - introduced AbstractPropertiesCommandLineConverter for handling property based cmdline options. - extracted logic from SystemPropertiesCommandLineConverter to AbstractPropertiesCommandLineConverter - introduced ProjectPropertiesCommandLineConverter for projectProperties

    • -0
    • +46
    ./cli/AbstractPropertiesCommandLineConverter.java
    • -0
    • +35
    ./cli/ProjectPropertiesCommandLineConverter.java
    • -20
    • +10
    ./cli/SystemPropertiesCommandLineConverter.java
  1. … 2 more files in changeset.
- Introduced WrapperConfiguration, to package up the wrapper meta-data. - Tweaked how SystemPropertiesCommandLineConverter is used in the wrapper.

    • -13
    • +2
    ./cli/AbstractCommandLineConverter.java
    • -20
    • +0
    ./cli/CommandLineParserFactory.java
  1. … 7 more files in changeset.