Skip to content

Instantly share code, notes, and snippets.

View dbuschman7's full-sized avatar

David Buschman dbuschman7

  • Lone Star State
View GitHub Profile
@dbuschman7
dbuschman7 / SystemPropertiesParsing.scala
Created February 24, 2023 01:52
Parse Java system properties to extract jars from the class path
//> using scala "2.13"
//> using platform "jvm"
//> using lib "com.rabbitmq:amqp-client:5.16.0"
//> using lib "com.typesafe.play::play-json:2.7.4"
import play.api.libs.json.{Json, OFormat}
object SystemProperties extends App {
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.must.Matchers
import java.util.concurrent.atomic.{AtomicBoolean, AtomicLong}
import scala.concurrent.{ExecutionContext, ExecutionContextExecutor, Future}
import scala.concurrent.duration._
object Timer {