streamnative / bookkeeper-achieved

Apache Bookkeeper
https://bookkeeper.apache.org
Apache License 2.0
3 stars 2 forks source link

ISSUE-2840: Gradle bin/bookkeeper script not working locally with gradle due to wrong lib path #418

Closed sijie closed 3 years ago

sijie commented 3 years ago

Original Issue: apache/bookkeeper#2840


BUG REPORT

Describe the bug When built using gradle path of the libs changes from target/ to build/libs/. Therefore, script does not find jar files and tries to run mvn package.

To Reproduce

  1. . Build using gradle ./gradlew build -x test -x checkstyleMain -x checkstyleTest -x spotbugsTest -x spotbugsMain -x rat -x signDistTar

  2. Try and run bin/bookkeeper standalone Couldn't find module '(org.apache.bookkeeper-)?bookkeeper-server' jar. Do you want me to run mvn package -DskipTests for you ? (y|n) y

Expected behavior Write a separate script for gradle with correct path for libs for gradle. If jars not found in build/libs then. Script should create those jars.

At the sametime bookkeeper_server was not pulling two runtime dependencies.