- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for GreetingPlugin (0.17 sec)
-
platforms/documentation/docs/src/snippets/plugins/greetingPlugin/groovy/buildSrc/src/main/groovy/GreetingPlugin.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 22 06:14:51 UTC 2024 - 107 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/greetingPlugin/kotlin/buildSrc/src/main/kotlin/GreetingPlugin.gradle.kts
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 22 06:14:51 UTC 2024 - 107 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/customPlugins/customPluginWithConvention/kotlin/build.gradle.kts
interface GreetingPluginExtension { val message: Property<String> } class GreetingPlugin : Plugin<Project> { override fun apply(project: Project) { // Add the 'greeting' extension object val extension = project.extensions.create<GreetingPluginExtension>("greeting") extension.message.convention("Hello from GreetingPlugin") // Add a task that uses configuration from the extension object project.task("hello") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 14 22:56:31 UTC 2024 - 588 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/customPlugins/customPlugin/groovy/build.gradle
// tag::no-script-plugin[] class GreetingPlugin implements Plugin<Project> { void apply(Project project) { project.task('hello') { doLast { println 'Hello from the GreetingPlugin' } } } } // Apply the plugin apply plugin: GreetingPlugin // end::no-script-plugin[] // tag::script-plugin[] apply from: 'other.gradle'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 22:35:53 UTC 2024 - 405 bytes - Viewed (0) -
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) -
platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/variants/GradlePluginWithVariantsPublicationIntegrationTest.groovy
implementationClass = 'example.plugin.GreetingPlugin' } } publishing { repositories { maven { url = '${mavenRepo.uri}' } } } """ producer.file('src/main/java/example/plugin/GreetingPlugin.java') << pluginImplementation('<7.0')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:55:38 UTC 2024 - 16.6K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/customPlugins/customPluginNoConvention/groovy/build.gradle
interface GreetingPluginExtension { Property<String> getMessage() } class GreetingPlugin implements Plugin<Project> { void apply(Project project) { // Add the 'greeting' extension object def extension = project.extensions.create('greeting', GreetingPluginExtension) // Add a task that uses configuration from the extension object project.task('hello') { doLast {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 14 22:56:31 UTC 2024 - 590 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/customPlugins/customPluginWithConvention/groovy/build.gradle
interface GreetingPluginExtension { Property<String> getMessage() } class GreetingPlugin implements Plugin<Project> { void apply(Project project) { // Add the 'greeting' extension object def extension = project.extensions.create('greeting', GreetingPluginExtension) extension.message.convention('Hello from GreetingPlugin') // Add a task that uses configuration from the extension object project.task('hello') {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 14 22:56:31 UTC 2024 - 592 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/kotlin/build.gradle.kts
// setting convention when registering a task from plugin class GreetingPlugin : Plugin<Project> { override fun apply(project: Project) { project.getTasks().register<GreetingTask>("hello") { greeter.convention("Greeter") } } } // end::convention-callsites-from-plugin[] // tag::convention-callsites-from-buildscript[] apply<GreetingPlugin>() tasks.withType<GreetingTask>().configureEach {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 16:56:10 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/customPlugins/customPluginNoConvention/kotlin/build.gradle.kts
interface GreetingPluginExtension { val message: Property<String> } class GreetingPlugin : Plugin<Project> { override fun apply(project: Project) { // Add the 'greeting' extension object val extension = project.extensions.create<GreetingPluginExtension>("greeting") // Add a task that uses configuration from the extension object project.task("hello") { doLast {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 14 22:56:31 UTC 2024 - 608 bytes - Viewed (0)