Skip to content

Commit

Permalink
Code format (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
babisRoutis authored Oct 5, 2023
1 parent aa8475d commit 5493089
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ kotlin {
}
}


testing {
suites {
val test by getting(JvmTestSuite::class) {
Expand All @@ -64,7 +63,6 @@ tasks.named<BootBuildImage>("bootBuildImage") {
imageName.set("$group/${project.name}")
}


spotless {
val ktlintVersion = getVersionFromCatalog("ktlintVersion")
kotlin {
Expand All @@ -76,12 +74,11 @@ spotless {
}
}


fun getVersionFromCatalog(lookup: String): String {
val versionCatalog: VersionCatalog = extensions.getByType<VersionCatalogsExtension>().named("libs")
return versionCatalog
.findVersion(lookup)
.getOrNull()
?.requiredVersion
?: throw GradleException("Version '$lookup' is not specified in the version catalog")
}
}

0 comments on commit 5493089

Please sign in to comment.