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

not work with jdk8 #180

Open
jackxu2011 opened this issue Feb 7, 2023 · 1 comment
Open

not work with jdk8 #180

jackxu2011 opened this issue Feb 7, 2023 · 1 comment
Assignees
Labels
type:bug Something isn't working

Comments

@jackxu2011
Copy link

Describe the bug
when use jdk8 run sync failed with error

 Execution sync of goal de.ingogriebsch.maven:sync-packagejson-version-maven-plugin:1.3.0:sync failed: An API incompatibility was encountered while executing de.ingogriebsch.maven:sync-packagejson-version-maven-plugin:1.3.0:sync: java.lang.NoSuchMethodError: java.util.Optional.orElseThrow()Ljava/lang/Object;

To Reproduce
Steps to reproduce the behavior:
run with jdk11 and jdk 17 is ok, but jdk8 error
config with maven

<plugin>
        <groupId>de.ingogriebsch.maven</groupId>
        <artifactId>sync-packagejson-version-maven-plugin</artifactId>
        <version>1.3.0</version>
        <executions>
          <execution>
            <id>sync</id>
            <goals>
              <goal>sync</goal>
            </goals>
            <phase>process-resources</phase>
          </execution>
        </executions>
      </plugin>

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment:

  • Maven version
    3.8.1
  • Java version
    java version "1.8.0_333"
    Additional context
  • Add any other context about the problem here.
@jackxu2011 jackxu2011 added the type:bug Something isn't working label Feb 7, 2023
@firone
Copy link

firone commented Nov 1, 2023

This plugins seems not compatible with java 8 at all.
I fixed one incompatibility but there is other problems : #189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants