Skip to content

Commit

Permalink
chore: remove code coverage --> not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ariwk committed Oct 29, 2024
1 parent 4d2520e commit 462cd39
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 60 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
101 changes: 50 additions & 51 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,56 @@
<target.hooks.directory>${env.POLARION_HOME}/polarion/extensions/${interceptor-manager.artifactId}/eclipse/plugins/${hooks.folder.name}</target.hooks.directory>
</properties>

<dependencies>
<dependency>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>${interceptor-manager.artifactId}</artifactId>
<version>${ch.sbb.polarion.extension.interceptor-manager.version}</version>
<scope>provided</scope>
</dependency>

<!-- Others -->
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${jetbrains.api.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Manifest-Version>${maven-jar-plugin.Manifest-Version}</Manifest-Version>
<Bundle-ManifestVersion>${maven-jar-plugin.Bundle-ManifestVersion}</Bundle-ManifestVersion>
<Automatic-Module-Name>${maven-jar-plugin.Automatic-Module-Name}</Automatic-Module-Name>
<Hook-Version>${maven-jar-plugin.Hook-Version}</Hook-Version>
<Bundle-Build-Timestamp>${maven-jar-plugin.Bundle-Build-Timestamp}</Bundle-Build-Timestamp>
<Extension-Context>${maven-jar-plugin.Extension-Context}</Extension-Context>
</manifestEntries>
</archive>
</configuration>
</plugin>

</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>install-to-local-polarion</id>
Expand Down Expand Up @@ -103,55 +153,4 @@
</build>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>${interceptor-manager.artifactId}</artifactId>
<version>${ch.sbb.polarion.extension.interceptor-manager.version}</version>
<scope>provided</scope>
</dependency>

<!-- Others -->
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${jetbrains.api.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Manifest-Version>${maven-jar-plugin.Manifest-Version}</Manifest-Version>
<Bundle-ManifestVersion>${maven-jar-plugin.Bundle-ManifestVersion}</Bundle-ManifestVersion>
<Automatic-Module-Name>${maven-jar-plugin.Automatic-Module-Name}</Automatic-Module-Name>
<Hook-Version>${maven-jar-plugin.Hook-Version}</Hook-Version>
<Bundle-Build-Timestamp>${maven-jar-plugin.Bundle-Build-Timestamp}</Bundle-Build-Timestamp>
<Extension-Context>${maven-jar-plugin.Extension-Context}</Extension-Context>
</manifestEntries>
</archive>
</configuration>
</plugin>

</plugins>
</pluginManagement>
</build>

</project>

0 comments on commit 462cd39

Please sign in to comment.