Skip to content

Commit

Permalink
Fix Gradle version change in wrapper.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
lkishalmi committed Oct 19, 2023
1 parent cc0d88c commit aa5755a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public class GradleDistributionProviderImpl implements GradleDistributionProvide
final NbGradleProjectImpl project;
private GradleDistribution dist;
private final PropertyChangeListener pcl;
private URI distributionURI;

public GradleDistributionProviderImpl(Project project) {
this.project = (NbGradleProjectImpl) project;
Expand All @@ -83,8 +82,7 @@ public GradleDistributionProviderImpl(Project project) {
URI uri = (URI) evt.getNewValue();
if ((uri != null) && (uri.getPath() != null) && uri.getPath().endsWith(GradleFiles.WRAPPER_PROPERTIES)) {
URI newDistURI = getWrapperDistributionURI();
if (GradleSettings.getDefault().isWrapperPreferred() && (distributionURI != null) && !Objects.equal(distributionURI, newDistURI)) {
distributionURI = newDistURI;
if (GradleSettings.getDefault().isWrapperPreferred() && (dist != null) && !Objects.equal(dist.getDistributionURI(), newDistURI)) {
distributionChanged();
}
}
Expand Down

0 comments on commit aa5755a

Please sign in to comment.