Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 737 for buildFile (0.67 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. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

    class RuleTaskBridgingIntegrationTest extends AbstractIntegrationSpec implements WithRuleBasedTasks {
    
        def "can view task container as various view types"() {
            given:
            buildFile << '''
                class MyPlugin extends RuleSource {
                    @Mutate
                    void applyMessages(ModelMap<Task> tasks) {
                        println "as map: $tasks"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K 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/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)
  5. 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)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskFailureIntegrationTest.groovy

            failure.assertHasCause("Task with name 'task1' not found")
        }
    
        def "fails to create custom task if constructor arguments are missing"() {
            given:
            buildFile << CUSTOM_TASK_WITH_CONSTRUCTOR_ARGS
            buildFile << "tasks.register('myTask', CustomTask, 'hello')"
    
            when:
            fails 'myTask'
    
            then:
            failure.assertHasCause("Could not create task ':myTask'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r30/ToolingApiEclipseModelClasspathContainerCrossVersionSpec.groovy

            when:
            EclipseProject project = loadToolingModel(EclipseProject)
    
            then:
            project.classpathContainers.isEmpty()
        }
    
        def "Project has some classpath containers"() {
            buildFile <<
            """apply plugin: 'java'
               apply plugin: 'eclipse'
               eclipse {
                   classpath {
                       containers 'containerPath1', 'containerPath2'
                   }
               }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/AbstractRichVersionConstraintsIntegrationTest.groovy

        void "can declare a strict dependency onto an external component"() {
            given:
            repository {
                'org:foo:1.0'()
            }
    
            buildFile << """
                dependencies {
                    conf('org:foo:1.0!!')
                }
            """
    
            when:
            repositoryInteractions {
                'org:foo:1.0' {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 15:37:32 UTC 2024
    - 30.9K bytes
    - Viewed (0)
Back to top