File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,8 @@ if (gradle.startParameter.taskNames == ["ghActionsPublish"] || gradle.startParam
237237 }
238238
239239 if (originalStartParameterTaskNames == [" ghActionsPublish" ]) {
240- if (javaVersion != javaVersions. min()) {
241- throw new IllegalArgumentException (" ghActionsPublish can only be run on Java ${ javaVersions.min()} but was run on $javaVersion " )
240+ if (( javaVersion != javaVersions. min()) && ((variant != 5.0 ) || (javaVersion != 11 ) )) {
241+ throw new IllegalArgumentException (" ghActionsPublish can only be run on Java ${ javaVersions.min()} (or 11 for variant 5.0) but was run on $javaVersion " )
242242 }
243243 /*
244244 We want to release only snapshots directly from master, final releases will be tagged and then published from that tag.
You can’t perform that action at this time.
0 commit comments