Fixed invalid check
This commit is contained in:
@@ -138,16 +138,10 @@ public class GradleUpdater {
|
||||
|
||||
private boolean pathIgnored(File file) {
|
||||
String path = file.getPath();
|
||||
return bumpingToRelease() &&
|
||||
return assertSnapshots &&
|
||||
this.properties.getGradle().getIgnoredGradleRegex().stream().anyMatch(path::matches);
|
||||
}
|
||||
|
||||
private boolean bumpingToRelease() {
|
||||
ProjectVersion version = this.projects
|
||||
.forName(this.versionFromScRelease.projectName);
|
||||
return version.isRelease() || version.isServiceRelease();
|
||||
}
|
||||
|
||||
private String asString(Path path) {
|
||||
try {
|
||||
return new String(Files.readAllBytes(path));
|
||||
|
||||
@@ -149,7 +149,7 @@ public class ProjectPomUpdater {
|
||||
|
||||
private boolean pathIgnored(File file) {
|
||||
String path = file.getPath();
|
||||
return this.snapshotVersion &&
|
||||
return this.assertSnapshots &&
|
||||
this.properties.getPom().getIgnoredPomRegex().stream().anyMatch(path::matches);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user