Closed emacdona closed 9 years ago
I submitted a pull request to address the "org.kordamp.gradle.markdown.properties" problem. The same pull request initially addressed the license generation in the pom too, however I backed that change out because there is an existing pull request that addresses the problem.
Fixed by #10 and #15
I cloned this repo and attempted to build locally (wanted to see if this issue had been resolved: https://github.com/aalmiray/markdown-gradle-plugin/issues/7 -- please add that feature, btw ;-) ).
I had two problems: 1) The pom generation in gradle/publish.gradle was creating a bad pom. For some reason, the nested "license" element under "licenses" was being ignored, but its children weren't (I can't explain it) I was ending up with a pom that looked like this when attempting to publish to my local maven repo: <licenses> <name>The Apache Software License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </licenses> 2) There was no "org.kordamp.gradle.markdown.properties" file in the META-INF/gradle-plugins directory of the jar. So once I got past the first problem, I kept getting errors telling me that there was no plugin with such and such id.
Here's a patch with my changes if it helps. The fix to (1) is an ugly hack. If you can't repro locally but are still curious -- please feel free to ask me questions like "What version of <x> are you using".