diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 1600e73..8677a51 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -3,9 +3,6 @@ name: maven-build on: push: branches: ['**/**'] - pull_request: - branches: [main] - types: [opened, synchronize, reopened, ready_for_review] jobs: build: runs-on: ubuntu-latest @@ -79,12 +76,8 @@ jobs: ] - name: 🔘 Print settings.xml run: cat /home/runner/.m2/settings.xml - - name: 📦 Build with Maven for Pushes - if: github.event_name == 'push' - run: mvn --batch-mode clean package sonar:sonar -Dsonar.branch.name=${{ github.head_ref }} - - name: 📦 Build with Maven for PRs - if: github.event_name == 'pull_request' - run: mvn --batch-mode clean package sonar:sonar -Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }} -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} + - name: 📦 Build with Maven + run: mvn --batch-mode clean package outputs: project_version: ${{ steps.project_version.outputs.project_version }} cache_key: ${{ steps.cache_key.outputs.cache_key }} diff --git a/pom.xml b/pom.xml index 7e1bdca..d31940e 100644 --- a/pom.xml +++ b/pom.xml @@ -52,6 +52,56 @@ ${env.POLARION_HOME}/polarion/extensions/${interceptor-manager.artifactId}/eclipse/plugins/${hooks.folder.name} + + + ch.sbb.polarion.extensions + ${interceptor-manager.artifactId} + ${ch.sbb.polarion.extension.interceptor-manager.version} + provided + + + + + org.jetbrains + annotations + ${jetbrains.api.version} + provided + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + ${maven-dependency-plugin.version} + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven-jar-plugin.version} + + + src/main/resources/META-INF/MANIFEST.MF + + ${maven-jar-plugin.Manifest-Version} + ${maven-jar-plugin.Bundle-ManifestVersion} + ${maven-jar-plugin.Automatic-Module-Name} + ${maven-jar-plugin.Hook-Version} + ${maven-jar-plugin.Bundle-Build-Timestamp} + ${maven-jar-plugin.Extension-Context} + + + + + + + + + install-to-local-polarion @@ -103,55 +153,4 @@ - - - - ch.sbb.polarion.extensions - ${interceptor-manager.artifactId} - ${ch.sbb.polarion.extension.interceptor-manager.version} - provided - - - - - org.jetbrains - annotations - ${jetbrains.api.version} - provided - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - ${maven-dependency-plugin.version} - - - - org.apache.maven.plugins - maven-jar-plugin - ${maven-jar-plugin.version} - - - src/main/resources/META-INF/MANIFEST.MF - - ${maven-jar-plugin.Manifest-Version} - ${maven-jar-plugin.Bundle-ManifestVersion} - ${maven-jar-plugin.Automatic-Module-Name} - ${maven-jar-plugin.Hook-Version} - ${maven-jar-plugin.Bundle-Build-Timestamp} - ${maven-jar-plugin.Extension-Context} - - - - - - - - -