Skip to content

Commit

Permalink
#513: Generate quality metrics.json (#592)
Browse files Browse the repository at this point in the history
* Fix user guide URL

* Update eclipse jdt config for new eclipse version

* Upgrade Maven plugins

* #585: Pin plugin versions

* Run PK fix

* #585: Adapt unit test

* Upgrade dependencies

* Mark eclipse config files as generated

* #585: Adapt integration test

* Update eclipse config files for latest version

* Fix dependencies

* #585: Add quality-summarizer-maven-plugin

* Fix review findings from other PRs

* Run PK fix

* Add coverage aggregator module

* Disable eclipse compiler flag --release

* Archive metrics.json

* Add changelog entry

* Upgrade to quality metrics plugin 0.2.0

* Verify that build created the metrics.json file

* Increment minor version

* Update release date

* Update doc/changes/changes_4.4.0.md

Co-authored-by: Sebastian Bär <[email protected]>

---------

Co-authored-by: Sebastian Bär <[email protected]>
  • Loading branch information
kaklakariada and redcatbear authored Oct 23, 2024
1 parent 9b44b1a commit e0ddda8
Show file tree
Hide file tree
Showing 26 changed files with 337 additions and 110 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .project-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ build:
name: Run project-keeper itself
id: build-pk-verify
run: mvn --batch-mode com.exasol:project-keeper-maven-plugin:verify --projects .
- action: INSERT_AFTER
stepId: build-pk-verify
content:
name: Verify that metrics.json was created
id: verify-metrics-json
run: |
# Ensure that file exists:
ls -lh coverage-aggregator/target/metrics.json
cat coverage-aggregator/target/metrics.json
# [itest->dsn~customize-build-process.dependency-check~0]
- name: "dependencies_check.yml"
Expand Down
98 changes: 98 additions & 0 deletions coverage-aggregator/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.exasol</groupId>
<artifactId>coverage-aggregator</artifactId>
<version>${revision}</version>
<name>Project Keeper Coverage Aggregator</name>
<description>This module collects test coverage from all other modules and aggregates it into a single report.</description>

<parent>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-parent-pom</artifactId>
<relativePath>../parent-pom/pom.xml</relativePath>
<version>${revision}</version>
</parent>
<dependencies>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-java-project-crawler</artifactId>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-core</artifactId>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-cli</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-maven-plugin</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-shared-model-classes</artifactId>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-shared-test-setup</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<id>jacoco-site-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.exasol</groupId>
<artifactId>quality-summarizer-maven-plugin</artifactId>
<version>0.2.0</version>
<executions>
<execution>
<id>summarize-metrics</id>
<goals>
<goal>summarize</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.6.3</version>
</requireMavenVersion>
<requireJavaVersion>
<version>17</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit e0ddda8

Please sign in to comment.