Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
(#198) Added loggit-maven-plugin and releasecat-maven-plugin to CD (#201
Browse files Browse the repository at this point in the history
)
  • Loading branch information
llorllale committed May 31, 2018
1 parent 47c963c commit b315611
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -25,6 +25,8 @@ jobs:
-in release/codesigning.asc.enc -out release/codesigning.asc -d
- gpg --fast-import release/codesigning.asc
- mvn --settings release/mvnsettings.xml -P deploy -DskipTests=true clean deploy
- mvn loggit:changelog -Dloggit.startTag=$(git tag --list | tail -2 | head -1)
- mvn releasecat:upload -Dreleasecat.token=$site_token -Dreleasecat.tag=$TRAVIS_TAG -Dreleasecat.name=$TRAVIS_TAG
- mvn -P site clean compile site
deploy:
provider: pages
Expand Down
20 changes: 20 additions & 0 deletions pom.xml
Expand Up @@ -535,6 +535,26 @@ limitations under the License.</inlineHeader>
<noticeTemplate>NOTICE.template</noticeTemplate>
</configuration>
</plugin>
<plugin>
<groupId>org.llorllale</groupId>
<artifactId>loggit-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<outputFile>${project.build.directory}/changelog.md</outputFile>
<format>custom</format>
<customFormatFile>release/changelog.xsl</customFormatFile>
</configuration>
</plugin>
<plugin>
<groupId>org.llorllale</groupId>
<artifactId>releasecat-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<user>llorllale</user>
<repo>${project.artifactId}</repo>
<descriptionFromFile>${project.build.directory}/changelog.md</descriptionFromFile>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down
28 changes: 28 additions & 0 deletions release/changelog.xsl
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!--
Copyright 2017 George Aristy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="text"/>
<xsl:variable name="newLine"><xsl:text>&#xa;</xsl:text></xsl:variable>
<xsl:template match="log">## CHANGELOG
<xsl:for-each select="commits/commit">
<xsl:value-of select="$newLine"/>* <xsl:value-of select="message/short"/>
<xsl:value-of select="$newLine"/>
<xsl:text> </xsl:text><xsl:value-of select="id"/> (by <xsl:value-of select="author/name"/>)</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Expand Up @@ -23,7 +23,7 @@
*
* @since 0.1.0
* @see org.llorllale.youtrack.api.session.UsernamePassword
* @see org.llorllale.youtrack.api.session.AnonymousLogin
* @see org.llorllale.youtrack.api.session.Anonymous
* @see org.llorllale.youtrack.api.session.PermanentToken
*/
package org.llorllale.youtrack.api.session;

0 comments on commit b315611

Please sign in to comment.