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

Do not expose native plugin services in Gradle core APIs #927

Closed adammurdoch closed 5 years ago

adammurdoch commented 5 years ago

The TargetMachine concept shouldn't be visible from a project that doesn't have one of the native plugins applied.

Instead these types should and factories should be made visible in the usual way that a plugin would add things to the project. Project.getMachines() should be replaced by a project extension that is added by the native plugins. The related types should live in platform-native project rather than core-api:

Also dependencyManagement project should not declare any dependency on platformNative.

lacasseio commented 5 years ago

PR available here: https://github.com/gradle/gradle/pull/7778