jutzig / github-release-plugin

uses the github release api to upload files
69 stars 24 forks source link

Multiple assets upload implementation #10

Closed valery1707 closed 9 years ago

valery1707 commented 9 years ago

I think this is very usefull feature. Changes in cofiguration:

<configuration>
    ...
    <artifact>path/to/single/asset</artifact>
    <!--One fileSet to include many files-->
    <fileSet>
        <directory>path/relative/to/the/POM/where/the/resources/are/stored</directory>
        <!--Includes pattern-->
        <includes>
            <include>**/pom.*</include>
        </includes>
        <!--Excludes pattern. Excludes take priority over includes.-->
        <excludes>
            <exclude>**/log.log</exclude>
        </excludes>
    </fileSet>
    <!--Many fileSets and each can define many assets-->
    <fileSets>
        <fileSet>
            <directory>path/relative/to/the/POM/where/the/resources/are/stored</directory>
            <!--Includes pattern-->
            <includes>
                <include>**/pom.*</include>
            </includes>
            <!--Excludes pattern. Excludes take priority over includes.-->
            <excludes>
                <exclude>**/*.properties</exclude>
            </excludes>
        </fileSet>
    </fileSets>
</configuration>

Assets with same filename will be rewritten, if ${overwriteArtifact} is true, or exception will be thrown.

valery1707 commented 9 years ago

Thanks for great plugin!