Skip to content

Commit

Permalink
Fix deprecated java plugin conventions (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhvy authored Sep 12, 2023
1 parent 7b0a274 commit 127a0c1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
6 changes: 4 additions & 2 deletions vscode-wpilib/resources/gradle/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ plugins {
id "edu.wpi.first.GradleRIO" version "###GRADLERIOREPLACE###"
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

def ROBOT_MAIN_CLASS = "###ROBOTCLASSREPLACE###"

Expand Down
5 changes: 5 additions & 0 deletions vscode-wpilib/resources/gradle/javadt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ plugins {
id "edu.wpi.first.GradleRIO" version "###GRADLERIOREPLACE###"
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

def ROBOT_MAIN_CLASS = "###ROBOTCLASSREPLACE###"

// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
Expand Down
6 changes: 4 additions & 2 deletions vscode-wpilib/resources/gradle/javaromi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ plugins {
id "edu.wpi.first.GradleRIO" version "###GRADLERIOREPLACE###"
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

def ROBOT_MAIN_CLASS = "###ROBOTCLASSREPLACE###"

Expand Down
6 changes: 4 additions & 2 deletions vscode-wpilib/resources/gradle/javaxrp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ plugins {
id "edu.wpi.first.GradleRIO" version "###GRADLERIOREPLACE###"
}

sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

def ROBOT_MAIN_CLASS = "###ROBOTCLASSREPLACE###"

Expand Down

0 comments on commit 127a0c1

Please sign in to comment.