Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for consumable (0.14 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/DeprecatedConfigurationUsageIntegrationTest.groovy

            'attributes(Action)'                           | 'dependencyScope' | "attributes { attribute(Attribute.of('foo', String), 'bar') }" || [ProperMethodUsage.CONSUMABLE, ProperMethodUsage.RESOLVABLE]
            'defaultDependencies(Action)'                  | 'consumable'      | 'defaultDependencies { }'                                      || [ProperMethodUsage.DECLARABLE_AGAINST]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 02:32:37 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationRoleUsageIntegrationTest.groovy

            expect:
            fails 'help'
            assertUsageLockedFailure('conf', type)
    
            where:
            createCode                     | type
            "consumable('conf')"           | 'Consumable'
            "consumable('conf') { }"       | 'Consumable'
            "resolvable('conf')"           | 'Resolvable'
            "resolvable('conf') { }"       | 'Resolvable'
            "dependencyScope('conf')"      | 'Dependency Scope'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 01:42:49 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationContainerTest.groovy

            }
        }
    
        def "creates consumable configurations"() {
            expect:
            verifyRole(ConfigurationRoles.CONSUMABLE, "a") {
                consumable("a")
            }
            verifyRole(ConfigurationRoles.CONSUMABLE, "b") {
                consumable("b", {})
            }
            verifyUnlocked(ConfigurationRoles.CONSUMABLE, "c") {
                consumableUnlocked("c")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:29:40 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/InspectsConfigurationReport.groovy

        }
    
        void doesNotHaveLegacyLegend() {
            outputDoesNotContain("(l) Legacy or deprecated configuration. Those are variants created for backwards compatibility which are both resolvable and consumable.")
        }
    
        void hasIncubatingLegend() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/LocalComponentGraphResolveStateFactoryTest.groovy

            def parent = dependencyScope("parent")
            consumable("conf", [parent])
    
            expect:
            state.candidatesForGraphVariantSelection.getVariantByConfigurationName("conf", Stub(ResolutionFailureHandler))
        }
    
        def "configuration has no dependencies or artifacts when none have been added"() {
            given:
            def parent = dependencyScope("parent")
            consumable("conf", [parent])
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ExclusiveVariantsIntegrationTest.groovy

                    into layout.buildDirectory.dir('sampleContent')
                }
                """.stripIndent()
    
            expect:
            fails("resolveSample")
            failure.assertHasDocumentedCause("Consumable configurations with identical capabilities within a project (other than the default configuration) must have unique attributes, but configuration ':sample1' and [configuration ':sample2'] contain identical attribute sets. " +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:34:52 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/artifacts/ConfigurationContainer.java

        /**
         * Registers a new {@link ConsumableConfiguration} with an immutable role. Consumable configurations
         * are meant to act as a variant in the context of Dependency Management and Publishing.
         *
         * @param name The name of the configuration to register.
         *
         * @return A provider which creates a new consumable configuration.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationContainer.java

        public NamedDomainObjectProvider<ConsumableConfiguration> consumable(String name) {
            assertMutable("consumable(String)");
            return registerConsumableConfiguration(name, Actions.doNothing());
        }
    
        @Override
        public NamedDomainObjectProvider<ConsumableConfiguration> consumable(String name, Action<? super ConsumableConfiguration> action) {
            assertMutable("consumable(String, Action)");
    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/integTest/groovy/org/gradle/integtests/internal/component/ResolutionFailureHandlerIntegrationTest.groovy

            and: "Helpful resolutions are provided"
            assertSuggestsReviewingAlgorithm()
            assertSuggestsViewingDocs("Creating consumable variants is explained in more detail at https://docs.gradle.org/${GradleVersion.current().version}/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs.")
        }
    
        // region Configuration requested by name
        def "demonstrate configuration not found selection failure"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 45K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/main/java/org/gradle/api/plugins/jvm/internal/JvmFeatureInternal.java

         */
        void withApi();
    
        /**
         * Gets the consumable configuration created by {@link #withJavadocJar()}.
         *
         * @return null if {@link #withJavadocJar()} has not been called.
         */
        @Nullable
        Configuration getJavadocElementsConfiguration();
    
        /**
         * Gets the consumable configuration created by {@link #withSourcesJar()}.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top