Closed falkoschumann closed 3 years ago
Hi Falko.
I will refactor this piece of code to match Java 8 specs.
Thanks, but I clone your repository and compile again Java 8, there are more issues like that.
OK.
Thanks for informing me.
If you find further issues, I'd appreciate your reports.
I published a new version at Gradle's plugins portal (1.0.2) with the fix you suggested.
I found 2 more issues and create pull request #6.
When I run with Java 8, I get an
NoSuchMethodError
:The ScriptsReader is used a method
toArray()
introduced in Java 11.See https://github.com/NocWriter/runsql-gradle-plugin/blob/e1fcd574adfca1980716c052943453777c0b59b9/src/main/java/com/nocwriter/runsql/gradle/ScriptsReader.java#L65
See https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/util/Collection.html#toArray(java.util.function.IntFunction)