Grover-c13 / PokeGOAPI-Java

Pokemon Go API
GNU General Public License v3.0
1.05k stars 334 forks source link

[QUESTION] How to build "PokeGOAPI-library-all-0.X.X.jar" in Windows 10 OS ? #943

Open Tommy-Emmanuel opened 7 years ago

Tommy-Emmanuel commented 7 years ago

Description: Build "PokeGOAPI-library-all-0.X.X.jar" fail when I build source in Windows 10 OS Appear error "The filename or extension is too long"

Steps to reproduce:

  1. Clone the repo and cd into the folder
  2. git submodule update --init
  3. gradlew :library:build

Expected behavior: Have the api jar in library/build/libs/PokeGOAPI-library-all-0.X.X.jar

Actual behavior: Build fail, appear error "The filename or extension is too long"

Stacktrace (If it's a crash): gradlew :library:build Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details You are using Gradle 3.0: This version of the protobuf plugin works with Gradle version 2.12+ The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead. :library:extractIncludeProto :library:extractProto UP-TO-DATE :library:generateProto FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 27.18 secs

Version: 0.79.4

Gegy commented 7 years ago

Related to https://github.com/google/protobuf-gradle-plugin/pull/174. This happens due to the command line length limit on Windows, and how protobuf passes all proto locations through in one call.