Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 524 for Groovy (1.06 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/ProcessInPluginBuildScriptIntegrationTest.groovy

            }
    
            where:
            snippetsFactory             | file
            exec().groovy               | "included/settings.gradle"
            javaexec().groovy           | "included/settings.gradle"
            processBuilder().groovy     | "included/settings.gradle"
            stringArrayExecute().groovy | "included/settings.gradle"
            runtimeExec().groovy        | "included/settings.gradle"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/NestedBeanGroovyInterOpIntegrationTest.groovy

        def setup() {
            pluginDir.file("build.gradle") << """
                plugins {
                    id("groovy")
                }
                dependencies {
                    implementation gradleApi()
                    implementation localGroovy()
                }
            """
            pluginDir.file("src/main/groovy/Params.groovy") << """
                import ${Property.name}
                import ${Internal.name}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFeatureFlagsIntegrationTest.groovy

            buildFile("""
                plugins {
                    id("groovy")
                }
    
                dependencies {
                    implementation localGroovy()
                }
            """)
    
            settingsFile("""
                enableFeaturePreview("${FeaturePreviews.Feature.GROOVY_COMPILATION_AVOIDANCE.name()}")
            """)
    
            file("src/main/groovy/Main.groovy") << """
                class Main {}
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/BuildLogicChangeFixture.groovy

            }
        }
    
        enum Language {
            JAVA,
            GROOVY,
            KOTLIN
    
            String getFileExtension() {
                switch (this) {
                    case JAVA:
                        return 'java'
                    case GROOVY:
                        return 'groovy'
                    case KOTLIN:
                        return 'kt'
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyIntegrationTest.groovy

        }
    
        def "assemble on Groovy project with sources but no groovy dependency is executed and fails with a reasonable error message"() {
            given:
            def configurationCache = newConfigurationCacheFixture()
            buildFile << """
                plugins { id 'groovy' }
            """
            file("src/main/groovy/Thing.groovy") << """
                class Thing {}
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInStaticGroovyIntegrationTest.groovy

            // Therefore, it is impossible to call System.getProperties() with static import there, and testing static
            // import is important because Groovy generates different code in this case.
            file("buildSrc/src/main/groovy/SomePlugin.groovy") << """
                import ${CompileStatic.name}
                import ${Plugin.name}
                import ${Project.name}
                import static ${System.name}.clearProperty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/tasks/RemoteProject.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package gradlebuild.performance.generator.tasks
    
    import groovy.transform.CompileStatic
    import groovy.transform.TypeChecked
    import groovy.transform.TypeCheckingMode
    import org.gradle.api.DefaultTask
    import org.gradle.api.file.FileSystemOperations
    import org.gradle.api.provider.Property
    import org.gradle.api.tasks.Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 06 10:57:13 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

                        project.task("testTask").doFirst(task -> {
                            System.out.println("Test task");
                        });
                    }
                }
            """
            file("src/test/groovy/Test.groovy") << """
                import org.gradle.testkit.runner.GradleRunner
                import static org.gradle.testkit.runner.TaskOutcome.*
                import spock.lang.Specification
                import spock.lang.TempDir
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/MissingScriptFixture.groovy

                new Spec(scriptLanguage, scenario)
            }
        }
    
        private static List<Spec> singleLanguageSpecs() {
            [
                new Spec(ScriptLanguage.GROOVY, new MissingBuildTakesPrecedence()),
                new Spec(ScriptLanguage.GROOVY, new MissingSettingsTakesPrecedence())
            ]
        }
    
        @Canonical
        static class Spec {
            ScriptLanguage scriptLanguage;
            Scenario scenario
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsDynamicGroovyBuildSrcIntegrationTest.groovy

        String getLocation() {
            return "Plugin class 'SneakyPlugin'"
        }
    
        @Override
        void buildLogicApplication(BuildInputRead read) {
            dynamicGroovyPlugin(file("buildSrc/src/main/groovy/SneakyPlugin.groovy"), read)
            buildFile << """
                apply plugin: SneakyPlugin
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top