We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

jnlcd's avatar
jnlcd
Explorer | Level 3
5 years ago

API java generate source yields error from stone

I've read about how to build source in java from: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-Java-missing-source-files/m-p/226879

 

However I follow the steps and it looks like the stone usage from within the build is not running properly.

 

My log from gitbash:

jan.lacdao@Jan-Lacdao MINGW64 ~/Downloads/dbox/dropbox-sdk-java (master)
$ ./gradlew build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Configure project :
Set JDK6_HOME environment to disable boot classpath warnings.

> Task :generateStone FAILED
C:\Users\jan.lacdao\Downloads\dbox\dropbox-sdk-java\stone\stone\cli.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
error: Specification 'C:\Users\jan.lacdao\Downloads\dbox\dropbox-sdk-java\build\generated\source\stone\main\src' must have a .stone extension.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\jan.lacdao\Downloads\dbox\dropbox-sdk-java\stone.gradle' line: 78

* What went wrong:
Execution failed for task ':generateStone'.
> Process 'command 'python'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s
1 actionable task: 1 executed

Anyone can help here? Thanks.

  • Have you made any changes to the Java SDK project? If so, can you let me know what?

     

    Also, for reference, if you don't need to make changes we recommend that you don't build from source. If you don't need to make changes it's much easier to use one of the pre-built releases, e.g., via Maven or Gradle as documented here.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Have you made any changes to the Java SDK project? If so, can you let me know what?

     

    Also, for reference, if you don't need to make changes we recommend that you don't build from source. If you don't need to make changes it's much easier to use one of the pre-built releases, e.g., via Maven or Gradle as documented here.

    • jnlcd's avatar
      jnlcd
      Explorer | Level 3

      Hi Greg,

       

      Thanks for the prompt response. I haven't been maintaining much of our code but it seems that the previous maintainer was adding custom logging upon each retry from the v2 client classes and perhaps adding another class to inherit might be the better approach.

       

      Regardless I think I am good with my setup now and I am good to close this ticket.

       

      Regards,

      Jan

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API

Make connections with other developers

795 PostsLatest Activity: 7 days ago
192 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!