Pipeline always buil on Java 1.6 but my project is set to Java 1.8

My project is set to Java 1.8 but pipeline always builds my project to Java 1.6.

My pipeline configuration image is maven:3.3.9-jdk-8.

 

Pipeline build always return the following errors:

 

[ERROR] bootstrap class path not set in conjunction with -source 1.6
./TAppWeb/src/main/java/tapp/cup/team/automation/objectaccess/TAppWebTest.java:[138,32] error: multi-catch statement is not supported in -source 1.6

[ERROR] (use -source 7 or higher to enable multi-catch statement)
./TAppWeb/src/main/java/tapp/cup/team/automation/objectaccess/TAppWebTest.java:[556,61] error: lambda expressions are not supported in -source 1.6

[ERROR] (use -source 8 or higher to enable lambda expressions)
./TAppWeb/src/main/java/tapp/cup/team/automation/objectaccess/TAppIOSTest.java:[93,32] error: multi-catch statement is not supported in -source 1.6

[ERROR] (use -source 7 or higher to enable multi-catch statement)
./TAppWeb/src/main/java/tapp/cup/team/automation/objectaccess/TAppAndroidTest.java:[95,32] error: multi-catch statement is not supported in -source 1.6

[ERROR] (use -source 7 or higher to enable multi-catch statement)

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Thanksgiving Tuesday

Good morning All, First of all, Happy early Thanksgiving from the NOVA AUG Leaders! I am anticipating no one will be looking at the group on Thanksgiving Day 😊 Today's topic will be different th...

29 views 4 2
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you