- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 59 for ComponentMetadataRule (0.25 sec)
-
platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-selectionRule/kotlin/build.gradle.kts
repositories { ivy { url = uri(layout.projectDirectory.dir("repo")) } } // Set up the status scheme so that "experimental" is a valid status for "org.sample" artifacts class StatusRule : ComponentMetadataRule { override fun execute(componentMetadataContext: ComponentMetadataContext) { val details = componentMetadataContext.details if (details.id.group == "org.sample") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 09 01:09:32 UTC 2024 - 4.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenComponentMetadataRulesStatusIntegrationTest.groovy
def c = repo.module('group2', 'projectC', '12-SNAPSHOT').publish().allowAll() and: buildFile.text = """ $repoDeclaration configurations { compile } class StatusRule implements ComponentMetadataRule { public void execute(ComponentMetadataContext context) { assert context.details.status == context.details.id.name == "projectA" ? "release" : "integration"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/capabilities/CapabilitiesUseCasesIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 18.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyJvmLibraryArtifactResolutionIntegrationTest.groovy
fixture.requestingSource() .expectSourceArtifactNotFound("my-sources") .prepare() buildFile << """ class ChangingRule implements ComponentMetadataRule { @Override void execute(ComponentMetadataContext context) { context.details.changing = true } } dependencies { components { all(ChangingRule) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 14.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/DependenciesAttributesIntegrationTest.groovy
} 'org:directB:1.0'() } buildFile << """ // this is actually the rules that we want to test class ModifyDependencyRule implements ComponentMetadataRule { Attribute attribute @javax.inject.Inject ModifyDependencyRule(Attribute attribute) { this.attribute = attribute }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 13 02:13:52 UTC 2024 - 49.5K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/component_metadata_rules.adoc
Gradle enforces isolation of instances of `ComponentMetadataRule`. This means that all parameters must be `Serializable` or known Gradle types that can be isolated. In addition, Gradle services can be injected into your `ComponentMetadataRule`.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:10:53 UTC 2024 - 33.2K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts
} } val SourceSet.allGroovy: SourceDirectorySet get() = the<GroovySourceDirectorySet>() abstract class CodeNarcRule @Inject constructor( private val groovyVersion: String ) : ComponentMetadataRule { override fun execute(context: ComponentMetadataContext) { context.details.allVariants { withDependencies { val isAtLeastGroovy4 = VersionNumber.parse(groovyVersion).major >= 4
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:36 UTC 2024 - 6.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/MetadataArtifactResolveTestFixture.groovy
configurations { $config } dependencies { $config '$id.displayName' } """ } void configureChangingModule() { buildFile << """ class ChangingRule implements ComponentMetadataRule { @Override void execute(ComponentMetadataContext context) { context.details.changing = true } } dependencies { components { all(ChangingRule) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/constraints/DependencyConstraintsIntegrationTest.groovy
withModule("org:indirect", PickPlatformRule::class.java) }""") } section """ class PickPlatformRule implements ComponentMetadataRule { ObjectFactory objects @javax.inject.Inject PickPlatformRule(ObjectFactory objects) { this.objects = objects }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 28.8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslRegressionsTest.kt
dependencies { components.all(FixOksocialOutput::class.java) implementation("com.baulsupp:oksocial-output:4.19.0") } open class FixOksocialOutput: ComponentMetadataRule { override fun execute(context: ComponentMetadataContext) = context.details.run { if (id.group == "com.baulsupp" && id.name == "oksocial-output") { allVariants {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 07:57:29 UTC 2024 - 8.3K bytes - Viewed (0)