File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
src/main/groovy/com/marklogic/gradle/task Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,9 @@ import com.marklogic.appdeployer.AppConfig
44import com.marklogic.client.DatabaseClient
55import com.marklogic.client.io.FileHandle
66import com.marklogic.contentpump.bean.MlcpBean
7- import org.gradle.api.Task
87import org.gradle.api.logging.Logger
98import org.gradle.api.logging.Logging
10- import org.gradle.api.tasks.Input
11- import org.gradle.api.tasks.Internal
12- import org.gradle.api.tasks.JavaExec
13- import org.gradle.api.tasks.Optional
14- import org.gradle.api.tasks.TaskAction
9+ import org.gradle.api.tasks.*
1510
1611/**
1712 * As of version 4.3.1, this no longer uses "@Delegate" and an instance of MlcpBean, which no longer works in Gradle 7.
@@ -132,11 +127,8 @@ class MlcpTask extends JavaExec {
132127 return Logging . getLogger(MlcpTask . class)
133128 }
134129
135- // Starting in Gradle 6.4, setMain must be called here instead of in a TaskAction method
136- @Override
137- Task configure (Closure closure ) {
138- setMain(" com.marklogic.contentpump.ContentPump" )
139- return super . configure(closure)
130+ MlcpTask () {
131+ super . getMainClass(). set(" com.marklogic.contentpump.ContentPump" )
140132 }
141133
142134 @TaskAction
You can’t perform that action at this time.
0 commit comments