To publish the library we have to first add the maven publication task in build.gradle. To do that, add the following
publishing { publications { maven(MavenPublication) { groupId = 'com.crio.warmup' artifactId = 'annual-return' version = '1.0.0' from components.java } } }
Then, execute this command to publish the library ./gradlew verifyMavenJarsCreated
To run the QMoney application, go to the annual-return folder and execute ./gradlew bootrun which will start the spring boot server locally.
Reference: https://docs.gradle.org/current/userguide/publishing_maven.html
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article