Skip to content

Commit d302ae8

Browse files
committed
typesafe-messages tests: Add byte-buddy agent
1 parent 78628b9 commit d302ae8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

BotCommands-typesafe-messages/bc/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ plugins {
77
id("publish-conventions")
88
}
99

10+
val byteBuddyAgent: Configuration by configurations.creating
11+
1012
dependencies {
1113
// -------------------- CORE DEPENDENCIES --------------------
1214

@@ -20,6 +22,7 @@ dependencies {
2022

2123
// JUnit + Mockk + Logback
2224
testImplementation(projects.testCommons)
25+
byteBuddyAgent(libs.bytebuddy.agent) { isTransitive = false }
2326
}
2427

2528
setMainJvmTarget(target = 24)
@@ -32,6 +35,8 @@ kotlin {
3235

3336
tasks.withType<Test> {
3437
useJUnitPlatform()
38+
39+
jvmArgs("-javaagent:${byteBuddyAgent.asPath}")
3540
}
3641

3742
publishedProjectEnvironment {

0 commit comments

Comments
 (0)