com.autonomousapps.model.BuildHealth.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-analysis-gradle-plugin Show documentation
Show all versions of dependency-analysis-gradle-plugin Show documentation
Analyzes dependency usage in Android and JVM projects
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
package com.autonomousapps.model
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = false)
data class BuildHealth(
val projectAdvice: Set,
val shouldFail: Boolean,
val projectCount: Int,
val unusedCount: Int,
val undeclaredCount: Int,
val misDeclaredCount: Int,
val compileOnlyCount: Int,
val runtimeOnlyCount: Int,
val processorCount: Int,
val androidScoreMetrics: AndroidScoreMetrics,
) {
@JsonClass(generateAdapter = false)
data class AndroidScoreMetrics(
val shouldBeJvmCount: Int,
val couldBeJvmCount: Int,
) {
class Builder {
var shouldBeJvmCount: Int = 0
var couldBeJvmCount: Int = 0
fun build() = AndroidScoreMetrics(
shouldBeJvmCount = shouldBeJvmCount,
couldBeJvmCount = couldBeJvmCount
)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy