Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle IT: if set, pass maven.repo.local to the run task #11862

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public void testUberJarForMultiModule() throws Exception {
}, output, ConditionTimeoutException.class);

String logs = FileUtils.readFileToString(output, "UTF-8");

assertThatOutputWorksCorrectly(logs);

// test that the http response is correct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void run() {
}
});
testDevMode();
} catch (Exception e) {
} catch (Exception | AssertionError e) {
if (buildResult[0] != null) {
System.err.println("BELOW IS THE CAPTURED LOGGING OF THE FAILED GRADLE TEST PROJECT BUILD");
System.err.println(buildResult[0].getOutput());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ compileJava {
application {
mainClass = 'org.acme.EntryPoint'
}

run {
// propagate the custom local maven repo, in case it's configured
if (System.properties.containsKey('maven.repo.local')) {
systemProperty 'maven.repo.local', System.properties.get('maven.repo.local')
}
}