How to publish the library and run the QMoney application?

Modified on Tue, 4 Apr, 2023 at 4:38 PM

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.

Referencehttps://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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article