- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for generateSubprojectsJson (0.46 sec)
-
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/GenerateSubprojectsInfo.kt
@DisableCachingByDefault(because = "Not worth caching") abstract class GenerateSubprojectsInfo : SubprojectsInfo() { @TaskAction fun generateSubprojectsInfo() { subprojectsJson.asFile.writeText(generateSubprojectsJson()) } companion object { internal const val TASK_NAME = "generateSubprojectsInfo" }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 08 13:44:59 UTC 2021 - 1.1K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/CheckSubprojectsInfo.kt
@DisableCachingByDefault(because = "Not worth caching") abstract class CheckSubprojectsInfo : SubprojectsInfo() { @TaskAction fun checkSubprojectsInfo() { if (subprojectsJson.asFile.readText() != generateSubprojectsJson()) { throw GradleException( "New project(s) added without updating subproject JSON. Please run `:${GenerateSubprojectsInfo.TASK_NAME}` task." ) } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jul 07 13:12:26 UTC 2021 - 1.2K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt
@get:Internal protected val subprojectsJson = project.layout.projectDirectory.file(".teamcity/subprojects.json") protected fun generateSubprojectsJson(): String { val subprojects = generateSubprojects() val gson = GsonBuilder().setPrettyPrinting().create() return gson.toJson(subprojects) + '\n' } private
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.9K bytes - Viewed (0)