Skip to content

Allow read description from file #32

@vromero

Description

@vromero

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions