Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: 1.4 Java starter doesn't work #59

Closed
2 tasks done
stnguyen90 opened this issue Oct 16, 2023 · 1 comment
Closed
2 tasks done

🐛 Bug Report: 1.4 Java starter doesn't work #59

stnguyen90 opened this issue Oct 16, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@stnguyen90
Copy link
Contributor

👟 Reproduction steps

Initialize and deploy the java starter on Appwrite 1.4

👍 Expected behavior

It should build

👎 Actual Behavior

It doesn't build and errors w/:

Docker Error: Preparing for build ...
Building ...
Compiling ...
Downloading https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
...........10%............20%...........30%............40%...........50%............60%...........70%............80%...........90%............100%

Welcome to Gradle 7.5.1!

Here are the highlights of this release:
 - Support for Java 18
 - Support for building with Groovy 4
 - Much more responsive continuous builds
 - Improved diagnostics for dependency resolution

For more details see https://docs.gradle.org/7.5.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :compileJava
/usr/local/server/src/main/java/io/openruntimes/java/src/Main.java:33: error: cannot find symbol
        Map<String, Object> json = new HashMap<>();
        ^
  symbol:   class Map
  location: class Main
Note: /usr/local/server/src/main/java/io/openruntimes/java/Server.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /usr/local/server/src/main/java/io/openruntimes/java/Server.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* 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

BUILD FAILED in 34s
1 actionable task: 1 executed

It seems this import:

import java.util.HashMap;

should be

import java.util.*;

so it can also import Map.

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@stnguyen90 stnguyen90 added the bug Something isn't working label Oct 16, 2023
@loks0n
Copy link
Member

loks0n commented Oct 25, 2023

#60

Should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants