Skip to content

Add typesafe API to access the marker files #104

@martinbonnin

Description

@martinbonnin

Description

It's useful to publish the markers without publishing everything

val publishMarkers = tasks.register("publishMarkers") {
  val from = tasks.named("librarianGenerateMarkerFiles").map { it.outputs.files }
  val into = rootProject.layout.buildDirectory.dir("localMaven")
  dependsOn("librarianGenerateMarkerFiles")
  doLast {
    val src = from.get().files.single()
    val dst = into.get().asFile
    publishFileByFile(FilesystemTransport(dst.absolutePath), src.walk().filter { it.isFile }.map { FileWithPath(it, it.relativeTo(src).path) }.toList())
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions