Open alajangi opened 9 years ago
In that project the protobuf https://github.com/stealthly/f2k/blob/master/src/main/proto/FileType.proto is compiled/generated in the gradle task using the plugin https://github.com/stealthly/f2k/blob/master/build.gradle#L17
You need to have protobuf https://github.com/google/protobuf/ installed and have it setup for your environment appropriately (see protoBuf {} gradle task in build.gradle https://github.com/stealthly/f2k/blob/master/build.gradle#L19-L24 )
The README should get updated and we should have a vagrant up (or docker) implementation so it works right from the repo better without having to-do much local for others so they don't bump into this and then work around it locally by installing protobuf.
Hi joestein,
After I installed protoc when I run ./gradlew clean fatJar I am getting the compileJava error, see the below output and suggest me the next step.
f2k]# ./gradlew clean fatJar
Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties.
Deprecated dynamic property: "mainClassName" on "root project 'f2k'", value: "ly.stealth.f2k.Main".
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:cleanProto
:clean
:compileProto
Compiling FileType.proto for Linux
/usr/local/bin/protoc -I=/root/f2k/src/main/proto --java_out=src/main/java /root/f2k/src/main/proto/FileType.proto
:compileJava
/root/f2k/src/main/java/ly/stealth/f2k/FileTypes.java:105: error: cannot find symbol
public static com.google.protobuf.Parser
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':compileJava'.
Compilation failed; see the compiler error output for details.
BUILD FAILED
Total time: 4.907 secs
Thanks.
Hi,
I am cloned this repo with
git clone https://github.com/stealthly/f2k.git
cd f2k
when I run .
./gradlew clean fatJar
the error is "Execution failed for task ':compileProto'."
when I run with --debug option it gives the info
Gradle user home: /root/.gradle Current dir: /root/f2k java.io.IOException: Cannot run program "/usr/bin/protoc" (in directory "/root/f2k"): error=2, No such file or directory
but when I run from /root
./f2k/gradlew clean fatJar --stacktrace
the error is "Task 'clean' not found in root project 'root'."
Please help me how to build this.
Thanks.