- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 242 for GREETING (0.11 sec)
-
platforms/documentation/docs/src/samples/build-organization/composite-builds/plugin-dev/kotlin/greeting-plugin/src/main/java/org/sample/GreetingPlugin.java
public void apply(Project project) { GreetingExtension extension = project.getExtensions().create("greeting", GreetingExtension.class); extension.getWho().convention("mate"); TaskProvider<GreetingTask> task = project.getTasks().register("greeting", GreetingTask.class, t -> { t.getWho().convention(extension.getWho()); }); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 595 bytes - Viewed (0) -
platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/GroovyApplicationInitIntegrationTest.groovy
and: commonJvmFilesGenerated(scriptDsl) when: run("build") then: assertTestPassed("org.example.AppTest", "application has a greeting") when: run("run") then: outputContains("Hello World!") where: scriptDsl << ScriptDslFixture.SCRIPT_DSLS }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 03:26:38 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeterFunctionUsesLogger.groovy
privateHeader = ofFile(sourceFile("headers", "greeter_consts.h", """ #define GREETING "${HelloWorldApp.HELLO_WORLD}" """)) source = ofFile(sourceFile("cpp", "greeter.cpp", """ #include <iostream> #include "greeter.h" #include "logger.h" #include "greeter_consts.h" void sayGreeting() { Logger logger; std::string str(GREETING); logger.log(str); } """)) } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 2K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeterUsesLogger.groovy
#define GREETING "${HelloWorldApp.HELLO_WORLD}" """)) final SourceFileElement source = ofFile(new SourceFile("cpp", "greeter.cpp", """ #include <iostream> #include <string> #include "greeter.h" #include "logger.h" #include "greeter_consts.h" void Greeter::sayHello() { Logger logger; std::string str(GREETING); logger.log(str); } """))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-execution/workers/src/main/java/org/gradle/workers/WorkAction.java
* public abstract class MyWorkAction implements WorkAction<WorkParameters.None> { * private final String greeting; * * {@literal @}Inject * public MyWorkAction() { * this.greeting = "hello"; * } * * {@literal @}Override * public void execute() { * System.out.println(greeting); * } * } * </pre> * * Implementations of WorkAction are subject to the following constraints:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 2K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/gradle-plugin/kotlin/greeting-plugin/build.gradle.kts
} dependencies { // Use JUnit test framework for unit tests testImplementation("junit:junit:4.13") } gradlePlugin { // Define the plugin val greeting by plugins.creating { id = "com.example.plugin.greeting" implementationClass = "com.example.plugin.GreetingPlugin" } } // end::plugin[] // Add a source set and a task for a functional test suite
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/gradle-plugin/README.adoc
This sample shows how to build a Gradle plugin in the Java language. ==== include::sample[dir="kotlin",files="greeting-plugin/build.gradle.kts[tags=plugin]"] include::sample[dir="groovy",files="greeting-plugin/build.gradle[tags=plugin]"] ==== For a more guided tour with plugin development, see link:https://gradle.org/guides/?q=Plugin%20Development[the guides for plugin development].
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 757 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/developingPlugins/pluginWithVariants/groovy/build.gradle
objects.named(GradlePluginApiVersion, '7.0')) } } } // end::consume-plugin-variant[] gradlePlugin { plugins.create('greeting') { id = 'org.example.greeting' implementationClass = 'org.example.GreetingPlugin' } } publishing { repositories { maven { url = layout.buildDirectory.dir('local-repo') } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 01 01:32:48 UTC 2024 - 1.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/developingPlugins/pluginWithVariants/kotlin/build.gradle.kts
objects.named("7.0")) } } } // end::consume-plugin-variant[] gradlePlugin { plugins.create("greeting") { id = "org.example.greeting" implementationClass = "org.example.GreetingPlugin" } } publishing { repositories { maven { url = uri(layout.buildDirectory.dir("local-repo")) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 01 01:32:48 UTC 2024 - 1.5K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/templates/gradle-plugin-in-java/src/functionalTest/java/com/example/plugin/GreetingPluginFunctionalTest.java
writeString(new File(projectDir, "settings.gradle"), ""); writeString(new File(projectDir, "build.gradle"), "plugins {" + " id('com.example.plugin.greeting')" + "}"); // Run the build BuildResult result = GradleRunner.create() .forwardOutput() .withPluginClasspath() .withArguments("greet")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.3K bytes - Viewed (0)