Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ name: Release
on:
workflow_dispatch:
inputs:
java_version:
description: Java version to use
type: string
required: false
default: 17
releaseVersion:
description: "Default version to use when preparing a release."
required: true
Expand All @@ -24,9 +19,33 @@ on:
type: boolean

jobs:
build:
neo4jv4:
uses: jqassistant-tooling/jqassistant-github-actions/.github/workflows/release.yml@main
with:
java_version: 11
releaseVersion: ${{ github.event.inputs.releaseVersion }}
developmentVersion: ${{ github.event.inputs.developmentVersion }}
dryRun: ${{ github.event.inputs.dryRun }}
secrets:
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}
ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }}
ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
sonar_token: ${{ secrets.SONAR_TOKEN }}
clean-tag:
needs: neo4jv4
runs-on: ubuntu-latest
steps:
- uses: ClementTsang/delete-tag-and-release@v0.3.1
with:
tag_name: ${{ github.event.inputs.releaseVersion }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
neo4jv5:
needs: clean-tag
uses: jqassistant-tooling/jqassistant-github-actions/.github/workflows/release.yml@main
with:
java_version: 17
releaseVersion: ${{ github.event.inputs.releaseVersion }}
developmentVersion: ${{ github.event.inputs.developmentVersion }}
dryRun: ${{ github.event.inputs.dryRun }}
Expand Down
6 changes: 4 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ jqassistant:
plugins:
- group-id: org.jqassistant.plugin <1>
artifact-id: jqassistant-c4-plugin
classifier: <classifier> <2>
version: ${jqassistant.c4-plugin.version}
scan:
include:
files:
- ${project.basedir}/documentation/c4</path> <2>
- ${project.basedir}/documentation/c4</path> <3>
----
<1> Dependency to the C4 plugin
<2> Location of the `.puml`-files
<2> The classifier, use neo4jv4 for builds with JDK11/Neo4j 4 and neo4jv5 for builds with JDK17/Neo4j v5
<3> Location of the `.puml`-files

== Mapping between C4 and jQAssistant

Expand Down
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>antlr${antlr4.version}</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>${classifier.name}</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -146,6 +162,7 @@
</activation>
<properties>
<antlr4.version>4.7.2</antlr4.version>
<classifier.name>neo4jv4</classifier.name>
</properties>
</profile>
<profile>
Expand All @@ -155,6 +172,7 @@
</activation>
<properties>
<antlr4.version>4.13.1</antlr4.version>
<classifier.name>neo4jv5</classifier.name>
</properties>
</profile>
</profiles>
Expand Down