Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution file argument isn't being passed #82

Open
chb0github opened this issue May 13, 2020 · 0 comments
Open

Solution file argument isn't being passed #82

chb0github opened this issue May 13, 2020 · 0 comments

Comments

@chb0github
Copy link

Maybe I am missing something, but based on everything I see, this should produce results and yet, it doesn't seem to be passing the solution file along to the CLI despite being set. It's also not picking up the nuget on the path - which isn't so crucial, but curious

import com.ullink.NuGetRestore


plugins {
    id("com.ullink.nuget") version "2.20" apply false
}

subprojects {
    apply(plugin = "com.ullink.nuget")
    val solution =projectDir.walkTopDown().find { it.extension == "sln" }!!

    tasks {

        val restore by creating(NuGetRestore::class) {
            setSolutionDirectory(solution.parentFile.path)
            setSolutionFile(solution.path)
            verbosity = "detailed"
            sources = setOf(
                "https://www.nuget.org/api/v2",
                "http://prism-prod-oct/NuGetLocalServer/nuget"
            )
            println("executable: ${executable}")
            println("Args: ${args}")
            println("task solution file: ${this.solutionFile}")
        }

    }
}
PS C:\Users\cbongiorno\dev\sterling\prism\prism-wfadaptors> gradle nugetRestore

> Configure project :
executable: null
Args: [restore]
tasksolution file: C:\Users\cbongiorno\dev\sterling\prism\prism-wfadaptors\workflowadaptor-cwi_fl_lake_ui\CWI_FL_LAKE_UISol\CWI_FL_LAKE_UISol.sln
solution file found: C:\Users\cbongiorno\dev\sterling\prism\prism-wfadaptors\workflowadaptor-cwi_fl_lake_ui\CWI_FL_LAKE_UISol\CWI_FL_LAKE_UISol.sln
executable: null
Args: [restore]
tasksolution file: C:\Users\cbongiorno\dev\sterling\prism\prism-wfadaptors\workflowadaptor-cwi_ri_statewide_ui\CWI_RI_STATEWIDE_UISol\CWI_RI_STATEWIDE_UISol.sln
solution file found: C:\Users\cbongiorno\dev\sterling\prism\prism-wfadaptors\workflowadaptor-cwi_ri_statewide_ui\CWI_RI_STATEWIDE_UISol\CWI_RI_STATEWIDE_UISol.sln

> Task :workflowadaptor-cwi_fl_lake_ui:nugetRestore FAILED
The folder 'C:\Users\cbongiorno\dev\sterling\prism\prism-wfadaptors\workflowadaptor-cwi_fl_lake_ui' does not contain an msbuild solution or packages.config file to restore.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':workflowadaptor-cwi_fl_lake_ui:nugetRestore'.
> Process 'command 'C:\Users\cbongiorno\.gradle\caches\nuget\5.5.0\NuGet.exe'' finished with non-zero exit value 1

PS C:\Users\cbongiorno\dev\sterling\prism\prism-wfadaptors> gcm nuget

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     nuget.exe                                          5.5.1.0    C:\ProgramData\chocolatey\bin\nuget.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant