com.avito.impact.configuration.TestConfiguration.kt Maven / Gradle / Ivy
The newest version!
package com.avito.impact.configuration
import com.avito.impact.configuration.sets.isTest
import com.avito.module.configurations.ConfigurationType.UnitTests
public class TestConfiguration(module: InternalModule) : BaseConfiguration(module, UnitTests) {
override val isModified: Boolean by lazy {
dependencies.any { it.isModified }
|| module.mainConfiguration.isModified
|| hasChangedFiles
}
override fun containsSources(
@Suppress("DEPRECATION")
sourceSet: com.android.build.gradle.api.AndroidSourceSet
): Boolean = sourceSet.isTest()
override fun toString(): String {
return "TestConfiguration(${project.path})"
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as TestConfiguration
if (project != other.project) return false
return true
}
override fun hashCode(): Int {
return project.hashCode()
}
}