Skip to content

Commit

Permalink
fix gradle task names
Browse files Browse the repository at this point in the history
  • Loading branch information
klahap committed Nov 28, 2024
1 parent 384b261 commit 250cdd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,23 @@ class Plugin : org.gradle.api.Plugin<Project> {
override fun apply(project: Project) {
val configBuilder = project.extensions.create("pgen", Config.Builder::class.java)

project.task("pgen generate") { task ->
project.task("pgenGenerate") { task ->
task.group = TASK_GROUP
task.doLast {
val config = configBuilder.build()
generate(config)
}
}

project.task("pgen generate spec") { task ->
project.task("pgenGenerateSpec") { task ->
task.group = TASK_GROUP
task.doLast {
val config = configBuilder.build()
generateSpec(config)
}
}

project.task("pgen generate code") { task ->
project.task("pgenGenerateCode") { task ->
task.group = TASK_GROUP
task.doLast {
val config = configBuilder.build()
Expand Down

0 comments on commit 250cdd7

Please sign in to comment.