diff options
Diffstat (limited to 'buildSrc/src/main/kotlin/WebGenInstallTask.kt')
-rw-r--r-- | buildSrc/src/main/kotlin/WebGenInstallTask.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildSrc/src/main/kotlin/WebGenInstallTask.kt b/buildSrc/src/main/kotlin/WebGenInstallTask.kt index 2076ee84..a185a7f0 100644 --- a/buildSrc/src/main/kotlin/WebGenInstallTask.kt +++ b/buildSrc/src/main/kotlin/WebGenInstallTask.kt @@ -1,6 +1,7 @@ import com.moowork.gradle.node.npm.NpmTask import org.gradle.api.DefaultTask import org.gradle.api.logging.LogLevel +import org.gradle.api.tasks.CacheableTask import org.gradle.api.tasks.OutputDirectory import org.gradle.api.tasks.OutputFile import org.gradle.api.tasks.TaskAction @@ -9,7 +10,8 @@ import java.io.File /** * Based on https://github.com/apollographql/apollo-android/blob/master/apollo-gradle-plugin/src/main/groovy/com/apollographql/apollo/gradle/ApolloCodegenInstallTask.groovy */ -class WebGenInstallTask : DefaultTask() { +@CacheableTask +open class WebGenInstallTask : DefaultTask() { companion object { const val TAG = "frost-web-gen" @@ -34,7 +36,6 @@ class WebGenInstallTask : DefaultTask() { installDir.set(project.file(File(project.buildDir, INSTALLATION_PATH))) packageFile.set(project.file(File(project.buildDir, PACKAGE_FILE_PATH))) - npmTask.setWorkingDir(File(project.buildDir, TAG)) } |