diff --git a/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt b/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt index 1ef4e20..4395f1d 100644 --- a/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt +++ b/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt @@ -58,12 +58,9 @@ open class CargoBuildTask : DefaultTask() { if (targetIncludes != null) { spec.include(targetIncludes.asIterable()) } else { - // It's safe to unwrap, since we bailed at configuration time if this is unset. - val libname = libname!! - spec.include("lib${libname}.so") - spec.include("lib${libname}.dylib") - spec.include("${libname}.dll") + spec.include(libname!!) } + rename { filename -> "lib$filename.so" } } } }