Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,796 for buildFile (0.31 sec)

  1. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaMultiModuleIntegrationTest.groovy

            settingsFile << """
                rootProject.name = "master"
                include 'api'
                include 'shared:api', 'shared:model'
                include 'util'
            """
    
            def buildFile = file("build.gradle")
            buildFile << """
                allprojects {
                    apply plugin: 'java'
                    apply plugin: 'idea'
                }
    
                project(':api') {
                    dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 19K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginIntegrationTest.groovy

            succeeds(":child:grand:codenarcMain")
            report(file("child/grand"), "main").exists()
        }
    
        private void writeBuildFile() {
            writeBuildFile(buildFile)
        }
    
        private static void writeBuildFile(File buildFile) {
            buildFile << """
                apply plugin: "groovy"
                apply plugin: "codenarc"
    
                ${mavenCentralRepository()}
    
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 08:01:57 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/JavaGradlePluginLegacyPluginPublishingIntegrationTest.groovy

            plugin('foo', 'com.example.foo')
            publishToIvy()
            publishToMaven()
            buildFile << """
                afterEvaluate {
                    assert publishing.publications.size() == 4
                }
            """
    
            expect:
            succeeds 'help'
        }
        def publishToMaven() {
            buildFile << """
                apply plugin: 'maven-publish'
                publishing {
                    repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/FinalizerTaskIntegrationTest.groovy

    import static org.gradle.integtests.fixtures.executer.TaskOrderSpecs.exact
    
    class FinalizerTaskIntegrationTest extends AbstractIntegrationSpec {
        def setup() {
            buildFile '''
                class BreakingTask extends DefaultTask {
                    @TaskAction
                    def run() {}
                }
    
                tasks.withType(BreakingTask).configureEach { t ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsVisibilityIntegrationTest.groovy

            when:
            buildFile << applyGroovyPlugin()
            buildFile << gradleApiDependency()
    
            file('src/main/groovy/MyPlugin.groovy') << customGroovyPlugin()
    
            then:
            succeeds 'build'
        }
    
        def "can use ProjectBuilder to unit test a plugin"() {
            when:
            buildFile << testablePluginProject()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioIncrementalIntegrationTest.groovy

            skipped ":appVisualStudioSolution"
            executedAndNotSkipped getComponentTasks("app")
    
            when:
            buildFile.text = buildFile.text.replace "projectFile.withXml { }", """
                        projectFile.withXml { xml ->
                            Node globals = xml.asNode().PropertyGroup.find({it.'@Label' == 'Globals'}) as Node
                            globals.appendNode("ExtraInfo", "Some extra info")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            buildFile << defineCacheableTask()
            withBuildCache()
            succeeds "cacheable", "--info"
    
            expect:
            outputContains "Using local directory build cache for the root build (location = ${cacheDir}, removeUnusedEntriesAfter = 7 days)."
        }
    
        def "cache entry contains expected contents"() {
            buildFile << defineCacheableTask()
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentIntegrationTest.groovy

                    String getManagedData()
                    void setManagedData(String managedData)
                }
            """
    
            buildFile << declareManagedExtendingUnmanaged()
    
            buildFile << """
                class MutateComponentRules extends RuleSource {
                    @Mutate
                    void mutateUnmanaged(ModelMap<UnmanagedComponentSpec> components) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

            buildFile << """
                verify {
                    prop.add(null)
                }
            """
            expect:
            def failure = fails("verify")
            failure.assertHasCause("Cannot add a null element to a property of type List.")
        }
    
        def "has no value when providing null to a list property"() {
            buildFile << """
                verify {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompilerIntegrationSpec.groovy

        def setup() {
            executer.withArguments("-i")
            buildFile << """
                plugins {
                    id("java-library")
                }
                tasks.withType(JavaCompile) {
                    options.compilerArgs << '-Xlint:all,-options' << '-Werror'
                }
            """
            buildFile << compilerConfiguration()
        }
    
        def "can compile good code"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 01 01:34:12 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top