Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle 6.4 problems #70

Closed
bomgar opened this issue May 6, 2020 · 6 comments · Fixed by #71
Closed

Gradle 6.4 problems #70

bomgar opened this issue May 6, 2020 · 6 comments · Fixed by #71

Comments

@bomgar
Copy link

bomgar commented May 6, 2020

Upgrading gradle to 6.4 causes build problems.

> Task :liquibaseUpdate FAILED                                                                                                                                                                                                                                
Caching disabled for task ':liquibaseUpdate' because:                                                                                                                                                                                                         
  Build cache is disabled                                                                                                      
Task ':liquibaseUpdate' is not up-to-date because:                                                                             
  Task has not declared any outputs despite executing actions.                                                                 
Excluding []                                                                                                                   
:liquibaseUpdate (Thread[Execution worker for ':' Thread 9,5,main]) completed. Took 0.033 secs.                                                                                                                                                               
                                                                                                                                                                                                                                                              
FAILURE: Build failed with an exception.                                                                                                                                                                                                                      
                                                                                                                               
* What went wrong:                                                                                                             
Execution failed for task ':liquibaseUpdate'.                                                                                  
> The value for task ':liquibaseUpdate' property 'mainClass' is final and cannot be changed any further.                
                                                                                                                                                                                                                                                              
* Try:                                                                                                                                                                                                                                                        
Run with --debug option to get more log output. Run with --scan to get full insights.                                        
                                                                                                                                                                                                                                                              
* Exception is:                                                                                                                                                                                                                                               
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':liquibaseUpdate'.                                                                                                                                                                    
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)                                                                                                                    
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)                                       
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:205)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) 
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
@bomgar
Copy link
Author

bomgar commented May 6, 2020

This might be connected: gradle/gradle#12833

@atapin
Copy link

atapin commented May 13, 2020

@bomgar did you have any success with it? Even though the gradle regressions is reported to be fixed in 6.4, it's still reproduced for me with liquibase plugin.

@bomgar
Copy link
Author

bomgar commented May 13, 2020

The regression was introduced with 6.4.
This plugins works fine with 6.3
Gradle changed something and this plugin is not compatible. Unfortunately I don't have a solution.

@atapin
Copy link

atapin commented May 13, 2020

@bomgar yeah, thanks! 6.3 works fine

@niktekusho
Copy link

niktekusho commented May 18, 2020

Just seen this error as well. The Gradle Lombok plugin solved this issue in the PR franzbecker/gradle-lombok#77

Long story short: setMain in LiquibaseTask cannot be called during the run phase, but only in configuration time.

@stevesaliman
Copy link
Collaborator

Release 2.0.3 of the plugin is now out, with the fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants