Skip to content

Commit

Permalink
[fix] gradle 6.4 incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bomgar committed May 18, 2020
1 parent 5387417 commit ecdb5e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 7 additions & 1 deletion src/main/groovy/org/liquibase/gradle/LiquibaseTask.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.liquibase.gradle

import org.gradle.api.Task
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.JavaExec
import org.gradle.api.tasks.TaskAction
Expand Down Expand Up @@ -137,11 +138,16 @@ class LiquibaseTask extends JavaExec {
// configureLogging(classpath, project.liquibase.mainClassName)
// setSystemProperties(["mainClass": project.liquibase.mainClassName])
// setMain("org.liquibase.gradle.LiquibaseRunner")
setMain(project.liquibase.mainClassName)
// "inherit" the system properties from the Gradle JVM.
systemProperties System.properties
println "liquibase-plugin: Running the '${activity.name}' activity..."
project.logger.debug("liquibase-plugin: Running 'liquibase ${args.join(" ")}'")
super.exec()
}

@Override
Task configure(Closure closure) {
setMain(project.liquibase.mainClassName)
return super.configure(closure)
}
}

0 comments on commit ecdb5e7

Please sign in to comment.