Commit d7770f93 authored by René Schöne's avatar René Schöne
Browse files

Add protobuf dependency and copied definition from panda_simulation repo.

parent a24d9c7d
apply plugin: 'jastadd'
apply plugin: 'application'
apply plugin: 'com.google.protobuf'
sourceCompatibility = 1.8
......@@ -13,6 +14,7 @@ buildscript {
repositories.jcenter()
dependencies {
classpath 'org.jastadd:jastaddgradle:1.13.3'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.12'
}
}
......@@ -23,6 +25,7 @@ dependencies {
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: "${jackson_version}"
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "${jackson_version}"
implementation group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
compile 'com.google.protobuf:protobuf-java:3.0.0'
jastadd2 "org.jastadd:jastadd:2.3.4"
}
......@@ -119,3 +122,12 @@ task relastToJastAdd(type: JavaExec) {
// Workflow configuration for phases
generateAst.dependsOn relastToJastAdd
protobuf {
// create strange directories, so use default here
// generatedFilesBaseDir = "$projectDir/src/gen/java"
protoc {
// The artifact spec for the Protobuf Compiler
artifact = 'com.google.protobuf:protoc:3.0.0'
}
}
syntax = "proto3";
package config;
message DataConfig {
bool enablePosition = 1;
bool enableOrientation = 2;
bool enableTwistLinear = 3;
bool enableTwistAngular = 4;
int32 publishRate = 5;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment