Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,818 for ApplyG (0.14 sec)

  1. platforms/documentation/docs/src/snippets/customPlugins/customPlugin/kotlin/build.gradle.kts

    // tag::no-script-plugin[]
    class GreetingPlugin : Plugin<Project> {
        override fun apply(project: Project) {
            project.task("hello") {
                doLast {
                    println("Hello from the GreetingPlugin")
                }
            }
        }
    }
    
    // Apply the plugin
    apply<GreetingPlugin>()
    // end::no-script-plugin[]
    
    // tag::script-plugin[]
    apply(from = "other.gradle.kts")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 22:35:53 UTC 2024
    - 407 bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r49/ToolingApiEclipseModelProjectCrossVersionSpec.groovy

    @TargetGradleVersion('>=4.9')
    class ToolingApiEclipseModelProjectCrossVersionSpec extends ToolingApiSpecification {
    
        def "EclipseProject with default java attributes"() {
            buildFile <<
            """apply plugin: 'java'
               apply plugin: 'eclipse'
            """
    
            when:
            EclipseProject project = loadToolingModel(EclipseProject)
    
            then:
            project.projectNatures.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. 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)
  4. subprojects/core/src/integTest/groovy/org/gradle/configuration/project/LifecycleProjectEvaluatorIntegrationTest.groovy

            buildFile """
                project(':foo').beforeEvaluate {
                    project(':foo').apply from: 'before.gradle'
                }
                project(':foo').afterEvaluate {
                    project(':foo').apply from: 'after.gradle'
                }
                gradle.taskGraph.whenReady {
                    project(':foo').apply from: 'whenReady.gradle'
                }
    
                task foo {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. platforms/jvm/plugins-application/src/test/groovy/org/gradle/api/plugins/ApplicationPluginTest.groovy

        def "adds distZip task to project"() {
            when:
            plugin.apply(project)
    
            then:
            def task = project.tasks[ApplicationPlugin.TASK_DIST_ZIP_NAME]
            task instanceof Zip
            task.archiveFileName.get() == "${project.applicationName}.zip"
        }
    
        def "adds distTar task to project"() {
            when:
            plugin.apply(project)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/api/plugins/BuildSrcPluginIntegrationTest.groovy

            given:
            executer.requireIsolatedDaemons() // make sure we get the same daemon both times
    
            buildFile << "apply plugin: 'test-plugin'"
    
            file("buildSrc/settings.gradle") << "include 'testplugin'"
    
            file("buildSrc/build.gradle") << """
                apply plugin: "groovy"
                dependencies {
                    runtimeOnly project(":testplugin")
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:27:57 UTC 2024
    - 6.6K 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/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioMultiProjectIntegrationTest.groovy

                rootProject.name = 'app'
                include 'one', 'two', 'three'
            """
            buildFile << """
                apply plugin: 'cpp-application'
    
                project(':one') {
                    apply plugin: 'cpp-application'
                }
                project(':two') {
                    apply plugin: 'cpp-library'
                }
            """
    
            and:
            run ":visualStudio"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top