Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Normalize task names generated by unity plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurelol committed Apr 1, 2021
1 parent 085c6c3 commit 0ab7c73
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class PaketUnityPlugin implements Plugin<Project> {
}

extension.paketReferencesFiles.each { referenceFile ->
def task = project.tasks.create(INSTALL_TASK_NAME + referenceFile.parentFile.name, PaketUnityInstall)
def task = project.tasks.create(generateProjectTaskName(referenceFile), PaketUnityInstall)
task.with {
group = GROUP
description = "Installs dependencies for Unity3d project ${referenceFile.parentFile.name} "
Expand Down Expand Up @@ -110,4 +110,8 @@ class PaketUnityPlugin implements Plugin<Project> {
[paketInstall, paketRestore].each configClosure
}
}

static String generateProjectTaskName(referenceFile) {
INSTALL_TASK_NAME + referenceFile.parentFile.name.replaceAll(".", "_")
}
}

0 comments on commit 0ab7c73

Please sign in to comment.