void buildTo()

in src/main/groovy/org/jetbrains/gradle/ext/IdeArtifacts.groovy [174:184]


  void buildTo(File destination) {
    def randomName = "archive_" + (new Random().nextInt())
    def temp = project.layout.buildDirectory.dir("tmp").get().dir(randomName).asFile
    temp.mkdirs()

    children.forEach { TypedArtifact it ->
      it.buildTo(temp)
    }

    createArchive(name, temp, destination)
  }