
com.freeletics.gradle.monorepo.tasks.UpdateLicensesTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugins Show documentation
Show all versions of plugins Show documentation
A set of reusable Gradle plugins
package com.freeletics.gradle.monorepo.tasks
import org.gradle.api.Project
import org.gradle.api.tasks.Copy
public abstract class UpdateLicensesTask : Copy() {
internal companion object {
fun Project.registerUpdateLicensesTask() {
tasks.register("updateLicenses", UpdateLicensesTask::class.java) { task ->
task.from(project.layout.buildDirectory.file("reports/licensee/androidRelease/artifacts.json"))
task.into("src/main/assets")
task.rename("artifacts.json", "license_acknowledgements.json")
task.filter { line ->
if (line.contains("\"version\": \"")) "" else line
}
task.dependsOn("licenseeAndroidRelease")
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy