Inspiration

I went to go and build an application on Rootstock , so I had went to the site that they run their node on here , https://github.com/rsksmart/rskj

And if you follow the instructions it will not work at all.

-- I firstly , realized , it would be much harder to develop node apps for rootstock if this wasnt a working build ,

-- Secondly , I wanted to see if I could do it , and the build turned out too be a great success

What it does

Fixes the gradlew build commands , and properly builds the output .jar file for running a node.

Updates Gradle from 7.x.x too Gradle Wrapper 8.8 with a new API.

How we built it

  • Git clones the referred repository by the documentation , ran into an error , repeated the process and ran into it again , confirmed error

-- Spent a lot of itme researching the error and -- Researched the build process ,

-- Installed Gradle CLI

  • Updated the Gradle Wrapper to 8.8

ran the gradlew build command to successfully build and further develop on the node repo. , or any other application that requires it to run .

Challenges we ran into

  • Installing gradle
  • Setting Gradle Path Variable Correctly ,
  • Understanding and recognizing a Gradle Build pattern and process.
  • Learn a lot about gradle updates
  • Gradle build files
  • Gradle commands
  • New Gradle setup and init command features and best practices to implement them
  • Shoot and miss building without touching any core code until a proper build folder is produced , and easily reproduced and tested.

Accomplishments that we're proud of

The, referenced repository for Rootstack's Java Node on https://github.com/rsksmart/rskj 100% was not building properly , nor building from the gradlew file when we started.

-- This a is daunting message for any developer trying to work on an app from a source of truth . . . . .


My repository of a rebuilt one with the same code is here ,
https://github.com/Vampeyer/rjsk-Arrowhead

and it works 100%

To test just git clone the repo ,
navigate to the root directory in a terminal ,
and run gradlew build

and the built .jar app will appear in a built/lib/app.jar file in the local , /app directory.

  • You will see this by the gradlew build , command creating the app/build directory.

What we learned

How to build on the new gradle ,..... the docs are tough , the API is new , the installation is lacking and the outsourced docs are only so so .

How to initialize gradle for a few different types of builds and languages , mainly java .

What's next for Rootstock Core Node Build fix

  • Being able to have someone else spin this up locally with no problem ,
    so that ,

developers can develop aps around the node app easier.

Built With

Share this project:

Updates