generated from newrelic-experimental/java-instrumentation-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0582df8
commit f1e5c78
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# clean existing stuff | ||
rm -rf build io | ||
# copy correct build.gradle | ||
cp build-shadowJar.gradle build.gradle | ||
|
||
# Get the current directory (assuming the script is run from the custom-log4j2-appender directory) | ||
CURRENT_DIR=$(pwd) | ||
PROJECT_ROOT=$(dirname "$CURRENT_DIR") | ||
|
||
echo "Current Directory: $CURRENT_DIR" | ||
echo "Project Root: $PROJECT_ROOT" | ||
|
||
# Clean and build the project | ||
cd "$PROJECT_ROOT" | ||
./gradlew clean build shadowJar | ||
|
||
# Navigate to the directory containing the artifacts | ||
cd "$CURRENT_DIR/build/libs" | ||
|
||
# List the contents of the build/libs directory for debugging | ||
echo "Contents of build/libs:" | ||
ls -la | ||
|
||
echo "Local jar custom-log4j2-appender.jar is produced. You can now copy custom-log4j2-appender.jar to your applications classpath ." |