From 4187e222953e98e19340e034a1280486a5d2c3f5 Mon Sep 17 00:00:00 2001 From: EspenTinius Date: Wed, 4 Feb 2026 16:40:07 +0100 Subject: [PATCH 1/3] Plugins to pom.xml file added all the plugins from (Krav til prosjektkonfigurasjon i Maven), to the pom.xml file --- pom.xml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0c6225d..aae5c84 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ edu.ntnu.idi.idatt2003.g40.mappe mappe - 1.0-SNAPSHOT + 1.1-SNAPSHOT 25 @@ -14,4 +14,33 @@ UTF-8 + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.14.1 + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.5.4 + + + + org.openjfx + javafx-maven-plugin + 0.0.8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.12.0 + + + + + \ No newline at end of file From 516311bb1c44197b2381bd76903763de9996e0aa Mon Sep 17 00:00:00 2001 From: Tommy Aas Hjelle Date: Wed, 4 Feb 2026 16:58:00 +0100 Subject: [PATCH 2/3] Feat: Create main.yml Might not work initially, requires testing --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..268925a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +# This workflow will run maven tests when changes are pushed on main, or whenever a pull request is initiated. + +name: Maven Tests +on: + push: + branches: [main] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + runs-on: [self-hosted] + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 25 + uses: actions/setup-java@v4 + with: + java-version: '25' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Run tests + run: mvn clean test From 95e35c4c27a22b880739f94cf91fff7b9560840d Mon Sep 17 00:00:00 2001 From: Tommy Aas Hjelle Date: Wed, 4 Feb 2026 16:59:09 +0100 Subject: [PATCH 3/3] Create main.properties.json --- .github/workflows/main.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/workflows/main.properties.json diff --git a/.github/workflows/main.properties.json b/.github/workflows/main.properties.json new file mode 100644 index 0000000..d46ff7b --- /dev/null +++ b/.github/workflows/main.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Test using maven", + "description": "Runs maven tests for the entire project", + "iconName": "maven", + "categories": ["Continuous integration", "Java", "Maven"] +}