Skip to content
Merged
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
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project uses [Semantic Versioning](https://semver.org/).

## [Unreleased]

## [2.5.0] — 2026-09-01

### Fixed

- **sbt plugin restored to sbt 1.x compatibility.** v2.4.0 used the 3-arg
Expand All @@ -14,7 +16,8 @@ This project uses [Semantic Versioning](https://semver.org/).
`java.lang.NoSuchMethodError: sbt.Command$.process(...)`. Switched back to the
2-arg overload and pinned `pluginCrossBuild / sbtVersion` to `1.9.0` so the
plugin can no longer compile against newer-than-1.9 sbt APIs.
([#76](https://github.com/MoranaApps/jacoco-method-filter/issues/76))
([#76](https://github.com/MoranaApps/jacoco-method-filter/issues/76),
[#77](https://github.com/MoranaApps/jacoco-method-filter/pull/77))

## [2.4.0] — 2026-09-01

Expand Down Expand Up @@ -151,7 +154,8 @@ This project uses [Semantic Versioning](https://semver.org/).
- Rule syntax: `<class>#<method>(<descriptor>)` with glob patterns.
- `@CoverageGenerated` annotation injection.

[Unreleased]: https://github.com/MoranaApps/jacoco-method-filter/compare/v2.4.0...HEAD
[Unreleased]: https://github.com/MoranaApps/jacoco-method-filter/compare/v2.5.0...HEAD
[2.5.0]: https://github.com/MoranaApps/jacoco-method-filter/compare/v2.4.0...v2.5.0
[2.4.0]: https://github.com/MoranaApps/jacoco-method-filter/compare/v2.3.0...v2.4.0
[2.3.0]: https://github.com/MoranaApps/jacoco-method-filter/compare/v2.2.0...v2.3.0
[2.2.0]: https://github.com/MoranaApps/jacoco-method-filter/compare/v2.1.1...v2.2.0
Expand Down
6 changes: 3 additions & 3 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ Artifacts will appear in:
```scala
// project/plugins.sbt
resolvers += Resolver.defaultLocal
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.4.0")
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.5.0")

// build.sbt
enablePlugins(morana.coverage.JacocoFilterPlugin)
libraryDependencies += "io.github.moranaapps" %% "jacoco-method-filter-core" % "2.4.0"
libraryDependencies += "io.github.moranaapps" %% "jacoco-method-filter-core" % "2.5.0"
```

#### Maven (local snapshot)
Expand All @@ -74,7 +74,7 @@ libraryDependencies += "io.github.moranaapps" %% "jacoco-method-filter-core" % "
<dependency>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-core_2.13</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
</dependency>
</dependencies>
```
14 changes: 8 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
**Integration-test fixtures** (must match the version being released so CI runs against the new artifacts):
6. `integration-tests/fixtures/sbt-basic/project/plugins.sbt`
7. `integration-tests/fixtures/sbt-scala211/project/plugins.sbt`
8. `integration-tests/test-maven-report-custom.sh` — inline `<version>` in the generated `pom-custom.xml`
8. `integration-tests/fixtures/sbt-19x/project/plugins.sbt`
9. `integration-tests/test-maven-report-custom.sh` — inline `<version>` in the generated `pom-custom.xml`

**Docs & defaults** (user-facing references to the current version):
9. `sbt-plugin/src/main/scala/morana/coverage/JacocoFilterPlugin.scala` — `jmfCoreVersion` default
10. `DEVELOPER.md` — install snippets
11. `sbt-plugin/README.md` — install snippet
12. `maven-plugin/README.md` — install snippets
10. `sbt-plugin/src/main/scala/morana/coverage/JacocoFilterPlugin.scala` — `jmfCoreVersion` default
11. `DEVELOPER.md` — install snippets
12. `sbt-plugin/README.md` — install snippet
13. `maven-plugin/README.md` — install snippets

**Changelog**:
13. `CHANGELOG.md` — rename `## [Unreleased]` to `## [<version>] — <date>`, add a fresh empty
14. `CHANGELOG.md` — rename `## [Unreleased]` to `## [<version>] — <date>`, add a fresh empty
`## [Unreleased]`, and update the link references at the bottom (`[Unreleased]`, new `[<version>]`).

- Use [semantic versioning](https://semver.org/).
Expand Down Expand Up @@ -157,6 +158,7 @@ git push origin master
`examples/maven-scala/pom.xml` (examples)
- [ ] Version updated in `integration-tests/fixtures/sbt-basic/project/plugins.sbt`,
`integration-tests/fixtures/sbt-scala211/project/plugins.sbt`,
`integration-tests/fixtures/sbt-19x/project/plugins.sbt`,
`integration-tests/test-maven-report-custom.sh` (integration-test fixtures)
- [ ] Version updated in `sbt-plugin/src/main/scala/morana/coverage/JacocoFilterPlugin.scala`
(`jmfCoreVersion` default), `DEVELOPER.md`, `sbt-plugin/README.md`, `maven-plugin/README.md` (docs)
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sbtassembly.AssemblyPlugin.autoImport._
ThisBuild / organization := "io.github.moranaapps"
ThisBuild / scalaVersion := "2.12.21" // default
ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.21", "2.13.13")
ThisBuild / version := "2.4.0"
ThisBuild / version := "2.5.0"
ThisBuild / versionScheme := Some("early-semver")

// Central (bundle flow)
Expand Down
2 changes: 1 addition & 1 deletion examples/maven-basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<plugin>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<executions>
<!-- Rewrite: annotate methods matching rules -->
<execution>
Expand Down
2 changes: 1 addition & 1 deletion examples/maven-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<plugin>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<executions>
<!-- Rewrite: annotate methods matching rules -->
<execution>
Expand Down
2 changes: 1 addition & 1 deletion examples/sbt-basic/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.4.0")
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.5.0")

2 changes: 1 addition & 1 deletion integration-tests/fixtures/sbt-19x/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// CI fixture: verifies the plugin loads and runs on sbt 1.9.x (the 3-arg
// Command.process overload used up to v2.4.0 only exists in sbt >= 1.10.0).
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.4.0")
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.5.0")
2 changes: 1 addition & 1 deletion integration-tests/fixtures/sbt-basic/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CI fixture: plugin dependency is enabled (unlike examples/sbt-basic where it is
// commented out for safe cloning). Integration tests copy this directory instead
// of using fragile sed-based uncommenting.
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.4.0")
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.5.0")
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Reference local publish of jacoco-method-filter-sbt plugin
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.4.0")
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.5.0")
2 changes: 1 addition & 1 deletion integration-tests/test-maven-report-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ cat > pom-custom.xml << 'EOF'
<plugin>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<executions>
<execution>
<id>filter-coverage</id>
Expand Down
10 changes: 5 additions & 5 deletions maven-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Maven plugin for filtering JaCoCo coverage by annotating methods based on config

- Java 8 or higher
- Maven 3.6 or higher
- `jacoco-method-filter-core_2.12:2.4.0` dependency (automatically included)
- `jacoco-method-filter-core_2.12:2.5.0` dependency (automatically included)
- JaCoCo CLI 0.8.15 (automatically included)

## Implementation Details
Expand Down Expand Up @@ -60,7 +60,7 @@ Add to your `pom.xml` (recommended: inside a coverage profile):
<plugin>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -156,7 +156,7 @@ Rewrites compiled class files to add `@CoverageGenerated` annotations to methods
<plugin>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<executions>
<execution>
<goals>
Expand All @@ -173,7 +173,7 @@ Rewrites compiled class files to add `@CoverageGenerated` annotations to methods
<plugin>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<configuration>
<globalRules>https://example.com/team-rules.txt</globalRules>
<localRules>${project.basedir}/jmf-rules.txt</localRules>
Expand Down Expand Up @@ -258,7 +258,7 @@ Generates JaCoCo coverage reports (HTML, XML, CSV) using filtered classes.
<plugin>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<executions>
<execution>
<id>report</id>
Expand Down
4 changes: 2 additions & 2 deletions maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
<packaging>maven-plugin</packaging>

<name>JaCoCo Method Filter Maven Plugin</name>
Expand Down Expand Up @@ -70,7 +70,7 @@
<dependency>
<groupId>io.github.moranaapps</groupId>
<artifactId>jacoco-method-filter-core_2.12</artifactId>
<version>2.4.0</version>
<version>2.5.0</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sbt-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The plugin executes the coverage flow by:
Add to `project/plugins.sbt`:

```scala
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.4.0")
addSbtPlugin("io.github.moranaapps" % "jacoco-method-filter-sbt" % "2.5.0")
```

Enable the plugin in your `build.sbt`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ object JacocoFilterPlugin extends AutoPlugin {

// ---- defaults + coordinates
jacocoVersion := "0.8.15",
jmfCoreVersion := "2.4.0",
jmfCoreVersion := "2.5.0",
libraryDependencies ++= Seq(
("org.jacoco" % "org.jacoco.agent" % jacocoVersion.value % Test).classifier("runtime"),
("org.jacoco" % "org.jacoco.cli" % jacocoVersion.value % Test).classifier("nodeps"),
Expand Down
Loading