使用 Gradle 中的 Java 插件测试任务,如何打印执行测试的 JVM 进程的环境映射。
test.doFirst {
environment 'KAFKA_PORT', "${KAFKA_TCP_9902}"
environment 'DB_PORT', "${MYSQL_TCP_3306}"
// How to print the map of all environments set so far?
}
Run Code Online (Sandbox Code Playgroud)