com.gabrielfeo.develocity.api.extension.BuildAttributesValueExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of develocity-api-kotlin Show documentation
Show all versions of develocity-api-kotlin Show documentation
A library to use the Develocity API in Kotlin
The newest version!
package com.gabrielfeo.develocity.api.extension
import com.gabrielfeo.develocity.api.model.BuildAttributesValue
operator fun List.get(name: String): String? {
return find { it.name == name }?.value
}
operator fun List.contains(name: String): Boolean {
return any { it.name == name }
}