File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/org/gradlex/javamodule/dependencies/tasks Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3535import org .gradle .api .provider .Provider ;
3636import org .gradle .api .tasks .Input ;
3737import org .gradle .api .tasks .InputFile ;
38+ import org .gradle .api .tasks .Optional ;
3839import org .gradle .api .tasks .SourceSet ;
3940import org .gradle .api .tasks .SourceSetContainer ;
4041import org .gradle .api .tasks .TaskAction ;
@@ -58,6 +59,7 @@ public abstract class ModuleVersionRecommendation extends DefaultTask {
5859 public abstract Property <Boolean > getPrintForCatalog ();
5960
6061 @ InputFile
62+ @ Optional
6163 public abstract RegularFileProperty getPrintForPropertiesFile ();
6264
6365 @ Inject
@@ -155,7 +157,7 @@ public void report() {
155157 }
156158 }
157159
158- if (getPrintForCatalog ().isPresent ()) {
160+ if (getPrintForPropertiesFile ().isPresent ()) {
159161 p ("" );
160162 p ("Latest Stable Versions of Java Modules - use in: " + getPrintForPropertiesFile ().get ().getAsFile ());
161163 p ("=================================================================================================" );
You can’t perform that action at this time.
0 commit comments