Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 86 for allprojects (0.33 sec)

  1. subprojects/core/src/test/groovy/org/gradle/invocation/DefaultGradleSpec.groovy

            }
            1 * action.execute(rootProject)
        }
    
        def "allprojects action is executed when projects are loaded"() {
            given:
            def action = Mock(Action)
            def rootProject = project('root')
            gradle.rootProject = rootProject
    
            when:
            gradle.allprojects(action)
    
            then:
            0 * action.execute(_)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/DeprecationHandlingIntegrationTest.groovy

        }
    
        def 'DeprecatedPlugin from init script - without full stacktrace.'() {
            given:
            def initScript = file("init.gradle") << """
                allprojects {
                    org.gradle.internal.deprecation.DeprecationLogger.deprecatePlugin("DeprecatedPlugin").replaceWithExternalPlugin("Foobar").willBeRemovedInGradle9().undocumented().nagUser() // line 2
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 16:16:32 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CrossProjectConfigurationReportingGradle.kt

            delegate.rootProject(action.withCrossProjectModelAccessCheck())
        }
    
        override fun allprojects(action: Action<in Project>) {
            // Use the delegate's implementation of `rootProject` to ensure that the action is only invoked once the rootProject is available
            delegate.rootProject {
                // Instead of the rootProject's `allProjects`, collect the projects while still tracking the current referrer project
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiModelQueryIntegrationTest.groovy

            given:
            settingsFile << """
                include('a')
                include('b')
            """
            withSomeToolingModelBuilderPluginInBuildSrc()
            buildFile << """
                allprojects {
                    plugins.apply('java-library')
                }
                plugins.apply(my.MyPlugin)
            """
    
            when:
            executer.withArguments(ENABLE_CLI, WARN_PROBLEMS_CLI_OPT)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/configuration/ExecuteUserLifecycleListenerBuildOperationIntegrationTest.groovy

            // since allprojects callbacks are executed inside an internal rootProject listener
            initFile << """
                rootProject { project ->
                    ${addBeforeProjectListeners('init file rootProject')}
                }
                apply from: file('$scriptFile.name')
            """
            scriptFile << """
                allprojects { project ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/structuring/sharing_build_logic_between_subprojects.adoc

    TIP:  Avoid using `subprojects {}` and `allprojects {}`.
    
    With cross-configuration, build logic can be injected into a subproject which is not obvious when looking at its build script.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 12:58:46 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractLineEndingSensitivityIntegrationSpec.groovy

            execute("taskWithInputs")
    
            then:
            executedAndNotSkipped(":taskWithInputs")
    
            where:
            api << Api.values()
        }
    
        @ToBeFixedForIsolatedProjects(because = "allprojects, extensive cross-project access")
        def "artifact transforms are sensitive to line endings by default"() {
            createParameterizedTransformWithLineEndingNormalization(LineEndingSensitivity.DEFAULT)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaProjectIntegrationTest.groovy

        void "can recursively build dependent and dependee projects"() {
            createDirs("a", "b", "c")
            testFile("settings.gradle") << "include 'a', 'b', 'c'"
            testFile("build.gradle") << """
                allprojects { apply plugin: 'java-library' }
    
                project(':a') {
                    dependencies { api project(':b') }
                }
    
                project(':b') {
                    dependencies { api project(':c') }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                }
    
                final List<MavenProject> allProjects = event.getSession().getAllProjects();
                final int projectsSkipped = allProjects.size() - projects.size();
    
                currentVisitedProjectCount = projectsSkipped;
                totalProjects = allProjects.size();
            }
        }
    
        @Override
        public void sessionEnded(ExecutionEvent event) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 03 17:49:40 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/initialization/CalculateTaskGraphBuildOperationIntegrationTest.groovy

            createDirs("a", "b", "a/c")
            settingsFile << """
                include "a"
                include "b"
                include "a:c"
            """
    
            buildFile << """
                allprojects {
                    task otherTask
                    task someTask
                    someTask.dependsOn otherTask
                }
            """
            when:
            succeeds('help')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top