imTigger/webapp-hardware-bridge

How to build the backend with Gradle?

FractalMind opened this issue · 1 comments

May I suggest modifying the readme.md to include more detailed instructions on how to use/build the backend.
The most straightforward solution would be to simply compile a version for Win/Linux/Ios and share them as binaries.

If it's not possible, at least detailed instructions on how to compile the executable without prior knowledge of Gradle should be available. For now, there are only 2 lines:

  1. Install and setup mapping via Configurator (There is almost an infinite amount of meaning for "Configurator". What is Configurator? On what platform? Is Configurator a Gradle plug-in? Is Configurator a lib to read .yml or .nsi? )

After building "webapp-hardware-bridge-1.0-SNAPSHOT.jar" without "Configurator" ./gradlew build
it echoes:
no main manifest attribute, in webapp-hardware-bridge-1.0-SNAPSHOT.jar

I had to crunch tons of tutorials to lead me to the manifest. When I run

plugins {
    id 'java'
}

jar {
     manifest {
         attributes(
                 'Main-Class': 'tigerworkshop.webapphardwarebridge.start' // <= What should I write here?
         )
     }
}

group 'webapp-hardware-bridge'
version '1.0-SNAPSHOT'

java -jar webapp-hardware-bridge-1.0-SNAPSHOT.jar I get
Error: Could not find or load main class tigerworkshop.webapphardwarebridge.start

What should I write in the manifest is the "Configurator" suppose to take care of that?

Thank you for your time

Never mind:
I didn't see the "Build from source"

The project relies on the Intelij IDEA IDE "artifact" to build the .jar

For those coming after https://www.youtube.com/watch?v=uSfRkOWsQRo&ab_channel=K4GCybeX