You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in aspectj compilation after upgrade to gradle 5.0 in spring security project.
Expected Behavior
Build executed successfully
Current Behavior
Build failed with error
Some problems were found with the configuration of task ':spring-security-aspects:compileJavaAspect'.
> No value has been specified for property 'options.extensionDirs'.
> No value has been specified for property 'options.encoding'.
> No value has been specified for property 'options.debugOptions.debugLevel'.
> No value has been specified for property 'options.forkOptions.executable'.
Context
I'm trying to update spring-security to gradle 5.0 but after applying the change, the build of aspectj not work anymore
Steps to Reproduce (for bugs)
Upgradle gradle version to 5.0 of a project that uses aspectj plugin as in this commit
Gradle doesn't allow properties to have non-null values in 5.0. What can happen is if compileJava has an optional property that's null that will get copied to compileJavaAspect as a required property.
The fix is to only add properties that are required by the Ajc task. It might be better/easier to see if there's a new plugin that does this for you. https://plugins.gradle.org/search?term=aspectj
Error in aspectj compilation after upgrade to gradle 5.0 in spring security project.
Expected Behavior
Build executed successfully
Current Behavior
Build failed with error
Context
I'm trying to update spring-security to gradle 5.0 but after applying the change, the build of aspectj not work anymore
Steps to Reproduce (for bugs)
Upgradle gradle version to 5.0 of a project that uses aspectj plugin as in this commit
Environment
The text was updated successfully, but these errors were encountered: