File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 build :
1313
1414 runs-on : ubuntu-latest
15+ env :
16+ BYTEBUDDY_VERSION : 1.17.5
1517 permissions :
1618 contents : read
1719 packages : write
@@ -33,10 +35,13 @@ jobs:
3335 server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
3436 settings-path : ${{ github.workspace }} # location for the settings.xml file
3537
38+ - name : Download ByteBuddy agent for tests
39+ run : mvn -B dependency:copy -Dartifact=net.bytebuddy:byte-buddy-agent:${{ env.BYTEBUDDY_VERSION }} -DoutputDirectory=target/test-agent -Dtransitive=false
40+
3641 - name : Build with Maven
37- run : mvn -B package --file pom.xml
42+ run : mvn -B -DargLine="-javaagent=${{ github.workspace }}/target/test-agent/byte-buddy-agent-${{ env.BYTEBUDDY_VERSION }}.jar" package --file pom.xml
3843
3944 - name : Publish to GitHub Packages Apache Maven
40- run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml -D skipITs
45+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml -DskipITs -DargLine="-javaagent=${{ github.workspace }}/target/test-agent/byte-buddy-agent-${{ env.BYTEBUDDY_VERSION }}.jar"
4146 env :
4247 GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments