Nathan Bedell
12/08/2021, 11:53 PMarrow-meta
repo in order to setup a gradle plugin for loading my arrow-meta plugin, and I can build a jar for the gradle plugin fine -- but I'm not entirely sure how to test the result.
Usually for a library I'd use publishToMavenLocal
, and then use mavenLocal()
as a repository in some other project to make sure the maven config is working properly. Is it possible to do the same for a gradle plugin? How would I set up maven to publish a gradle plugin?
I tried skimming through the gradle files in the arrow-meta
repo to see what would be of help, but no luck so far. Can someone point me in the right direction?raulraja
12/09/2021, 9:05 AMNathan Bedell
12/09/2021, 2:41 PMbuildscript {
repositories {
mavenLocal()
}
dependencies {
classpath "io.github.sintrastes:buildable-kt-gradle-plugin:0.1"
}
}
...
apply plugin: "io.sintrastes.buildable-kt"
And it looks like now after setting up the right maven publish config, I can get most of the way there -- but I'm running into an issue:
java.lang.NullPointerException: inStream parameter is null
at arrow.meta.plugin.gradle.ArrowMetaGradlePlugin.apply(ArrowMetaGradlePlugin.kt:19)
It seems like it can't find my plugin.properties
file for some reason, and I'm not sure why. Source: https://github.com/Sintrastes/buildable-kt/blob/main/libs/gradle-plugin-commons/src/main/kotlin/arrow/meta/plugin/gradle/ArrowMetaGradlePlugin.kt
I took this from the arrow-meta repo to try and get my plugin working with a gradle plugin -- but as I look now at this file in the arrow-meta repo today, I see that it has already changed a bit.
Maybe for now it would better for me to just release my plugin jar, and have users manually add the compiler plugin rather than applying the gradle plugin.raulraja
12/09/2021, 3:14 PMNathan Bedell
12/09/2021, 11:03 PM