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

Task :gc-plugin:compileJava FAILED #4

Open
AsrieltheGoat opened this issue Sep 5, 2022 · 0 comments
Open

Task :gc-plugin:compileJava FAILED #4

AsrieltheGoat opened this issue Sep 5, 2022 · 0 comments

Comments

@AsrieltheGoat
Copy link

Hi, I experienced this problem when I try to compile

asriel@AsrielPC:~/gcgm-plugin-development$ ./gradlew build --warning-mode=all

Configure project :gc-plugin
Copying data from NPM output
Zipping web app files
The AbstractArchiveTask.archiveName property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveFileName property instead. See https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archiveName for more details.
at build_5jhvvanbo3b1ryytmyt7mkjuj$_run_closure4.doCall(/home/asriel/gcgm-plugin-development/gc-plugin/build.gradle:56)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the destinationDirectory property instead. See https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:destinationDir for more details.
at build_5jhvvanbo3b1ryytmyt7mkjuj$_run_closure4.doCall(/home/asriel/gcgm-plugin-development/gc-plugin/build.gradle:57)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Deleting non-zipped web app files
The AbstractArchiveTask.baseName property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveBaseName property instead. See https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:baseName for more details.
at build_5jhvvanbo3b1ryytmyt7mkjuj$_run_closure6.doCall(/home/asriel/gcgm-plugin-development/gc-plugin/build.gradle:68)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)

Task :gc-plugin:compileJava FAILED
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:10: error: package emu.grasscutter.server.dispatch does not exist
import emu.grasscutter.server.dispatch.DispatchServer;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:16: error: package express does not exist
import express.Express;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/server/websocket/WebSocketServer.java:6: error: package express does not exist
import express.Express;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:95: error: cannot find symbol
public static DispatchServer getDispatchServer() {
^
symbol: class DispatchServer
location: class GCGMPlugin
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/web/WebUtils.java:6: error: package express does not exist
import express.Express;
^
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:67: error: method register in class EventHandler cannot be applied to given types;
serverTickEventHandler.register();
^
required: Plugin
found: no arguments
reason: actual and formal argument lists differ in length
where T is a type-variable:
T extends Event declared in class EventHandler
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/GCGMPlugin.java:96: error: cannot find symbol
return ServerHook.getInstance().getDispatchServer();
^
symbol: method getDispatchServer()
location: class ServerHook
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/server/websocket/WebSocketServer.java:21: error: cannot find symbol
Express app = GCGMPlugin.getDispatchServer().getServer();
^
symbol: class Express
location: class WebSocketServer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:18: error: cannot find symbol
return "http" + (Grasscutter.getConfig().getDispatchOptions().FrontHTTPS ? "s" : "") + "://" +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:19: error: cannot find symbol
(Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getDispatchOptions().Ip : Grasscutter.getConfig().getDispatchOptions().PublicIp) +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:19: error: cannot find symbol
(Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getDispatchOptions().Ip : Grasscutter.getConfig().getDispatchOptions().PublicIp) +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:19: error: cannot find symbol
(Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ? Grasscutter.getConfig().getDispatchOptions().Ip : Grasscutter.getConfig().getDispatchOptions().PublicIp) +
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:20: error: cannot find symbol
":" + (Grasscutter.getConfig().getDispatchOptions().PublicPort != 0 ? Grasscutter.getConfig().getDispatchOptions().PublicPort : Grasscutter.getConfig().getDispatchOptions().Port);
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:20: error: cannot find symbol
":" + (Grasscutter.getConfig().getDispatchOptions().PublicPort != 0 ? Grasscutter.getConfig().getDispatchOptions().PublicPort : Grasscutter.getConfig().getDispatchOptions().Port);
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/GCGMUtils.java:20: error: cannot find symbol
":" + (Grasscutter.getConfig().getDispatchOptions().PublicPort != 0 ? Grasscutter.getConfig().getDispatchOptions().PublicPort : Grasscutter.getConfig().getDispatchOptions().Port);
^
symbol: method getDispatchOptions()
location: class ConfigContainer
/home/asriel/gcgm-plugin-development/gc-plugin/src/main/java/com/benj4/gcgm/utils/web/WebUtils.java:17: error: cannot find symbol
Express app = GCGMPlugin.getDispatchServer().getServer();
^
symbol: class Express
location: class WebUtils
16 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':gc-plugin: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.

BUILD FAILED in 1s
1 actionable task: 1 executed

I don't know what I have missed, I did install openjdk and used the latest version of grasscutter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant