github-release-plugin icon indicating copy to clipboard operation
github-release-plugin copied to clipboard

Allow read description from file

Open vromero opened this issue 7 years ago • 1 comments

It would be really nice if the description could be loaded also from disk in order to be able to combine github-release-plugin with git-changelog-maven-plugin.

I've been able to workaround with:

<plugin>
    <groupId>org.codehaus.gmaven</groupId>
    <artifactId>gmaven-plugin</artifactId>
    <version>1.5</version>
    <executions>
        <execution>
             <phase>generate-resources</phase>
            <goals>
                <goal>execute</goal>
            </goals>
            <configuration>
                <properties>
                    <input_file>${session.executionRootDirectory}/CHANGELOG.md</input_file>
                </properties>
                <source>
                    def file = new File(project.properties.input_file)
                    project.properties.release_description = file.getText()
                </source>
            </configuration>
        </execution>
    </executions>
</plugin>

But it can't be called elegant.

vromero avatar Dec 29 '17 07:12 vromero

I second that, being able to use directly the project changelog file for the description should the must. -F "CHANGELOG.md"

Sami32 avatar Jul 25 '18 02:07 Sami32