Skip to content

Commit

Permalink
Move bytebuddy into a profile.
Browse files Browse the repository at this point in the history
Spring doesn't support the byte buddy version needed by tests.
Move bytebuddy into a special profile.
This byte buddy version is required for testing to avoid flaws or bugs in the byte buddy version.
  • Loading branch information
kaladay committed Aug 11, 2022
1 parent ffc75b6 commit cf577db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
java-version: 11

- name: "Maven Test"
run: mvn clean test jacoco:report coveralls:report -DdryRun=true
run: mvn clean test jacoco:report coveralls:report -DdryRun=true -Pbuddy

- name: "Send to Coveralls (build java-${{ github.run_number }})"
uses: MikeEdgar/github-action@raw_coverage_file
Expand Down
32 changes: 18 additions & 14 deletions pom.xml
Expand Up @@ -41,6 +41,24 @@
<maven.packaging>jar</maven.packaging>
</properties>
</profile>
<profile>
<id>buddy</id>
<dependencies>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.12.13</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>1.12.13</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>

<dependencies>
Expand Down Expand Up @@ -151,20 +169,6 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.12.13</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>1.12.13</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.infradna.tool</groupId>
<artifactId>bridge-method-annotation</artifactId>
Expand Down

0 comments on commit cf577db

Please sign in to comment.