All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ossuminc.riddl.utils.RiddlBuildInfo.scala Maven / Gradle / Ivy

There is a newer version: 0.52.1
Show newest version
// $COVERAGE-OFF$
package com.ossuminc.riddl.utils

/** This object was generated by sbt-buildinfo. */
case object RiddlBuildInfo {
  /** The value is "utils". */
  final val name = "utils"
  /** The value is "0.53.1". */
  final val version = "0.53.1"
  /** The value is "3.4.3". */
  final val scalaVersion = "3.4.3"
  /** The value is "1.10.2". */
  final val sbtVersion = "1.10.2"
  /** The value is "utils". */
  final val normalizedName = "utils"
  /** The value is "riddl-utils". */
  final val moduleName = "riddl-utils"
  /** The value is "Various utilities used throughout riddl libraries". */
  final val description = "Various utilities used throughout riddl libraries"
  /** The value is "com.ossuminc". */
  final val organization = "com.ossuminc"
  /** The value is "Ossum, Inc.". */
  final val organizationName = "Ossum, Inc."
  /** The value is "ossuminc". */
  final val gitHubOrganization = "ossuminc"
  /** The value is "riddl". */
  final val gitHubRepository = "riddl"
  /** The value is "Ossum, Inc.". */
  final val copyrightHolder = "Ossum, Inc."
  /** The value is "https://ossuminc.com/". */
  final val organizationHomepage = "https://ossuminc.com/"
  /** The value is "https://github.com/ossuminc/riddl". */
  final val projectHomepage = "https://github.com/ossuminc/riddl"
  /** The value is "Apache-2.0". */
  final val licenses = "Apache-2.0"
  /** The value is false. */
  final val isSnapshot = false
  /** The value is "com.ossuminc.riddl.utils". */
  final val buildInfoPackage = "com.ossuminc.riddl.utils"
  /** The value is "RiddlBuildInfo". */
  final val buildInfoObject = "RiddlBuildInfo"
  /** The value is "2019". */
  final val startYear = "2019"
  /** The value is "© 2019-2024 Ossum, Inc.". */
  final val copyright = "© 2019-2024 Ossum, Inc."
  /** The value is "3.4.3". */
  final val scalaCompatVersion = "3.4.3"
  /** The value is "2024-10-04 13:40:03.333-0400". */
  final val builtAtString = "2024-10-04 13:40:03.333-0400"
  /** The value is 1728063603333L. */
  final val builtAtMillis = 1728063603333L
  override val toString: String = {
    "name: %s, version: %s, scalaVersion: %s, sbtVersion: %s, normalizedName: %s, moduleName: %s, description: %s, organization: %s, organizationName: %s, gitHubOrganization: %s, gitHubRepository: %s, copyrightHolder: %s, organizationHomepage: %s, projectHomepage: %s, licenses: %s, isSnapshot: %s, buildInfoPackage: %s, buildInfoObject: %s, startYear: %s, copyright: %s, scalaCompatVersion: %s, builtAtString: %s, builtAtMillis: %s".format(
      name, version, scalaVersion, sbtVersion, normalizedName, moduleName, description, organization, organizationName, gitHubOrganization, gitHubRepository, copyrightHolder, organizationHomepage, projectHomepage, licenses, isSnapshot, buildInfoPackage, buildInfoObject, startYear, copyright, scalaCompatVersion, builtAtString, builtAtMillis
    )
  }
  val toMap: Map[String, scala.Any] = Map[String, scala.Any](
    "name" -> name,
    "version" -> version,
    "scalaVersion" -> scalaVersion,
    "sbtVersion" -> sbtVersion,
    "normalizedName" -> normalizedName,
    "moduleName" -> moduleName,
    "description" -> description,
    "organization" -> organization,
    "organizationName" -> organizationName,
    "gitHubOrganization" -> gitHubOrganization,
    "gitHubRepository" -> gitHubRepository,
    "copyrightHolder" -> copyrightHolder,
    "organizationHomepage" -> organizationHomepage,
    "projectHomepage" -> projectHomepage,
    "licenses" -> licenses,
    "isSnapshot" -> isSnapshot,
    "buildInfoPackage" -> buildInfoPackage,
    "buildInfoObject" -> buildInfoObject,
    "startYear" -> startYear,
    "copyright" -> copyright,
    "scalaCompatVersion" -> scalaCompatVersion,
    "builtAtString" -> builtAtString,
    "builtAtMillis" -> builtAtMillis)

  private def quote(x: scala.Any): String = "\"" + x + "\""
  private def toJsonValue[T <: Matchable](value: T): String = {
    value match {
      case elem: scala.collection.Seq[? <: Matchable] => elem.map(toJsonValue).mkString("[", ",", "]")
      case elem: scala.Option[? <: Matchable] => elem.map(toJsonValue).getOrElse("null")
      case elem: scala.collection.Map[?, ? <: Matchable] => elem.map {
        case (k, v) => toJsonValue(k.toString) + ":" + toJsonValue(v)
      }.mkString("{", ", ", "}")
      case d: scala.Double => d.toString
      case f: scala.Float => f.toString
      case l: scala.Long => l.toString
      case i: scala.Int => i.toString
      case s: scala.Short => s.toString
      case bool: scala.Boolean => bool.toString
      case str: String => quote(str)
      case other => quote(other.toString)
    }
  }

  val toJson: String = toJsonValue(toMap)
}
// $COVERAGE-ON$




© 2015 - 2024 Weber Informatics LLC | Privacy Policy