com.autonomousapps.kit.gradle.Dependencies.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-testkit-support Show documentation
Show all versions of gradle-testkit-support Show documentation
A DSL for building test fixtures with Gradle TestKit
The newest version!
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
package com.autonomousapps.kit.gradle
import com.autonomousapps.kit.render.Element
import com.autonomousapps.kit.render.Scribe
public class Dependencies @JvmOverloads constructor(
private val dependencies: MutableList = mutableListOf(),
) : Element.Block {
public constructor(vararg dependencies: Dependency) : this(dependencies.toMutableList())
public val isEmpty: Boolean = dependencies.isEmpty()
override val name: String = "dependencies"
override fun render(scribe: Scribe): String = scribe.block(this) { s ->
dependencies.forEach { it.render(s) }
}
public companion object {
@JvmField
public val EMPTY: Dependencies = Dependencies(mutableListOf())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy