gradle / gradle-native

The home of Gradle's support for natively compiled languages
https://blog.gradle.org/introducing-the-new-cpp-plugins
Apache License 2.0
92 stars 8 forks source link

Handle duplicate target machine on native components #944

Closed lacasseio closed 5 years ago

lacasseio commented 5 years ago

Expected Behavior

Gradle shouldn't crash with elements already exists exception.

Current Behavior

Using the same target machine twice on any native platform cause Gradle to crash with duplicated elements exception.

Context

Steps to Reproduce (for bugs)

Your Environment

lacasseio commented 5 years ago

PR https://github.com/gradle/gradle/pull/7820 ready for review.