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
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

93 views 0 5
Read article

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