Comments (2)
Thanks for the interest, I think you are the first person I don't know trying to use this, so you may be in a little bit of a guinea pig situation for a couple days.
It looks like when I was writing the docs I was using a local maven repo, and those intermediate versions didn't get published. I'll update the plugin to point to the release I made last night which includes game data, and update the documentation.
In the meantime, you can add a line like this to your build script
snobotSimVersions {
snobotSimVersion = "0.7.0"
}
You can use ours as an example https://github.com/ArcticWarriors/snobot-2018/blob/master/RobotCode/snobot2018/build.gradle
from snobotsim.
Awesome, thank you so much! After looking at your build.gradle
I created a new GradleRIO workspace and used the build.gradle
below. After running gradlew build
and gradlew eclipse
, I was in working order. Thanks again and good luck this season!
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id "java"
id "eclipse"
id "idea"
id "jaci.openrio.gradle.GradleRIO" version "2018.01.07"
id "com.snobot.simulator.plugin.SnobotSimulatorPlugin" version "2018.01.01"
}
apply plugin: com.snobot.simulator.plugin.SnobotSimulatorPlugin
snobotSimVersions {
snobotSimVersion = "0.7.0"
}
def TEAM = 5805
def ROBOT_CLASS = "com.smblyrequired.SMbly2018.Robot"
// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project EmbeddedTools.
deploy {
targets {
target("roborio", jaci.openrio.gradle.frc.RoboRIO) {
team = TEAM
}
}
artifacts {
artifact('frcJava', jaci.openrio.gradle.frc.FRCJavaArtifact) {
targets << "roborio"
}
}
}
// Defining my dependencies. In this case, WPILib (+ friends), CTRE Toolsuite (Talon SRX)
// and NavX.
dependencies {
compile wpilib()
compile ctre()
compile navx()
compile openrio.powerup.matchData()
testCompile snobotSimCompile()
testCompile snobotSimJavaCompile()
}
// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
// in order to make them all available at runtime. Also adding the manifest so WPILib
// knows where to look for our Robot Class.
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest jaci.openrio.gradle.GradleRIOPlugin.javaManifest(ROBOT_CLASS)
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
}
repositories {
mavenLocal()
mavenCentral()
}
from snobotsim.
Related Issues (20)
- CANSparkMax.set(0) does not stop PID from running HOT 2
- Smart Dashboard? HOT 2
- Encoder getRate not working HOT 3
- Cannot read individual trigger values
- What's the license for the code? HOT 1
- CTRE Issue HOT 16
- Gradle `simulate` task fails HOT 4
- Could not get unknown property Linux HOT 2
- Unsatisfied Link Using CTRE Phoenix (WPI_TalonSRX) calls HOT 3
- Gradle 5
- Having a problem setting the robot class HOT 6
- Build Failure HOT 3
- Having problems while download with Gradle HOT 3
- Simulator is not building HOT 12
- runSnobotSim doesn't work HOT 4
- Use VSCode to debug simulations
- Problems with the HAT switch on Logitech Extreme 3D Pro Joystick
- Failed to acquire device error for HID touchpad
- CANSparkMax simulation usage HOT 1
- runJavaSnobotSim task not finishing. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snobotsim.