在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):wpilibsuite/GradleRIO开源软件地址(OpenSource Url):https://github.com/wpilibsuite/GradleRIO开源编程语言(OpenSource Language):Java 92.9%开源软件介绍(OpenSource Introduction):GradleRIOGradleRIO is a powerful Gradle Plugin that allows teams competing in the FIRST robotics competition to produce and build their code. GradleRIO works with Java and C++ (and others!), on Windows, Mac and Linux. GradleRIO automatically fetches WPILib, Tools, and Vendor Libraries. For 2019+, GradleRIO is the official build system for the FIRST Robotics Competition! The officially supported IDE is Visual Studio Code (VS Code), using the WPILib Extension. frc-docs is the best place for documentation: https://docs.wpilib.org/en/stable/ Other IDEs like IntelliJ IDEA, Eclipse, Visual Studio, and CLion are also supported, unofficially. You may also use this tool exclusively from the command line, allowing use of any IDE or text editor (like Sublime Text, Atom or Vim). Getting Started - Creating a new projectWith Visual Studio Code (recommended)For getting started with VS Code, please see the frc-docs documentation: https://docs.wpilib.org/en/stable/docs/zero-to-robot/introduction.html Without Visual Studio CodeFollow the installation instructions on frc-docs: https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html Note that the offline installer isn't required, but will save you a ton of time and is highly recommended. You can deselect the option of VS Code if you wish. WPILibUtility Standalone Project Builder WPILib provides a standalone project builder that provides the same interface as VS Code, without having to use VS Code. If you've used the installer, find and run Use the WPILib Utility whenever you want to create a new project. GradleRIO Example Project Go to the latest release on GitHub: https://github.com/wpilibsuite/GradleRIO/releases. Download the .zip file corresponding to your language and extract it. Adding Vendor LibrariesWith Visual Studio CodeOpen the command palette with CTRL + SHIFT + P, or by clicking the WPILib icon.
Open Without Visual Studio CodeCreate a folder CommandsWindows Users: It is recommended to use Powershell instead of CMD. You can switch to powershell with General
Tools
At Competition? Connected to the Robot? Run with the IDE SupportVisual Studio Code:VS Code is fully supported by GradleRIO for FRC. To use it, use the WPILib VS Code extension. See frc-docs for instructions. IntelliJ IDEA:IntelliJ IDEA support is unofficial in the FRC sense, but is well supported by the Gradle team. CSA Support isn't guaranteed, so make sure you're prepared to fix any issues yourself if you're at an event. To import a gradle project into IntelliJ IDEA please do one of the following:
IntelliJ may ask to import the Gradle project in the bottom right of the IDE, simple click Please see the IntelliJ IDEA help page on gradle for help: https://www.jetbrains.com/help/idea/gradle.html EclipseEclipse support is unofficial in the FRC sense, but is well supported by the Gradle team. CSA Support isn't guaranteed, so make sure you're prepared to fix any issues yourself if you're at an event. Eclipse is only supported for JAVA (not C++) First install buildship, the gradle plugin made by Eclipse for the Eclipse IDE. Installation instructions can be found here: https://github.com/eclipse/buildship/blob/master/docs/user/Installation.md Once installed, navigate to Press the Please see the buildship github page for help (specifically the user documentation and the forums): https://github.com/eclipse/buildship Visual Studio 2017 Community / Full (not Visual Studio Code)VS2017 support is unofficial in the FRC sense, but is well supported by the Gradle team. CSA Support isn't guaranteed, so make sure you're prepared to fix any issues yourself if you're at an event. To start with, you must apply the plugins {
id 'visual-studio'
} Finally, you can generate and open your solution with the following command:
Please see the gradle guide on building native software for help: https://docs.gradle.org/current/userguide/native_software.html#native_binaries:visual_studio UpgradingTo upgrade your Gradle project (and GradleRio plugin) from one year to the next follow the Importing a Gradle Project instructions in the WPILib Documentation. For mid-season updates to GradleRio, edit build.gradle and replace the version in the plugin line (only change the GradleRIO line): plugins {
// ... other plugins ...
id "edu.wpi.first.GradleRIO" version "REPLACE ME WITH THE LATEST VERSION"
} The latest version can be obtained from here: https://plugins.gradle.org/plugin/edu.wpi.first.GradleRIO Deploying Experimental JDK
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论