Skip to content

Commit dec024e

Browse files
Fixed Scala classpath inference for scalikejdbc-3.5 in IDEA sync. (#11601)
Fixed Scala classpath inference for scalikejdbc-3.5 in IDEA sync. Revert lock file, as it should be updated via GitHub action. Co-authored-by: alexey.kuznetsov <alexey.kuznetsov@datadoghq.com>
1 parent 9bf338b commit dec024e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • dd-java-agent/instrumentation/jdbc/scalikejdbc-3.5

dd-java-agent/instrumentation/jdbc/scalikejdbc-3.5/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ tasks.withType(ScalaCompile).configureEach {
2929
}
3030

3131
dependencies {
32+
// Scala plugin needs scala-library on the main compile classpath so IDEA
33+
// can infer the Scala classpath, even though Scala sources only exist under test.
34+
compileOnly libs.scala
35+
3236
testImplementation project(':dd-java-agent:instrumentation:jdbc')
3337
testImplementation group: 'org.scalikejdbc', name: 'scalikejdbc_2.13', version: '3.5.0'
3438
testImplementation libs.scala

0 commit comments

Comments
 (0)