jmongard / Git.SemVersioning.Gradle

Gradle plugin for automatically versioning a project using semantic versioning and conventional commits with change log support based on git commit messages.
https://plugins.gradle.org/plugin/com.github.jmongard.git-semver-plugin
Apache License 2.0
38 stars 4 forks source link

`printChangelog --file` doesn't create parent directory for the specified file #58

Closed tacascer closed 3 months ago

tacascer commented 4 months ago

The current logic doesn't support creating parent directories to the changelog file

https://github.com/jmongard/Git.SemVersioning.Gradle/blob/master/src/main/kotlin/git/semver/plugin/gradle/PrintTask.kt#L26-L28

jmongard commented 4 months ago

Do you think adding a mkdir call would solve your issue?

tacascer commented 4 months ago

In Kotlin I would do something like this https://github.com/tacascer-org/xml-processor/blob/main/src/main/kotlin/io/github/tacascer/XmlFilter.kt#L45-L49

jmongard commented 3 months ago

This should be working now in 0.12.8.