License

data class License(name: String, url: String?, year: String?, spdxId: String?, licenseContent: String?, hash: String)

Describes a complete License element. Either retrieved from spdx or downloaded from the artifacts repo

Parameters

name

of the given license

url

linking to the hosted form of this license

year

if available for this license (not contained in the pom.xml)

spdxId

for this library, if it is a standard library available

licenseContent

contains the whole license content as downloaded from the server

hash

usually calculated to identify if a license is re-used and can be used for multiple artifacts

Constructors

License
Link copied to clipboard
fun License(name: String, url: String?, year: String? = null, spdxId: String? = null, licenseContent: String? = null, hash: String)

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int

Properties

hash
Link copied to clipboard
val hash: String
licenseContent
Link copied to clipboard
val licenseContent: String? = null
name
Link copied to clipboard
val name: String
spdxId
Link copied to clipboard
val spdxId: String? = null
url
Link copied to clipboard
val url: String?
year
Link copied to clipboard
val year: String? = null