Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,162 for applyTo (0.12 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/HttpScriptPluginIntegrationSpec.groovy

            script << """
                task doStuff
            """
    
            buildFile << """
                apply from: resources.text.fromInsecureUri("$server.uri/external.gradle")
                defaultTasks 'doStuff'
            """
    
            then:
            succeeds()
        }
    
        def "can apply script via https"() {
            applyTrustStore()
    
            when:
            def script = file('external.gradle')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 30 08:26:30 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppApplicationIntegrationTest.groovy

            given:
            buildFile << """
                project(':app') {
                    apply plugin: 'cpp-application'
                    dependencies {
                        implementation project(':hello')
                    }
                }
                project(':hello') {
                    apply plugin: 'cpp-library'
                }
            """
            app.greeter.writeToProject(file("hello"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 19:11:01 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  3. testing/integ-test/src/integTest/groovy/org/gradle/integtests/configuration/ExecuteDomainObjectCollectionCallbackBuildOperationTypeIntegrationTest.groovy

            buildFile << """
                ${requiresPlugins ? requiresPlugins.collect { "apply plugin: '${it}'" }.join('\n') : ''}
                ${callbackClass(containerAccess, callbackName)}
                ${addingPluginClass(containerItemCreation)}
                apply plugin: CallbackPlugin
                apply from: 'callbackScript.gradle'
                apply plugin: AddingPlugin
            """
    
            when:
            run('help')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentIntegrationTest.groovy

                    @ComponentType
                    private void broken(TypeBuilder<?> builder) {
                    }
                }
                apply plugin: Broken
            """
    
            expect:
            fails "help"
            failure.assertHasCause("Failed to apply plugin class 'Broken'")
            failure.assertHasCause("""Type Broken is not a valid rule source:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/ProjectConfigurationProgressEventCrossVersionSpec.groovy

            file("buildSrc/build.gradle") << """
                allprojects {
                    apply plugin: 'java'
                }
            """
            buildFile << """
                allprojects {
                    apply plugin: 'java'
                }
            """
            file("included/build.gradle") << """
                allprojects {
                    apply plugin: 'java'
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryCompilationIntegrationTest.groovy

            toggleCompileClasspathPackaging(compileClasspathPackaging)
    
            given:
            subproject('a') {
                'build.gradle'('''
                    apply plugin: 'java-library'
                    dependencies {
                        api project(':b')
                    }
                ''')
                src {
                    main {
                        java {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 13:02:41 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/FunctionalSourceSetIntegrationTest.groovy

            buildFile << """
            apply plugin: 'language-base'
    
            model {
                functionalSources(FunctionalSourceSet)
            }
            """
    
            expect:
            succeeds "model"
        }
    
        def "model report renders a functional source set and elements"() {
            buildFile << """
            apply plugin: 'language-base'
    
            ${registerJavaLanguage()}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

                class MyPlugin implements Plugin<Project> {
                    public void apply(Project project) {
                        project.getPlugins().apply(ComponentModelBasePlugin.class);
                        project.getPlugins().apply(JavaBasePlugin.class);
                    }
    
                    static class Rules extends RuleSource {
                        @Model("android")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt

            val previous = resolvedScriptDependencies(editedScript).apply {
                assertContainsBasicDependencies()
            }
    
            val wrongEnv = arrayOf("gradleHome" to existing("absent"))
            resolvedScriptDependencies(editedScript, previous, *wrongEnv).apply {
                assertSame(previous, this)
            }
    
            recorder.apply {
                assertLastEventIsInstanceOf(ResolutionFailure::class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:12:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. platforms/jvm/ear/src/integTest/groovy/org/gradle/plugins/ear/EarPluginIntegrationTest.groovy

                project(":c") {
                    apply plugin: 'java'
                    dependencies {
                        implementation project(':d')
                        compileOnly project(':e')
                    }
                }
                project(":d") {
                    apply plugin: 'java'
                }
                project(":e") {
                    apply plugin: 'java'
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 17.2K bytes
    - Viewed (0)
Back to top