summaryrefslogtreecommitdiff
path: root/plugin/src/main/kotlin/moe/nea/archenemy/ArchenemyGreetingPlugin.kt
blob: 85144f118a5b6c5ac41543c7425fdc6f09e59e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * This Kotlin source file was generated by the Gradle 'init' task.
 */
package moe.nea.archenemy

import org.gradle.api.Project
import org.gradle.api.Plugin

/**
 * A simple 'hello world' plugin.
 */
class ArchenemyGreetingPlugin: Plugin<Project> {
    override fun apply(project: Project) {
        // Register a task
        project.tasks.register("greeting") { task ->
            task.doLast {
                println("Hello from plugin 'moe.nea.archenemy.greeting'")
            }
        }
    }
}