dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
implementation 'org.web3j:core:4.9.5'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
To build the final jar and optimize the example application for production, run:
./gradlew clean bootJar
To ensure everything worked, run:
java -jar build/libs/*.jar
Then navigate to http://localhost:8080/swagger-ui/index.html in your browser.