bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
193 stars 91 forks source link

replace deprecated JavaPlugin constant field usage in AssetPipelinePlugin for Gradle 7.x support #283

Open mcmpdude opened 2 years ago

mcmpdude commented 2 years ago

Branch: rel-3.3.6 gradle 7.x JDK 8/11/17

In class asset-pipeline-gradle/src/main/groovy/asset/pipeline/gradle/AssetPipelinePlugin.groovy the deprecated constant JavaPlugin.RUNTIME_CONFIGURATION_NAME is used and brakes gradle 7.x builds.

* What went wrong:
An exception occurred applying plugin request [id: 'com.bertramlabs.asset-pipeline']
> Failed to apply plugin 'com.bertramlabs.asset-pipeline'.
   > No such property: RUNTIME_CONFIGURATION_NAME for class: org.gradle.api.plugins.JavaPlugin

Solution would be to update to the suggested value (RUNTIME_ELEMENTS_CONFIGURATION_NAME), documented in: https://docs.gradle.org/6.5/javadoc/org/gradle/api/plugins/JavaPlugin.html#RUNTIME_CONFIGURATION_NAME

tyrantkhan commented 2 years ago

+1