Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,080 for Constraint (0.14 sec)

  1. platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/dependency_constraints.adoc

    Otherwise, the constraint has no effect.
    Dependency constraints can also define a <<rich_versions.adoc#rich-version-constraints,rich version constraint>> and support <<rich_versions.adoc#sec:strict-version,strict versions>> to enforce a version even if it contradicts with the version defined by a transitive dependency (e.g. if the version needs to be downgraded).
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 29 17:38:38 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/DependencyResultSerializer.java

                return new DetachedResolvedGraphDependency(requested, selectedId, null, null, constraint, fromVariant, selectedVariantId);
            } else if (resultByte == SUCCESSFUL_NOTHING_SELECTED) {
                long selectedId = decoder.readSmallLong();
                return new DetachedResolvedGraphDependency(requested, selectedId, null, null, constraint, fromVariant, null);
            } else if (resultByte == FAILED) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/GradleVersionSpecTest.groovy

     */
    
    package org.gradle.integtests.tooling.fixture
    
    import org.gradle.util.GradleVersion
    import spock.lang.Specification
    
    class GradleVersionSpecTest extends Specification {
        def "greater-than-or-equal version constraint matches all versions with specified base version and later"() {
            def spec = new GradleVersionSpec().toSpec(">=1.0")
    
            expect:
            spec.isSatisfiedBy(GradleVersion.version("1.0"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/resources/org/gradle/kotlin/dsl/accessors/tasks/PrintAccessors-expected-output.txt

            add("api", constraintNotation)
    
    
        /**
         * Adds a dependency constraint to the 'api' configuration.
         *
         * @param constraintNotation the dependency constraint notation
         * @param block the block to use to configure the dependency constraint
         *
         * @return the added dependency constraint
         *
         * @see [DependencyConstraintHandler.add]
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue50755.go

    // The core type of M2 unifies with the type of m1
    // during function argument type inference.
    // M2's constraint is unnamed.
    func f1[K1 comparable, E1 any](m1 map[K1]E1) {}
    
    func f2[M2 map[string]int](m2 M2) {
    	f1(m2)
    }
    
    // The core type of M3 unifies with the type of m1
    // during function argument type inference.
    // M3's constraint is named.
    type Map3 map[string]int
    
    func f3[M3 Map3](m3 M3) {
    	f1(m3)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/testdata/tparams.go

    package p
    
    type t[a, b /* ERROR missing type constraint */ ] struct{}
    type t[a t, b t, c /* ERROR missing type constraint */ ] struct{}
    type t struct {
    	t [n]byte
    	t[a]
    	t[a, b]
    }
    type t interface {
    	t[a]
    	m /* ERROR method must have no type parameters */ [_ _, /* ERROR mixed */ _]()
    	t[a, b]
    }
    
    func f[ /* ERROR empty type parameter list */ ]()
    func f[a, b /* ERROR missing type constraint */ ]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 17:49:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/software/plugins-version-catalog/src/main/java/org/gradle/api/plugins/catalog/internal/DependenciesAwareVersionCatalogBuilder.java

            }
        }
    
        private void collectConstraints(DependencyConstraintSet allConstraints, Set<ModuleIdentifier> seen) {
            for (DependencyConstraint constraint : allConstraints) {
                String group = constraint.getGroup();
                String name = constraint.getName();
                ModuleIdentifier id = DefaultModuleIdentifier.newId(group, name);
                if (seen.add(id)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. src/go/printer/gobuild.go

    		insert = p.plusBuild[0]
    	}
    
    	var x constraint.Expr
    	switch len(p.goBuild) {
    	case 0:
    		// Synthesize //go:build expression from // +build lines.
    		for _, pos := range p.plusBuild {
    			y, err := constraint.Parse(p.commentTextAt(pos))
    			if err != nil {
    				x = nil
    				break
    			}
    			if x == nil {
    				x = y
    			} else {
    				x = &constraint.AndExpr{X: x, Y: y}
    			}
    		}
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/AbstractConflictResolverTest.groovy

            private MutableVersionConstraint constraint
            String repositoryName
    
            TestComponent(ModuleVersionIdentifier id) {
                this.id = id
                this.componentId = DefaultModuleComponentIdentifier.newId(id)
                this.constraint = new DefaultMutableVersionConstraint(id.version)
            }
    
            TestComponent strict() {
                constraint.strictly(id.version)
                this
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/artifacts/ExternalDependency.java

        /**
         * Configures the version constraint for this dependency.
         * @param configureAction the configuration action for the module version
         * @since 4.4
         */
        void version(Action<? super MutableVersionConstraint> configureAction);
    
        /**
         * Returns the version constraint to be used during selection.
         * @return the version constraint
         *
         * @since 4.4
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 06 18:52:15 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top