Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 3,561 for succeeds (0.2 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/AbstractLockingIntegrationTest.groovy

            resolve = new ResolveTestFixture(buildFile, "lockedConf")
            resolve.prepare()
            resolve.addDefaultVariantDerivationStrategy()
        }
    
        abstract LockMode lockMode()
    
        def 'succeeds when lock file does not conflict from declared versions (unique: #unique)'() {
            mavenRepo.module('org', 'foo', '1.0').publish()
            mavenRepo.module('org', 'foo', '1.1').publish()
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/jvm/component/internal/DefaultJvmSoftwareComponentIntegrationTest.groovy

                    assert components.thing instanceof DefaultJvmSoftwareComponent
                    assert components.comp instanceof DefaultJvmSoftwareComponent
                }
            """
    
            expect:
            succeeds "verify"
        }
    
        def "can instantiate component instances in Kotlin DSL"() {
            given:
            buildKotlinFile << """
                ${factoryRegistrationKotlin()}
    
                components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:18:02 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

            expect:
            succeeds()
        }
    
        def canAddExtensionsToProject() {
    
            buildFile '''
    extensions.test = new ExtensionBean()
    
    assert test instanceof ExtensionBean
    test { it ->
        assert it instanceof ExtensionBean
        assert it == project.test
    }
    class ExtensionBean {
    }
    '''
    
            expect:
            succeeds()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingIntegrationTest.groovy

            LockfileFixture.createCustomLockfile(lockFile,'lockedConf', ['org:foo:1.0', 'org:bar:1.0'])
    
            when:
            succeeds 'dependencies'
    
            then:
            outputContains('org:foo:[1.0,2.0) -> 1.0')
            outputContains('org:bar:[1.0,2.0) -> 1.0')
    
            when:
            succeeds 'dependencies', '--update-locks', 'org:foo', '--refresh-dependencies'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 30 12:42:25 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/groovy/scripts/GroovyCompileScriptBuildOperationIntegrationTest.groovy

                BODY
            ]
    
            when: // already compiled build scripts
            succeeds "help", '-I', 'init.gradle'
    
            then:
            operations.all(CompileScriptBuildOperationType).size() == 0
    
            when: // changing cached build script
            buildFile << "println 'appending build logic'"
            succeeds "help", '-I', 'init.gradle'
            scriptCompiles = operations.all(CompileScriptBuildOperationType)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/initialization/EvaluateSettingsBuildOperationIntegrationTest.groovy

        final buildOperations = new BuildOperationsFixture(executer, temporaryFolder)
    
        def "settings details are exposed"() {
            settingsFile << ""
    
            when:
            succeeds('help')
    
            then:
            verifySettings(operation(), settingsFile)
            operation().details.buildPath == ":"
        }
    
        def "settings set via cmdline flag are exposed"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/MultiProjectDependencyLockingIntegrationTest.groovy

        }
    }
    """
            firstLockFileFixture.createLockfile('compileClasspath', ['org:foo:1.0'], false)
    
            when:
            succeeds ':first:dependencyInsight', '--configuration', 'compileClasspath', '--dependency', 'foo'
    
            then:
            outputContains('org:foo:1.0')
    
            when:
            succeeds ':second:dependencyInsight', '--configuration', 'compileClasspath', '--dependency', 'foo'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsDslIntegrationSpec.groovy

            """
    
            then:
            succeeds('help')
        }
    
        def "can dynamically access properties"() {
    
            given:
            file("gradle.properties") << "someProjectProperty=true"
            settingsFile << """
                if (properties.someProjectProperty == 'true') {
                    println('signal')
                }
            """
    
            when:
            succeeds('help')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:15:27 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryCompilationIntegrationTest.groovy

                        java {
                            'Tool.java'('public interface Tool { void execute(); }')
                        }
                    }
                }
            }
    
            when:
            succeeds 'a:compileJava'
    
            then:
            executedAndNotSkipped ':b:compileJava'
            packagingTasks(compileClasspathPackaging)
    
            where:
            compileClasspathPackaging | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 13:02:41 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryDependenciesIntegrationTest.groovy

            hello(NativeLibrarySpec)
            main(NativeExecutableSpec) {
                sources {
                    cpp.lib ${notation}
                }
            }
        }
    }
    """
    
            when:
            succeeds "installMainExecutable"
    
            then:
            installation("build/install/main").exec().out == app.englishOutput
    
            where:
            notationName | notation
            "direct"     | "\$.components.hello"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top