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
41 changes: 15 additions & 26 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,27 @@ name: CI Lint

on:
pull_request:
types:
- opened
- synchronize
- reopened
types: [opened, synchronize, reopened]
push:
branches:
- main
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
name: Static checks
runs-on: ubuntu-latest
permissions:
contents: read
maven-policy:
name: Shared Maven policy
uses: HauntedMC/HauntedPlatform/.github/workflows/[email protected]
with:
maven-command: ./mvnw -U -B -ntp -DskipTests verify
secrets:
PACKAGES_USER: ${{ secrets.HAUNTEDMC_PACKAGES_USERNAME }}
PACKAGES_TOKEN: ${{ secrets.HAUNTEDMC_PACKAGES_TOKEN }}

shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "25"
cache: maven

- name: Run Checkstyle
run: ./mvnw -U -B -ntp -DskipTests checkstyle:check

- name: Lint shell scripts
run: shellcheck update_version.sh dataprovider-platform-acceptance/run-platform-acceptance.sh
- uses: actions/checkout@v4
- run: shellcheck update_version.sh dataprovider-platform-acceptance/run-platform-acceptance.sh
2 changes: 2 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--settings
.mvn/settings.xml
9 changes: 9 additions & 0 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
<servers><server><id>github</id><username>${env.PACKAGES_USER}</username><password>${env.PACKAGES_TOKEN}</password></server></servers>
<profiles><profile><id>hauntedmc-github-packages</id>
<repositories><repository><id>central</id><url>https://repo.maven.apache.org/maven2</url></repository><repository><id>github</id><url>https://maven.pkg.github.com/hauntedmc/*</url><snapshots><enabled>true</enabled></snapshots></repository></repositories>
<pluginRepositories><pluginRepository><id>central</id><url>https://repo.maven.apache.org/maven2</url></pluginRepository><pluginRepository><id>github</id><url>https://maven.pkg.github.com/hauntedmc/*</url><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories>
</profile></profiles>
<activeProfiles><activeProfile>hauntedmc-github-packages</activeProfile></activeProfiles>
</settings>
15 changes: 11 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>nl.hauntedmc.platform</groupId>
<artifactId>haunted-library-parent</artifactId>
<version>1.0.0</version>
<relativePath/>
</parent>

<groupId>nl.hauntedmc.dataprovider</groupId>
<artifactId>dataprovider-parent</artifactId>
<version>${revision}</version>
Expand Down Expand Up @@ -54,10 +61,6 @@
<properties>
<!-- Project identity and compiler configuration. -->
<revision>3.2.0</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>25</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>

<!-- Platform APIs and production dependencies. -->
<paper.version>26.2.build.112-stable</paper.version>
Expand Down Expand Up @@ -123,6 +126,10 @@
</repository>
</repositories>

<pluginRepositories>
<pluginRepository><id>github</id><url>https://maven.pkg.github.com/HauntedMC/*</url></pluginRepository>
</pluginRepositories>

<dependencyManagement>
<dependencies>
<!-- Pin transitive versions so release builds enforce one convergent runtime graph. -->
Expand Down
Loading