Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 59 for withAdvice (0.19 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/artifacts/configurations/NoContextRoleBasedConfigurationCreationRequest.java

            String msgDiscovery = getUsageDiscoveryMessage(conf);
            String msgExpectation = getUsageExpectationMessage();
    
            DeprecationLogger.deprecate(msgDiscovery + msgExpectation)
                .withAdvice(RoleBasedConfigurationCreationRequest.getDefaultReservedNameAdvice(configurationName))
                .willBecomeAnErrorInGradle9()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/precompile/PrecompiledSettingsScript.kt

        init {
            DeprecationLogger.deprecateBehaviour("Applying a Kotlin DSL precompiled script plugin published with Gradle versions < 6.0.")
                .withAdvice("Use a version of the plugin published with Gradle >= 6.0.")
                .willBeRemovedInGradle9()
                .withUpgradeGuideSection(8, "kotlin_dsl_precompiled_gradle_lt_6")
                .nagUser()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/JavaExecutableUtils.java

                        .withContext("Resolving relative file paths might yield unexpected results, there is no single clear location it would make sense to resolve against.")
                        .withAdvice("Configure an absolute path to a Java executable instead.")
                        .willBecomeAnErrorInGradle9()
                        .withUpgradeGuideSection(8, "no_relative_paths_for_java_executables")
                        .nagUser();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultProjectDependency.java

        @Override
        @Deprecated
        public Set<File> resolve(boolean transitive) {
    
            DeprecationLogger.deprecate("Directly resolving the files of project dependency '" + getIdentityPath() + "'")
                .withAdvice("Add the dependency to a resolvable configuration and resolve the configuration.")
                .willBecomeAnErrorInGradle9()
                .withUpgradeGuideSection(8, "deprecate_self_resolving_dependency")
                .nagUser();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 13:59:13 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/DeprecatedUsageBuildOperationProgressIntegrationTest.groovy

                org.gradle.internal.deprecation.DeprecationLogger.deprecateBuildInvocationFeature('Some invocation feature').withAdvice("Don't do custom invocation.").willBeRemovedInGradle9().undocumented().nagUser()
                org.gradle.internal.deprecation.DeprecationLogger.deprecateIndirectUsage('Some indirect deprecation').withAdvice('Some advice.').willBeRemovedInGradle9().undocumented().nagUser()
    
                task t(type:SomeTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 15:16:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/precompile/PrecompiledProjectScript.kt

        init {
            DeprecationLogger.deprecateBehaviour("Applying a Kotlin DSL precompiled script plugin published with Gradle versions < 6.0.")
                .withAdvice("Use a version of the plugin published with Gradle >= 6.0.")
                .willBeRemovedInGradle9()
                .withUpgradeGuideSection(8, "kotlin_dsl_precompiled_gradle_lt_6")
                .nagUser()
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DocumentedFailure.java

            public Builder withContext(String contextualAdvice) {
                this.contextualAdvice = contextualAdvice;
                return this;
            }
    
            @CheckReturnValue
            public Builder withAdvice(String advice) {
                this.advice = advice;
                return this;
            }
    
            @Override
            @CheckReturnValue
            public Builder withDocumentation(DocLink documentation) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 14:27:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/TaskExecution.java

                    .withAdvice("Declare the task as untracked by using Task.doNotTrackState().");
            } else if (isDestinationDir && task instanceof Sync) {
                builder.withSummary("Cannot access a file in the destination directory.")
                    .withContext("Syncing to a directory which contains unreadable content is not supported.")
                    .withAdvice("Use a Copy task with Task.doNotTrackState() instead.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/internal/DefaultJavaFeatureSpec.java

            }
    
            if (SourceSet.isMain(sourceSet)) {
                DeprecationLogger.deprecateBehaviour(String.format("The '%s' feature was created using the main source set.", name))
                    .withAdvice("The main source set is reserved for production code and should not be used for features. Use another source set instead.")
                    .willBecomeAnErrorInGradle9()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Dec 02 01:52:06 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. 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)
Back to top