- Sort Score
- Result 10 results
- Languages All
Results 21 - 29 of 29 for consumeValue (0.47 sec)
-
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 16.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/DefaultAttributeMatcherTest.groovy
@Override void execute(MultipleCandidatesDetails details) { if (details.consumerValue == null) { details.closestMatch("compatible") } else if (details.consumerValue == "requested") { details.closestMatch("best") } } } schema.attribute(usage)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 24.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy
void execute(MultipleCandidatesDetails<Flavor> details) { if (details.consumerValue == null) { details.closestMatch(details.candidateValues.find { it.name == 'ONE' }) } else if (details.consumerValue.name == 'free') { details.closestMatch(details.candidateValues.find { it.name == 'TWO' }) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 20:50:18 UTC 2024 - 48.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy
static class EqualsValuesCompatibleRule implements AttributeCompatibilityRule<String> { @Override void execute(CompatibilityCheckDetails<String> details) { def requested = details.consumerValue def candidate = details.producerValue if (requested == candidate) { // simulate exact match details.compatible() } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:10:53 UTC 2024 - 25.3K bytes - Viewed (0) -
subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildConfigurationAttributesResolveIntegrationTest.groovy
class CompatRule implements AttributeCompatibilityRule<Thing> { void execute(CompatibilityCheckDetails<Thing> details) { if (details.consumerValue.name == 'paid' && details.producerValue.name == 'blue') { details.compatible() } else if (details.producerValue.name == 'red') { details.compatible()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 14:30:36 UTC 2024 - 33.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedArtifactsApiIntegrationTest.groovy
void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == 'preview' && details.producerValue == 'one') { details.compatible() } } } class TwoRule implements AttributeCompatibilityRule<String> { void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == 'preview' && details.producerValue == 'two') { details.compatible()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 29 22:29:19 UTC 2024 - 32.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedFilesApiIntegrationTest.groovy
void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == 'preview' && details.producerValue == 'free') { details.compatible() } } } class PaidRule implements AttributeCompatibilityRule<String> { void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == 'preview' && details.producerValue == 'paid') { details.compatible()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 17:10:15 UTC 2024 - 32.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIntegrationTest.groovy
@Override void execute(MultipleCandidatesDetails<String> details) { String consumerValue = details.getConsumerValue() Set<String> candidateValues = details.getCandidateValues() if (consumerValue == null) { // Default to preferred if (candidateValues.contains("preferred")) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 07 18:43:42 UTC 2023 - 100.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ArtifactSelectionIntegrationTest.groovy
buildFile << """ class BuildTypeCompatibilityRule implements AttributeCompatibilityRule<String> { void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == "debug" && details.producerValue == "profile") { details.compatible() } } } class FlavorSelectionRule implements AttributeDisambiguationRule<String> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 20:50:18 UTC 2024 - 34.5K bytes - Viewed (0)