Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade project to latest versions of Java, JaCoCo, Coveralls and TravisCI #13

Merged
merged 6 commits into from
Feb 27, 2021

Conversation

marccarre
Copy link
Owner

Changelog

  • Upgrade maven-compiler-plugin's Java version from 1.6 to 1.7.
  • Upgrade CI to please latest version of TravisCI.
  • Upgrade Coveralls from v3.0.1 to v4.3.0.
  • Upgrade JaCoCo from v0.7.2 to v0.8.6.
  • Remove Surefire plugin, as conflicting with JaCoCo.
  • Add missing JAXB dependency required by Coveralls in recent Java versions.

This fixes compilation errors like:

```
Compilation failure:
[ERROR] Source option 6 is no longer supported. Use 7 or later.
[ERROR] Target option 6 is no longer supported. Use 7 or later.
```

with recent Java versions:

```
$ java -version
openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-46)
OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
```
... as it seems to prevent jacoco from generating reports
... as otherwise the coveralls plugin fails with:

```
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : javax.xml.bind.DatatypeConverter
```

See also `after_success` step in: https://travis-ci.org/github/marccarre/commons-testing/jobs/760688677
@marccarre marccarre merged commit 8d84fd3 into master Feb 27, 2021
@marccarre marccarre deleted the upgrade-project branch February 27, 2021 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant