From cea3acfc0f04da592920bf520a6e83ef5424b2b2 Mon Sep 17 00:00:00 2001 From: "Guilherme J. Tramontina" Date: Sun, 2 Jun 2019 15:49:44 +1000 Subject: [PATCH] fix: runtime error not finding FileUtils --- build.gradle | 1 + src/main/kotlin/com/gtramontina/ghooks/GHooks.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c8fb1db..b2f96f0 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,7 @@ compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } repositories { jcenter() } dependencies { implementation(group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: "1.3.31") + implementation(group: "commons-io", name: "commons-io", version: "2.6") testImplementation(group: "io.kotlintest", name: "kotlintest-runner-junit5", version: "3.3.2") testImplementation(group: "org.junit.jupiter", name: "junit-jupiter-api", version: "5.4.1") testImplementation(group: "org.awaitility", name: "awaitility", version: "3.1.6") diff --git a/src/main/kotlin/com/gtramontina/ghooks/GHooks.kt b/src/main/kotlin/com/gtramontina/ghooks/GHooks.kt index e17f95a..9774952 100644 --- a/src/main/kotlin/com/gtramontina/ghooks/GHooks.kt +++ b/src/main/kotlin/com/gtramontina/ghooks/GHooks.kt @@ -2,7 +2,7 @@ package com.gtramontina.ghooks import org.gradle.api.Plugin import org.gradle.api.Project -import org.gradle.internal.impldep.org.apache.commons.io.FileUtils.forceDelete +import org.apache.commons.io.FileUtils.forceDelete import java.nio.file.Files.createSymbolicLink import java.nio.file.Files.exists import java.nio.file.Files.isDirectory