Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for withAdvice (0.41 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/artifacts/configurations/RoleBasedConfigurationCreationRequest.java

        default void warnAboutReservedName() {
            DeprecationLogger.deprecateBehaviour("The configuration " + getConfigurationName() + " was created explicitly. This configuration name is reserved for creation by Gradle.")
                .withAdvice(getDefaultReservedNameAdvice(getConfigurationName()))
                .willBeRemovedInGradle9()
                .withUpgradeGuideSection(8, "configurations_allowed_usage")
                .nagUser();
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 13:42:17 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecationLoggerTest.groovy

            events.size() == 1
            events[0].message.startsWith('nag')
        }
    
        def "deprecation message has next major version"() {
            when:
            DeprecationLogger.deprecate("foo")
                .withAdvice("bar.")
                .willBeRemovedInGradle9()
                .undocumented()
                .nagUser();
    
            then:
            def events = outputEventListener.events
            events.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:06:10 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/VariantIdentityUniquenessVerifier.java

                    "must have unique attributes, but " + configuration.getDisplayName() + " and " + collisions + " contain identical attribute sets.";
    
                return builder.withSummary(message)
                    .withAdvice(advice)
                    .withUserManual("upgrading_version_7", "unique_attribute_sets")
                    .build();
            }
        }
    
        /**
         * The identity of a variant -- its attributes and capabilities.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:59:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FileOrUriNotationConverter.java

         */
        private static String fallbackUrlDecode(String path) {
            DeprecationLogger.deprecateBehaviour("Passing invalid URIs to URI or File converting methods.")
                .withAdvice("Use a valid URL or a file path instead.")
                .willBecomeAnErrorInGradle9()
                .withUpgradeGuideSection(8, "deprecated_invalid_url_decoding")
                .nagUser();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/local/model/DefaultProjectComponentSelector.java

        }
    
        @SuppressWarnings("deprecation")
        @Override
        public String getBuildName() {
            DeprecationLogger.deprecateMethod(ProjectComponentSelector.class, "getBuildName()")
                .withAdvice("Use getBuildPath() to get a unique identifier for the build.")
                .willBeRemovedInGradle9()
                .withUpgradeGuideSection(8, "build_identifier_name_and_current_deprecation")
                .nagUser();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 01:47:36 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/initialization/DefaultSettingsLoader.java

            DeprecationLogger.deprecateBehaviour(String.format(template, projectPath, projectDir))
                .withAdvice("Make sure the project directory exists and can be written.")
                .willBecomeAnErrorInGradle9()
                .withUpgradeGuideSection(8, "deprecated_missing_project_directory")
                .nagUser();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 14 20:50:34 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/TestReport.java

         */
        @Deprecated
        public void reportOn(Object... results) {
            DeprecationLogger.deprecateMethod(TestReport.class, "reportOn(Object...)").replaceWith("testResults")
                    .withAdvice("invoke getTestResults().from(Object...) instead, passing references to Test#getBinaryResultsDirectory() as arguments.")
                    .willBeRemovedInGradle9()
                    .withDslReference(TestReport.class, "testResults")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractMinimalProvider.java

        }
    
        @Deprecated
        @Override
        public final Provider<T> forUseAtConfigurationTime() {
            DeprecationLogger.deprecateMethod(Provider.class, "forUseAtConfigurationTime")
                .withAdvice("Simply remove the call.")
                .willBeRemovedInGradle9()
                .withUpgradeGuideSection(7, "for_use_at_configuration_time_deprecation")
                .nagUser();
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/JavaToolchainQueryService.java

            if (!requestedSpec.isValid()) {
                throw DocumentedFailure.builder()
                    .withSummary("Using toolchain specifications without setting a language version is not supported.")
                    .withAdvice("Consider configuring the language version.")
                    .withUpgradeGuideSection(7, "invalid_toolchain_specification_deprecation")
                    .build();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 08:02:27 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/tasks/GradleBuild.java

            DeprecationLogger.deprecateProperty(GradleBuild.class, "buildFile")
                .withContext("Setting custom build file to select the root of the nested build has been deprecated.")
                .withAdvice("Please use 'dir' to specify the root of the nested build instead.")
                .replaceWith("dir")
                .willBeRemovedInGradle9()
                .withUpgradeGuideSection(8, "configuring_custom_build_layout")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top