plugins { // Build scan plugin should be listed first. // See https://guides.gradle.org/creating-build-scans/#enable_build_scans_on_all_builds_of_your_project id("com.gradle.build-scan") version "2.1" // Sets up standard lifecycle tasks like `build` and `assemble`. // Also required for the Zip task to compute its archive file name. base } group = "com.rhubarb_lip_sync" version = "2.0.0-pre-alpha" tasks { val zip by creating(Zip::class) { subprojects.forEach { dependsOn("${it.name}:assemble") } for (subproject in subprojects) { from(File(subproject.buildDir, "distributions")) { into(if (subproject.name == "rhubarb") "" else subproject.name) } } } assemble { dependsOn(zip) } } buildScan { termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceAgree = "yes" }