- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for consumeValue (0.13 sec)
-
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/AttributePrecedenceSchemaAttributeMatcherTest.groovy
static class CompatibilityRule implements AttributeCompatibilityRule<String> { @Override void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == null) { details.compatible() } else { if (details.producerValue in ["best", "compatible"]) { details.compatible() } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 6K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/GradlePluginVariantsSupport.java
@Override public void execute(MultipleCandidatesDetails<GradlePluginApiVersion> details) { GradlePluginApiVersion consumerValue = details.getConsumerValue(); GradleVersion consumer = consumerValue == null ? GradleVersion.current() : GradleVersion.version(consumerValue.getName()); GradleVersion bestMatchVersion = GradleVersion.version("0.0"); GradlePluginApiVersion bestMatchAttribute = null;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 19:13:03 UTC 2024 - 3.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/PreferJavaRuntimeVariantTest.groovy
candidates.getConsumerValue() >> consumerValue candidates.getCandidateValues() >> candidateValues.collect { usage(it) } when: rule.execute(candidates) then: count * candidates.closestMatch({ it.name == Usage.JAVA_RUNTIME }) where: consumerValue | candidateValues | choosesRuntime
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/AttributeDescriberSelector.java
}); return sb.toString(); } @Override public String describeMissingAttribute(Attribute<?> attribute, Object consumerValue) { return attribute.getName() + " (required '" + consumerValue + "')"; } @Override public String describeExtraAttribute(Attribute<?> attribute, Object producerValue) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 29 22:29:19 UTC 2024 - 4.7K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/internal/attributes/AttributeDescriber.java
*/ ImmutableSet<Attribute<?>> getDescribableAttributes(); String describeAttributeSet(Map<Attribute<?>, ?> attributes); @Nullable String describeMissingAttribute(Attribute<?> attribute, Object consumerValue); String describeExtraAttribute(Attribute<?> attribute, Object producerValue);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 12:57:50 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/PlatformSupport.java
this.platform = regularPlatform; } @Override public void execute(MultipleCandidatesDetails<Category> details) { Category consumerValue = details.getConsumerValue(); if (consumerValue == null) { Set<Category> candidateValues = details.getCandidateValues(); if (candidateValues.contains(library)) { // default to library
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 5.1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/groovy/consumer/build.gradle
abstract class InstrumentedJarsRule implements AttributeCompatibilityRule<LibraryElements> { @Override void execute(CompatibilityCheckDetails<LibraryElements> details) { if (details.consumerValue.name == 'instrumented-jar' && details.producerValue.name == 'jar') { details.compatible() } } } // end::compatibility-rule[] tasks.register("showTestClasspath") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/kotlin/consumer/build.gradle.kts
// tag::compatibility-rule[] abstract class InstrumentedJarsRule: AttributeCompatibilityRule<LibraryElements> { override fun execute(details: CompatibilityCheckDetails<LibraryElements>) = details.run { if (consumerValue?.name == "instrumented-jar" && producerValue?.name == "jar") { compatible() } } } // end::compatibility-rule[] tasks.register("showTestClasspath") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced/kotlin/consumer/build.gradle.kts
// tag::compatibility-rule[] abstract class InstrumentedJarsRule: AttributeCompatibilityRule<LibraryElements> { override fun execute(details: CompatibilityCheckDetails<LibraryElements>) = details.run { if (consumerValue?.name == "instrumented-jar" && producerValue?.name == "jar") { compatible() } } } // end::compatibility-rule[] tasks.register("showTestClasspath") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced/groovy/consumer/build.gradle
abstract class InstrumentedJarsRule implements AttributeCompatibilityRule<LibraryElements> { @Override void execute(CompatibilityCheckDetails<LibraryElements> details) { if (details.consumerValue.name == 'instrumented-jar' && details.producerValue.name == 'jar') { details.compatible() } } } // end::compatibility-rule[] tasks.register("showTestClasspath") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.5K bytes - Viewed (0)