From a6cfe11ae9bcb1662a8e8902c2058bdd184684bd Mon Sep 17 00:00:00 2001 From: XiangRongLin <41164160+XiangRongLin@users.noreply.github.com> Date: Fri, 15 Jan 2021 18:08:20 +0100 Subject: [PATCH] Pass on gradle JVM system property to test JVM --- extractor/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extractor/build.gradle b/extractor/build.gradle index 58063bba0..83643487b 100644 --- a/extractor/build.gradle +++ b/extractor/build.gradle @@ -1,3 +1,10 @@ +test { +// Pass on downloader type to tests for different CI jobs. See DownloaderFactory.java and ci.yml + if (System.properties.containsKey('downloader')) { + systemProperty('downloader', System.getProperty('downloader')) + } +} + dependencies { implementation project(':timeago-parser')