Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for DeprecateAction (0.28 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/artifacts/ResolveException.java

         *
         * @deprecated This constructor will be removed in 9.0
         */
        @Deprecated
        public ResolveException(String message, Throwable cause) {
            super(message, cause);
    
            DeprecationLogger.deprecateAction("Directly instantiating a ResolveException")
                .withContext("Instantiating this exception is reserved for Gradle internal use only.")
                .willBeRemovedInGradle9()
                .undocumented()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:56:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationLogger.java

        /**
         * Output: ${action} has been deprecated.
         */
        @CheckReturnValue
        @SuppressWarnings("rawtypes")
        public static DeprecationMessageBuilder.DeprecateAction deprecateAction(final String action) {
            return new DeprecationMessageBuilder.DeprecateAction(action);
        }
    
        /**
         * Output: The ${property} property has been deprecated.
         */
        @CheckReturnValue
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/build/DefaultBuildLifecycleControllerFactory.java

                logFileDeprecationWarning(DeprecationLogger.deprecateAction("Specifying custom settings file location"));
            }
            @SuppressWarnings("deprecation")
            File customBuildFile = DeprecationLogger.whileDisabled(startParameter::getBuildFile);
            if (customBuildFile != null) {
                logFileDeprecationWarning(DeprecationLogger.deprecateAction("Specifying custom build file location"));
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/cache/internal/LegacyCacheCleanupEnablement.java

                Properties properties = GUtil.loadProperties(gradleProperties);
                String cleanup = properties.getProperty(CACHE_CLEANUP_PROPERTY);
                if (cleanup != null) {
                    DeprecationLogger.deprecateAction("Disabling Gradle user home cache cleanup with the '" + CACHE_CLEANUP_PROPERTY + "' property")
                        .willBeRemovedInGradle9()
                        .withUpgradeGuideSection(8, "disabling_user_home_cache_cleanup")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 09 22:09:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationMessageBuilder.java

                }
    
                return super.build();
            }
        }
    
        public static class DeprecateAction extends WithReplacement<String, DeprecateAction> {
            DeprecateAction(String subject) {
                super(subject);
            }
    
            @Override
            protected String createDefaultDeprecationIdDisplayName() {
                return subject;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DeprecatedFeaturesListener.kt

            }
        }
    
        private
        fun nagUserAbout(action: String, upgradeGuideMajorVersion: Int, upgradeGuideSection: String) {
            DeprecationLogger.deprecateAction(action)
                .willBecomeAnErrorInGradle9()
                .withUpgradeGuideSection(upgradeGuideMajorVersion, upgradeGuideSection)
                .nagUser()
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DefaultDependencyCollector.java

                ((AbstractModuleDependency) mutable).addMutationValidator(dep -> {
                    if (((PropertyInternal<?>) getDependencies()).isFinalized()) {
                        DeprecationLogger.deprecateAction("Mutating dependency " + dep + " after it has been finalized")
                            .willBecomeAnErrorInGradle9()
                            .withUpgradeGuideSection(8, "dependency_mutate_dependency_collector_after_finalize")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 00:10:09 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationContainer.java

            return configuration;
        }
    
        private static void validateNameIsAllowed(String name) {
            if (RESERVED_NAMES_FOR_DETACHED_CONFS.matcher(name).matches()) {
                DeprecationLogger.deprecateAction("Creating a configuration with a name that starts with 'detachedConfiguration'")
                        .withAdvice(String.format("Use a different name for the configuration '%s'.", name))
                        .willBeRemovedInGradle9()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 00:10:35 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DefaultDependencyHandler.java

        }
    
        @Deprecated
        @Override
        @SuppressWarnings("rawtypes")
        public Dependency module(Object notation, @Nullable Closure configureClosure) {
    
            DeprecationLogger.deprecateAction("Declaring client module dependencies")
                .replaceWith("component metadata rules")
                .willBeRemovedInGradle9()
                .withUpgradeGuideSection(8, "declaring_client_module_dependencies")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 08:14:09 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecationMessagesTest.groovy

        }
    
        def "logs discontinued invocation message"() {
            when:
            DeprecationLogger.deprecateAction("Some action").willBecomeAnErrorInGradle9().undocumented().nagUser()
    
            then:
            expectMessage "Some action has been deprecated. This will fail with an error in Gradle ${NEXT_GRADLE_VERSION}."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top