Suppose generating a project containing components that don't target the host machine (in this example we are using a Swift library on Windows but it could be anything):
C:\Users\Daniel\swift_test\test1>Z:\gradle-source-build\bin\gradle init
Select type of project to generate:
1: basic
2: application
3: library
4: Gradle plugin
Enter selection (default: basic) [1..4] 3
Select implementation language:
1: C++
2: Groovy
3: Java
4: Kotlin
5: Scala
6: Swift
Enter selection (default: Java) [1..6] 6
Select build script DSL:
1: Groovy
2: Kotlin
Enter selection (default: Groovy) [1..2] 1
Project name (default: test1):
> Task :init
Get more help with your project: https://docs.gradle.org/5.6-20190614174239+0000/userguide/building_swift_projects.html
BUILD SUCCESSFUL in 10m 14s
2 actionable tasks: 2 executed
C:\Users\Daniel\swift_test\test1>Z:\gradle-source-build\bin\gradle build
'main' component in project ':' does not target this operating system.
'test' component in project ':' does not target this operating system.
'test' component in project ':' does not target this operating system.
Expected Behavior
The output should not be duplicated.
Current Behavior
Suppose generating a project containing components that don't target the host machine (in this example we are using a Swift library on Windows but it could be anything):
Context
Steps to Reproduce (for bugs)
Your Environment