diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1e973f08..565c18a2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ kotlin = "1.8.22" moshi = "1.15.0" retrofit = "2.9.0" junit = "5.9.3" -truth = "1.1.3" +truth = "1.1.5" [libraries] okhttp = "com.squareup.okhttp3:okhttp:4.11.0" diff --git a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/Subjects.kt b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/Subjects.kt index 906f73a6..c6661be4 100644 --- a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/Subjects.kt +++ b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/Subjects.kt @@ -31,7 +31,7 @@ class ProjectResultSubject private constructor( companion object { private val BUILD_RESULT_SUBJECT_FACTORY: Factory = - Factory { metadata, actual -> ProjectResultSubject(metadata, actual) } + Factory { metadata, actual -> ProjectResultSubject(metadata, actual!!) } fun projectResult() = BUILD_RESULT_SUBJECT_FACTORY @@ -106,7 +106,7 @@ open class ArtifactSubject internal constructor( companion object { private val BUILD_RESULT_SUBJECT_FACTORY: Factory> = - Factory { metadata, actual -> ArtifactSubject(metadata, actual.first, actual.second) } + Factory { metadata, actual -> ArtifactSubject(metadata, actual!!.first, actual.second) } fun artifact() = BUILD_RESULT_SUBJECT_FACTORY } @@ -208,7 +208,7 @@ class SourcesJarSubject private constructor( companion object { private val BUILD_RESULT_SUBJECT_FACTORY: Factory> = - Factory { metadata, actual -> SourcesJarSubject(metadata, actual.first, actual.second) } + Factory { metadata, actual -> SourcesJarSubject(metadata, actual!!.first, actual.second) } fun sourcesJarSubject() = BUILD_RESULT_SUBJECT_FACTORY } @@ -243,7 +243,7 @@ class PomSubject private constructor( companion object { private val BUILD_RESULT_SUBJECT_FACTORY: Factory> = - Factory { metadata, actual -> PomSubject(metadata, actual.first, actual.second) } + Factory { metadata, actual -> PomSubject(metadata, actual!!.first, actual.second) } fun pomSubject() = BUILD_RESULT_SUBJECT_FACTORY }