Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Update README for current enviroment #350

@cadamini

Description

@cadamini

I wanted to try building the project by following the readme on Windows and had some problems.

Here's what I did:

  1. I have cloned the project
  2. I installed the IntelliJ IDE and JDK 11 from https://www.oracle.com/java/technologies/downloads/#java11
  3. Saw some issues running some test builds (see below)
  4. I struggled to find the right tasks to run.
  5. I struggled to configure the IntelliJ IDE.

Note: I have updated my post after I could manage to get the current tasks in IntelliJ, see my last comment.

Below you can find an unsorted list of things I encountered while setting up the project.

1. Error(s) running gradle/gradlew

I got messages like:

  • Gradle sync failed: Unable to start the daemon process
  • Error:Unable to start the daemon process.
  • Could not create the Java Virtual Machine

I could solve them with a little configuration change, see https://stackoverflow.com/a/34734684/3842598

2. The command gradlew tasks does not show the tasks described in the readme

The readme contains:

Server:
./gradlew :server:start

Java-Daemon:
./gradlew :java-daemon:start

Admin-Panel:
./gradlew :admin-panel:start

I used gradlew :server:tasks --all to check all available tasks. I have no idea what all the other tasks are for. Is there an alternative to the above? I successfully tried to run gradlew build but failed with gradlew :server:bootRun (see below)

3. RuntimeException in :server:compileJava when running gradlew server:bootRun

Execution failed for task ':server:compileJava'.

java.lang.RuntimeException: Unable to find config value "IS_THIS_ADUMMYVALUE".

Removed this (as a workaround?):

@ConfigValue
private static final Boolean IS_THIS_ADUMMYVALUE = true;

4. Warnings

I know warnings are just warnings. no errors, but I'd like to mention "no comment" warnings from javadoc, a gradle warning after build about "deprecated Gradle features used in this build, making it incompatible with Gradle 8.0", and some other warnings, e.g.

> ..\java-backend\java-base\src\main\java\net\cryptic_game\backend\base\daemon\DaemonEndpointData.java:13: warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
> @EqualsAndHashCode

5. Project requirements need an update

It seems the project requirements are outdated, I think you need at least:

  • postgresql
  • spring ?
  • redis ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions