Skip to content

Commit

Permalink
build: Configure JReleaser proper.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons committed Feb 28, 2024
1 parent 2c8056f commit 912aec0
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: 'Create release'
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_TOKEN }}
run: ./mvnw -Dfast --no-transfer-progress package jreleaser:full-release
run: ./mvnw -Djreleaser -Dfast --no-transfer-progress package jreleaser:full-release
187 changes: 150 additions & 37 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -740,42 +740,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
<jreleaser>
<project>
<name>${project.artifactId}</name>
</project>
<release>
<github>
<skipTag>true</skipTag>
<tagName>{{projectVersion}}</tagName>
<releaseName>{{projectVersion}}</releaseName>
<branch>main</branch>
<changelog>
<formatted>ALWAYS</formatted>
<contentTemplate>etc/jreleaser/changelog.md.tpl</contentTemplate>
<format>- {{commitShortHash}} {{commitTitle}}</format>
<preset>conventional-commits</preset>
</changelog>
</github>
</release>
<distributions>
<full-bundle>
<type>SINGLE_JAR</type>
<artifacts>
<artifact>
<path>dist/target/neo4j-jdbc-driver-{{projectVersion}}.zip</path>
</artifact>
</artifacts>
</full-bundle>
</distributions>
</jreleaser>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand All @@ -796,12 +760,161 @@
</build>

<profiles>
<?SORTPOM IGNORE?>
<profile>
<id>jreleaser</id>
<activation>
<property>
<name>jreleaser</name>
</property>
</activation>
<build>
<plugins/>
<plugins>
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<jreleaser>
<project>
<name>neo4j-ogm-quarkus</name>
</project>
<release>
<github>
<skipTag>true</skipTag>
<tagName>{{projectVersion}}</tagName>
<releaseName>{{projectVersion}}</releaseName>
<branch>main</branch>
<changelog>
<formatted>ALWAYS</formatted>
<contentTemplate>etc/jreleaser/changelog.md.tpl</contentTemplate>
<format>- {{commitShortHash}} {{commitTitle}}</format>
<preset>conventional-commits</preset>
<contributors>
<format>-
{{^contributorUsername}}{{contributorName}}{{/contributorUsername}}{{#contributorUsername}}@{{contributorUsername}}{{/contributorUsername}}
</format>
</contributors>
<labelers>
<labeler>
<title>Bump</title>
<label>dependabot</label>
<order>-1</order>
</labeler>
<labeler>
<title>build(deps)</title>
<label>dependabot</label>
<order>-2</order>
</labeler>
<labeler>
<title>Fix</title>
<label>fix</label>
</labeler>
<labeler>
<title>fix</title>
<label>fix</label>
</labeler>
<labeler>
<title>Add support</title>
<label>feat</label>
</labeler>
<labeler>
<title>Document</title>
<label>docs</label>
</labeler>
<labeler>
<title>After release cleanup.</title>
<label>maven-release</label>
</labeler>
<labeler>
<title>[maven-release-plugin]</title>
<label>maven-release</label>
</labeler>
<labeler>
<body>nocl</body>
<label>nocl</label>
</labeler>
</labelers>
<replacers>
<replacer>
<search>(?:build\(deps\): )(.*)</search>
<replace>$1</replace>
</replacer>
<replacer>
<search>((?:GH-)(\d+) - )(.*)</search>
<replace>$3 (#$2)</replace>
</replacer>
</replacers>
<categories>
<category>
<key>features</key>
<title>&#x1f680; Features</title>
<labels>feat</labels>
<order>10</order>
</category>
<category>
<key>fixes</key>
<title>&#x1f41b; Bug Fixes</title>
<labels>fix</labels>
<order>20</order>
</category>
<category>
<key>changes</key>
<title>&#x1f504;️ Refactorings</title>
<labels>refactor</labels>
<order>25</order>
</category>
<category>
<key>docs</key>
<title>&#x1f4dd; Documentation</title>
<labels>docs</labels>
<order>30</order>
</category>
<category>
<key>tasks</key>
<title>&#x1f9f0; Tasks</title>
<labels>chore</labels>
<order>35</order>
</category>
<category>
<title>&#x1f9f9; Housekeeping</title>
<labels>dependabot</labels>
<order>70</order>
</category>
<category>
<key>build</key>
<title>&#x1f6e0; Build</title>
<order>80</order>
</category>
<category>
<title>nocl</title>
<labels>nocl,maven-release</labels>
</category>
</categories>
<hide>
<categories>dependabot,nocl</categories>
<contributors>GitHub,dependabot</contributors>
</hide>
</changelog>
</github>
</release>
<distributions>
<full-bundle>
<type>SINGLE_JAR</type>
<artifacts>
<artifact>
<path>dist/target/neo4j-jdbc-driver-{{projectVersion}}.zip</path>
</artifact>
</artifacts>
</full-bundle>
</distributions>
</jreleaser>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<?SORTPOM RESUME?>
<profile>
<id>no-release</id>
<!--
Expand Down

0 comments on commit 912aec0

Please sign in to comment.