Skip to content

Add typesafe API to access the marker files #104

Open

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())
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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