File tree 5 files changed +11
-4
lines changed
src/main/kotlin/net/radsteve/axi/gradle
5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ org.gradle.configuration-cache=true
6
6
org.gradle.parallel =true
7
7
org.gradle.vfs.watch =false
8
8
9
- version =0.2.1
9
+ version =0.2.2
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public object AxiApplicator {
64
64
65
65
exclude(" plugin.yml" )
66
66
// we exclude the default plugin yml's
67
- from(compilation.defaultSourceSet. resources.sourceDirectories.singleFile ) {
67
+ from(compilation.resources) {
68
68
exclude(" paper-plugin.yml" )
69
69
}
70
70
// to add our own
Original file line number Diff line number Diff line change
1
+ package net.radsteve.axi.gradle
2
+
3
+ import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
4
+ import java.io.File
5
+
6
+ public val KotlinCompilation <* >.resources: File get() = defaultSourceSet.resources.sourceDirectories.files.first()
Original file line number Diff line number Diff line change 1
1
package net.radsteve.axi.gradle.task
2
2
3
+ import net.radsteve.axi.gradle.resources
3
4
import org.gradle.api.DefaultTask
4
5
import org.gradle.api.tasks.TaskAction
5
6
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
@@ -18,7 +19,7 @@ public abstract class ProcessPluginYaml @Inject constructor(
18
19
@TaskAction
19
20
public fun run () {
20
21
val yaml = Yaml ()
21
- val resources = compilation.defaultSourceSet. resources.sourceDirectories.singleFile
22
+ val resources = compilation.resources
22
23
23
24
val pluginYamlFile = resources.resolve(" plugin.yml" )
24
25
val paperPluginYamlFile = resources.resolve(" paper-plugin.yml" )
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
7
7
org.gradle.parallel =true
8
8
org.gradle.vfs.watch =false
9
9
10
- version =0.2.1
10
+ version =0.2.2
You can’t perform that action at this time.
0 commit comments