Check for JavaPlugin instead of JavaBasePlugin when looking for processResources

Change version to 0.2.1-SNAPSHOT
This commit is contained in:
Minecrell 2017-10-07 14:50:02 +02:00
parent 5b27604114
commit 66df17c5a0
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
group = net.minecrell
name = plugin-yml
version = 0.3.0-SNAPSHOT
version = 0.2.1-SNAPSHOT
description = A Gradle plugin that generates plugin.yml for Bukkit/BungeeCord plugins based on the Gradle project
url = https://github.com/Minecrell/plugin-yml

View file

@ -25,7 +25,7 @@ package net.minecrell.pluginyml
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.tasks.AbstractCopyTask
import org.gradle.kotlin.dsl.getValue
import org.gradle.kotlin.dsl.task
@ -53,7 +53,7 @@ abstract class PlatformPlugin<T : Serializable>(private val platformName: String
prepare(project, description)
}
plugins.withType<JavaBasePlugin> {
plugins.withType<JavaPlugin> {
val processResources: AbstractCopyTask by tasks
processResources.from(generateTask)
}