Skip to content

Commit

Permalink
Add javadoc to OciCopySpec.with(OciCopySpec)
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed May 26, 2024
1 parent f32583c commit 5032691
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciCopySpec.kt
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,14 @@ interface OciCopySpec {
*/
fun groupId(pathPattern: String, groupId: Long): OciCopySpec

/**
* Adds the given copy spec as a child to the current copy spec.
* This allows reusing copy specs in multiple places.
*
* @param other the copy spec to add as a child to the current copy spec
* @return the current copy spec
* @throws IllegalArgumentException if adding the given copy spec as a child to the current copy spec would result in a cycle
* (the current copy spec is the same as or a transitive child of the given copy spec)
*/
fun with(other: OciCopySpec): OciCopySpec
}

0 comments on commit 5032691

Please sign in to comment.