aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
490 stars 182 forks source link

can't finish feature with Java 11 version in project #290

Closed karolbryzgiel closed 3 years ago

karolbryzgiel commented 3 years ago

When i finishing feature, maven compiler can't compile the project because of java 11 functions in project. I saw that gitflow-maven-plugin has default java 1.7 version in maven compiler. It would be nice to be able to define what java version the project should compile in

aleksandr-m commented 3 years ago

@Karolok It is working fine with jdk11. Post the error you're getting.

karolbryzgiel commented 3 years ago

I am using kotlin in my project and compilation by maven works, but during finish feature not because of two properties which are since JDK11

I have this error during finish feature: image

aleksandr-m commented 3 years ago

@Karolok Try to build your project from the command line, not from your IDE, e.g. mvn clean package.

karolbryzgiel commented 3 years ago

From command-line mvn clean package working fine. And after that, plugin from command line work too. Before, I tried finish feature from IDE with maven and it not worked. I switched JAVA_HOME version to 11 and it working now. Thank you for help :)