Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for LockfileFixture (0.27 sec)

  1. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/locking/LockfileFixture.groovy

     * limitations under the License.
     */
    
    package org.gradle.integtests.resolve.locking
    
    import org.gradle.internal.locking.LockFileReaderWriter
    import org.gradle.test.fixtures.file.TestFile
    
    class LockfileFixture {
    
        TestFile testDirectory
    
        def createBuildscriptLockfile(String configuration, List<String> modules, boolean unique = true) {
            internalCreateLockfile(configuration, modules, unique, true)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/AbstractLockingIntegrationTest.groovy

    }
    """
    
    
            lockfileFixture.createLockfile('lockedConf', ["org:foo:1.0"], false)
            lockfileFixture.createLockfile('otherLockedConf', ["org:foo:1.1"], false)
    
            when:
            succeeds 'dependencies', '--write-locks'
    
            then:
            lockfileFixture.verifyLockfile([lockedConf: ['org:foo:1.1'], otherLockedConf: ['org:foo:2.0']])
            lockfileFixture.assertLegacyLockfileMissing('lockedConf')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/LockingInteractionsIntegrationTest.groovy

    import org.gradle.integtests.fixtures.AbstractHttpDependencyResolutionTest
    
    class LockingInteractionsIntegrationTest extends AbstractHttpDependencyResolutionTest {
    
        def lockfileFixture = new LockfileFixture(testDirectory: testDirectory)
    
        def setup() {
            settingsFile << "rootProject.name = 'locking-interactions'"
        }
    
        def 'locking constraints do not bring back excluded modules'() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/UsingLockingOnNonProjectConfigurationsIntegrationTest.groovy

    import org.junit.Rule
    
    class UsingLockingOnNonProjectConfigurationsIntegrationTest extends AbstractDependencyResolutionTest {
    
        def pluginBuilder = new PluginBuilder(file("plugin"))
        def lockfileFixture = new LockfileFixture(testDirectory: testDirectory)
    
        @Rule
        MavenHttpPluginRepository pluginRepo = MavenHttpPluginRepository.asGradlePluginPortal(executer, mavenRepo)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/MixedDependencyLockingIntegrationTest.groovy

    import org.gradle.integtests.fixtures.AbstractDependencyResolutionTest
    
    class MixedDependencyLockingIntegrationTest extends AbstractDependencyResolutionTest {
    
        def lockfileFixture = new LockfileFixture(testDirectory: testDirectory)
    
        def setup() {
            settingsFile << "rootProject.name = 'mixedDepLock'"
        }
    
        def 'can resolve locked and unlocked configurations'() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingIntegrationTest.groovy

        }
    }
    configurations {
        unlockedConf
    }
    
    dependencies {
        unlockedConf 'org:foo:1.+'
    }
    """
    
            when:
            succeeds 'dependencies'
    
            then:
            lockfileFixture.expectLockStateMissing('unlockedConf')
        }
    
        def "version selector combinations are resolved equally for locked and unlocked configurations"() {
            ['foo', 'foz', 'bar', 'baz'].each { artifact ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 30 12:42:25 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/AbstractValidatingLockingIntegrationTest.groovy

        }
    }
    configurations {
        lockedConf
    }
    
    dependencies {
        lockedConf 'org:foo:1.+'
        lockedConf('org:foo') {
            version { strictly '1.1' }
        }
    }
    """
    
            lockfileFixture.createLockfile('lockedConf',['org:foo:1.0'], unique)
    
            when:
            fails 'checkDeps'
    
            then:
            failure.assertHasCause """Cannot find a version of 'org:foo' that satisfies the version constraints:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingLenientModeIntegrationTest.groovy

        }
    }
    configurations {
        lockedConf
    }
    
    dependencies {
        lockedConf 'org:foo:1.+'
        lockedConf('org:foo') {
            version { strictly '1.1' }
        }
    }
    """
    
            lockfileFixture.createLockfile('lockedConf', ['org:foo:1.0'], unique)
    
            when:
            succeeds 'checkDeps'
    
            then:
            resolve.expectDefaultConfiguration('runtime')
            resolve.expectGraph {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingStrictModeIntegrationTest.groovy

            failure.assertHasResolution("For more information on generating lock state")
            lockfileFixture.expectLockStateMissing('unlockedConf')
        }
    
        def 'fails if update done without lockfile present'() {
            mavenRepo.module('org', 'foo', '1.0').publish()
            mavenRepo.module('org', 'foo', '1.1').publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/MultiProjectDependencyLockingIntegrationTest.groovy

    import org.gradle.integtests.fixtures.AbstractDependencyResolutionTest
    
    class MultiProjectDependencyLockingIntegrationTest  extends AbstractDependencyResolutionTest {
    
        def firstLockFileFixture = new LockfileFixture(testDirectory: testDirectory.file('first'))
    
        def setup() {
            createDirs("first", "second")
            settingsFile << """
    rootProject.name = 'multiDepLock'
    include 'first', 'second'
    """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top