windows-service-plugin icon indicating copy to clipboard operation
windows-service-plugin copied to clipboard

Not compatible with Gradle 7+ / No License

Open torfstack opened this issue 3 years ago • 2 comments

Hi, thank you for developing this plugin.

This plugin is sadly no longer compatible with gradle 7, e.g. JavaPlugin.RUNTIME_CONFIGURATION_NAME in WindowsServicePluginTask.groovy(L62) no longer exists.

May I ask you to choose a open-source license for this plugin? I would like to use it with gradle 7+.

torfstack avatar Jun 18 '21 08:06 torfstack

Compatibility with gradle 7 and license will be greatly appreciated.

Meanwhile we are using following workaround (monkey patching): JavaPlugin.metaClass.static.getRUNTIME_CONFIGURATION_NAME << { JavaPlugin.RUNTIME_CLASSPATH_CONFIGURATION_NAME }

Just use it before apply plugin.

karbi avatar Sep 01 '21 12:09 karbi

Gradle 7 deprecated the old property and replaced it with RUNTIME_ELEMENTS_CONFIGURATION_NAME. However, that property can't be changed in the script so use the following:

Add: buildscript { JavaPlugin.metaClass.static.getRUNTIME_CONFIGURATION_NAME << { JavaPlugin.RUNTIME_CLASSPATH_CONFIGURATION_NAME } } before plugins {}

ktaylor0 avatar Sep 17 '22 15:09 ktaylor0