Skip to content

Deploy doesn't work when building alongside a native subproject #35

@ApolloFops

Description

@ApolloFops

When a the robot project and a native project are both subprojects of the same rootProject, robot builds and simulation work fine, but deploy tasks appear to fail (including something depended on by the task list, causing that to fail as well). I have been able to isolate this problem to being something to do with having both projects together, since commenting either project out fixes the problem. All of the tasks in the native project still work fine.

The branch that I have been having this problem on can be found here, and I have listed the error output below.

$ ./gradlew tasks
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :tasks FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':tasks'.
> Exception thrown while executing model rule: Project.<init>.tasks.deployStandalonefrcJavaroborio()
   > Could not create task ':tshirtlauncher:deployStandalonefrcJavaroborio'.
      > Cannot set the value of task ':tshirtlauncher:deployStandalonefrcJavaroborio' property 'storageService' of type edu.wpi.first.deployutils.deploy.StorageService using a provider of type edu.wpi.first.deployutils.deploy.StorageService.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 6s
1 actionable task: 1 executed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions