Skip to content

Commit 9e9fbfb

Browse files
committed
Maven clean up
Add enforcer plugin to enforce minimum JDK version Remove duplicate dependencies Set default goal to test Update Roq version Add workflow to test site build for PRs Archive generated site after test
1 parent a87da65 commit 9e9fbfb

File tree

2 files changed

+46
-9
lines changed

2 files changed

+46
-9
lines changed

.github/workflows/testsite.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test site build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up JDK 17
12+
uses: actions/setup-java@v4
13+
with:
14+
java-version: '17'
15+
distribution: 'temurin'
16+
cache: maven
17+
- name: Build with Maven
18+
run: mvn --batch-mode test
19+
- name: Archive generated site
20+
uses: actions/upload-artifact@v4
21+
with:
22+
name: generated-site
23+
path: ./target/roq/

pom.xml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<version>1.0.0-SNAPSHOT</version>
77

88
<properties>
9-
<maven.compiler.release>21</maven.compiler.release>
9+
<maven.compiler.release>17</maven.compiler.release>
1010
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1111
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1212

@@ -15,7 +15,7 @@
1515
<skipITs>true</skipITs>
1616

1717
<version.compiler-plugin>3.14.0</version.compiler-plugin>
18-
<version.quarkus-roq>1.5.1</version.quarkus-roq>
18+
<version.quarkus-roq>1.5.4</version.quarkus-roq>
1919
<version.quarkus.platform>3.22.1</version.quarkus.platform>
2020
<version.surefire-plugin>3.5.2</version.surefire-plugin>
2121
</properties>
@@ -58,17 +58,10 @@
5858
<artifactId>quarkus-roq-plugin-asciidoc-jruby</artifactId>
5959
<version>${version.quarkus-roq}</version>
6060
</dependency>
61-
<dependency>
62-
<groupId>io.quarkiverse.roq</groupId>
63-
<artifactId>quarkus-roq-plugin-tagging</artifactId>
64-
<version>${version.quarkus-roq}</version>
65-
</dependency>
66-
6761
<dependency>
6862
<groupId>io.quarkus</groupId>
6963
<artifactId>quarkus-arc</artifactId>
7064
</dependency>
71-
7265
<dependency>
7366
<groupId>io.quarkus</groupId>
7467
<artifactId>quarkus-junit5</artifactId>
@@ -83,7 +76,28 @@
8376
</dependencies>
8477

8578
<build>
79+
<defaultGoal>test</defaultGoal>
8680
<plugins>
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-enforcer-plugin</artifactId>
84+
<version>3.5.0</version>
85+
<executions>
86+
<execution>
87+
<id>enforce-java</id>
88+
<goals>
89+
<goal>enforce</goal>
90+
</goals>
91+
<configuration>
92+
<rules>
93+
<requireJavaVersion>
94+
<version>[${maven.compiler.release},)</version>
95+
</requireJavaVersion>
96+
</rules>
97+
</configuration>
98+
</execution>
99+
</executions>
100+
</plugin>
87101
<plugin>
88102
<groupId>${quarkus.platform.group-id}</groupId>
89103
<artifactId>quarkus-maven-plugin</artifactId>

0 commit comments

Comments
 (0)