Skip to content

Commit

Permalink
Force java 8 mode for java projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Jul 25, 2018
1 parent 2921334 commit ea56664
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions vscode-wpilib/package.json
@@ -1,6 +1,7 @@
{
"name": "vscode-wpilib",
"displayName": "WPILib",
"author": "WPI/FIRST",
"description": "VSCode extension for WPILib Team Use",
"version": "0.1.0",
"publisher": "wpifirst",
Expand Down
7 changes: 7 additions & 0 deletions vscode-wpilib/resources/gradle/java/build.gradle
Expand Up @@ -42,6 +42,13 @@ jar {
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_CLASS)
}

// Force Java 8 Compatibility mode for deployed code, in case the develoment
// system is using Java 10.
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

wrapper {
gradleVersion = '4.9'
}

0 comments on commit ea56664

Please sign in to comment.