Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,796 for buildFile (0.14 sec)

  1. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            goodCode()
            buildFile << """
            pmdMain {
                rulesMinimumPriority = 11
            }
    """
            expect:
            fails("check")
            failure.assertHasCause("Invalid rulesMinimumPriority '11'.  Valid range 1 (highest) to 5 (lowest).")
        }
    
        def "can configure reporting"() {
            goodCode()
            buildFile << """
                pmdMain {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy

            given:
            buildFile << '''
                verify {
                    prop.put('key', project.provider { null })
                    expected = null
                }
                '''.stripIndent()
    
            expect:
            succeeds('verify')
        }
    
        def "has no value when providing a null map to a map property"() {
            given:
            buildFile << '''
                verify {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 15:28:53 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationDefaultsIntegrationTest.groovy

        ResolveTestFixture resolve = new ResolveTestFixture(buildFile, "conf")
    
        def setup() {
            mavenRepo.module("org", "default-dependency").publish()
            mavenRepo.module("org", "explicit-dependency").publish()
            settingsFile << """
                rootProject.name = 'test'
            """
            buildFile << """
    configurations {
        conf
        child.extendsFrom conf
    }
    repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:18:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenBomResolveIntegrationTest.groovy

        def resolve = new ResolveTestFixture(buildFile, "compile").expectDefaultConfiguration('runtime')
        MavenModule bom
        MavenModule moduleA
    
        def setup() {
            resolve.prepare()
            resolve.addDefaultVariantDerivationStrategy()
            settingsFile << "rootProject.name = 'testproject'"
            buildFile << """
                repositories { maven { url "${mavenHttpRepo.uri}" } }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaProjectIntegrationTest.groovy

    @SuppressWarnings('IntegrationTestFixtures')
    class JavaProjectIntegrationTest extends AbstractIntegrationTest {
        @Test
        void compilationFailureBreaksBuild() {
            TestFile buildFile = testFile("build.gradle")
            buildFile.writelns("apply plugin: 'java'")
            testFile("src/main/java/org/gradle/broken.java") << "broken"
    
            ExecutionFailure failure = executer.withTasks("build").runWithFailure()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/groovy/url-verifier-plugin/src/functionalTest/groovy/org/myorg/UrlVerifierPluginFunctionalTest.groovy

        @TempDir File testProjectDir
        File buildFile
    
        def setup() {
            buildFile = new File(testProjectDir, 'build.gradle')
            buildFile << """
                plugins {
                    id 'org.myorg.url-verifier'
                }
            """
        }
    
        def "can successfully configure URL through extension and verify it"() {
            buildFile << """
                verification {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  7. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/XcodeSwiftExternalSourceDependenciesIntegrationTest.groovy

            singleProjectBuild("greeter") {
                buildFile << """
                    apply plugin: 'swift-library'
                """
                fixture.library.writeToProject(it)
            }
            def commit = repo.commit('initial commit')
    
            and:
            singleProjectBuild("app") {
                buildFile << """
                    apply plugin: 'swift-application'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MultiProjectJvmApplicationInitIntegrationTest.groovy

            then:
            targetDir.file(settingsFile).exists()
            !targetDir.file(buildFile).exists()
    
            def buildLogicDir = targetDir.file(incubating ? "build-logic" : "buildSrc")
            assertBuildLogicSources(dsl, language, buildLogicDir, settingsFile, buildFile, javaMajorVersion)
    
            assertApplicationProjectsSources(buildFile, language, "org.example.", ext)
    
            when:
            succeeds "build"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/kotlin/url-verifier-plugin/src/functionalTest/groovy/org/myorg/UrlVerifierPluginFunctionalTest.groovy

        @TempDir File testProjectDir
        File buildFile
    
        def setup() {
            buildFile = new File(testProjectDir, 'build.gradle')
            buildFile << """
                plugins {
                    id 'org.myorg.url-verifier'
                }
            """
        }
    
        def "can successfully configure URL through extension and verify it"() {
            buildFile << """
                verification {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            buildFile """
                interface Thing extends Named { }
    
                def t = objects.newInstance(Thing, "thingName")
                assert t.name == "thingName"
    """
    
            expect:
            succeeds()
        }
    
        def "plugin can create instance of abstract class with name property"() {
            buildFile """
                abstract class Thing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top