Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Log tool versions
run: |
java --version
./mvnw --version
mvn --version

- name: Cache Maven dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand All @@ -66,7 +66,7 @@ jobs:

- name: Build p2 update site
run: |
xvfb-run ./mvnw clean verify \
xvfb-run mvn clean verify \
checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check \
-f ./ddk-parent/pom.xml \
--batch-mode --fail-at-end
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Workspace Environment Variable
run: echo "WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV
- name: PMD Check
run: ./mvnw pmd:pmd pmd:cpd pmd:check pmd:cpd-check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
run: mvn pmd:pmd pmd:cpd pmd:check pmd:cpd-check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
checkstyle:
runs-on: ubuntu-24.04
steps:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Set up Workspace Environment Variable
run: echo "WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV
- name: Checkstyle Check
run: ./mvnw checkstyle:checkstyle checkstyle:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
run: mvn checkstyle:checkstyle checkstyle:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
line-endings:
runs-on: ubuntu-24.04
steps:
Expand All @@ -49,7 +49,7 @@ jobs:
distribution: 'temurin'
java-version: '21'
- name: Log Maven version
run: ./mvnw --version
run: mvn --version
- name: Set up Workspace Environment Variable
run: echo "WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV
- name: Restore Maven dependency cache
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Build with Maven within a virtual X Server Environment
# Run pmd:pmd and pmd:cpd first to generate reports for all modules, then run pmd:check and pmd:cpd-check
# This ensures all violations are collected and reported before the build fails
run: xvfb-run ./mvnw clean verify checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
run: xvfb-run mvn clean verify checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
- name: Fail on missing surefire reports
if: always()
run: bash .github/scripts/check-surefire-reports.sh
Expand Down
4 changes: 0 additions & 4 deletions .mvn/wrapper/maven-wrapper.properties

This file was deleted.

20 changes: 9 additions & 11 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,21 @@ This creates a local mirror of `.agents/skills/` at `.claude/skills/` (gitignore

## Build Commands

Use the Maven Wrapper (`./mvnw`, or `mvnw.cmd` on Windows). It pins Maven 3.9.x: Maven 3.10 cannot build this project yet (eclipse-tycho/tycho#6399).

```bash
# Full CI build (Linux - requires xvfb for UI tests)
xvfb-run ./mvnw clean verify checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
xvfb-run mvn clean verify checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end

# Windows build
mvnw.cmd clean verify -f ./ddk-parent/pom.xml
mvn clean verify -f ./ddk-parent/pom.xml

# Quick build without tests
./mvnw clean verify -f ./ddk-parent/pom.xml -DskipTests
mvn clean verify -f ./ddk-parent/pom.xml -DskipTests

# Build specific module
./mvnw clean verify -f ./ddk-parent/pom.xml -pl :com.avaloq.tools.ddk.xtext
mvn clean verify -f ./ddk-parent/pom.xml -pl :com.avaloq.tools.ddk.xtext

# Run only quality checks (after initial build)
./mvnw checkstyle:check pmd:check spotbugs:check -f ./ddk-parent/pom.xml
mvn checkstyle:check pmd:check spotbugs:check -f ./ddk-parent/pom.xml
```

## Quality Tools
Expand Down Expand Up @@ -124,19 +122,19 @@ These directories contain generated code - do not edit manually:
### Fixing PMD Violations
1. Check ruleset at `ddk-configuration/pmd/ruleset.xml`
2. Violations in generated code (`src-gen/`) are excluded
3. Run `./mvnw pmd:check -f ./ddk-parent/pom.xml` to verify fixes
3. Run `mvn pmd:check -f ./ddk-parent/pom.xml` to verify fixes

### Fixing Checkstyle Violations
1. Check config at `ddk-configuration/checkstyle/avaloq.xml`
2. Run `./mvnw checkstyle:check -f ./ddk-parent/pom.xml` to verify fixes
2. Run `mvn checkstyle:check -f ./ddk-parent/pom.xml` to verify fixes

### Running Specific Tests
```bash
# Run tests for a specific module
./mvnw verify -f ./ddk-parent/pom.xml -pl :com.avaloq.tools.ddk.xtext.test
mvn verify -f ./ddk-parent/pom.xml -pl :com.avaloq.tools.ddk.xtext.test

# On Linux, wrap with xvfb for UI tests
xvfb-run ./mvnw verify -f ./ddk-parent/pom.xml -pl :com.avaloq.tools.ddk.xtext.test
xvfb-run mvn verify -f ./ddk-parent/pom.xml -pl :com.avaloq.tools.ddk.xtext.test
```

## CI/CD
Expand Down
5 changes: 2 additions & 3 deletions ddk-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<test.timeout>1800</test.timeout>
<test.testClass>com.avaloq.tools.ddk.xtext.AllTests</test.testClass>

<!-- maven enforced version: Maven 3.10 rejects the nested-jar dependencies Tycho injects (eclipse-tycho/tycho#6399) -->
<maven-enforcer-rule.version>[3.9.0,3.10)</maven-enforcer-rule.version>
<!-- maven enforced version -->
<maven-enforcer-rule.version>[3.9.0,4)</maven-enforcer-rule.version>

<!-- maven plugin versions -->
<checkstyle.plugin.version>3.6.0</checkstyle.plugin.version>
Expand Down Expand Up @@ -157,7 +157,6 @@
<rules>
<requireMavenVersion>
<version>${maven-enforcer-rule.version}</version>
<message>Build with ./mvnw: Maven 3.10 cannot resolve bundles with nested jars yet (eclipse-tycho/tycho#6399).</message>
</requireMavenVersion>
</rules>
</configuration>
Expand Down
Loading