apply from: "$rootDir/gradle/java.gradle"

dependencies {
  implementation project(':javaagent-bootstrap')

  implementation 'info.picocli:picocli:4.0.4'
  implementation deps.guava
}

task launch(type: JavaExec) {
  dependsOn ':javaagent:shadowJar'
  doFirst {
    classpath = sourceSets.main.runtimeClasspath
    main = 'io.opentelemetry.loadgenerator.LoadGenerator'
    jvmArgs = ["-javaagent:${project(':javaagent').shadowJar.archivePath}"]
    systemProperties System.properties
  }
}
