【发布时间】:2023-03-18 23:32:01
【问题描述】:
使用 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?
}
【问题讨论】: