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

Ignore attempts to disable GME alignment task #475

Merged
merged 1 commit into from
Jan 31, 2025
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 @@ -135,6 +135,8 @@ public void ensureAlignmentFileCreatedAndAlignmentTaskRun()
});
});

assertThat(systemOutRule.getLog()).contains("Attempting to disable alignment task in");

// we care about how many calls are made to DA from an implementation perspective which is why we assert
verify(1, postRequestedFor(urlEqualTo("/da/rest/v-1/" + DefaultTranslator.Endpoint.LOOKUP_GAVS)));

Expand Down
3 changes: 1 addition & 2 deletions analyzer/src/functTest/resources/multi-module/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ allprojects {
}

project(':subproject1') {
project.tasks.configureEach { task -> task.enabled = false }
dependencies {
implementation group: 'org.springframework', name: 'spring-context', version: '5.1.6.RELEASE'
implementation group: 'org.hibernate', name: 'hibernate-core', version: '5.4.2.Final'
implementation gradleApi() // dependency of type DefaultSelfResolvingDependency
testImplementation group: 'junit', name: 'junit', version: '4.12'
}


}

project(':subproject1:subproject11') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1023,4 +1023,11 @@ private void processAlignmentReport(Project project, Configuration configuration
JSONUtils.jsonToString(jsonReport) + System.lineSeparator());
}
}

@Override
public void setEnabled(boolean enabled) {
// This should never be called. If it is called with true, the created task defaults to
// true so no need to call super.
logger.warn("Attempting to disable alignment task in {}; ignoring", getProject().getName());
}
}
Loading