Skip to content

Commit

Permalink
Use shorter syntax for task registration
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Feb 3, 2024
1 parent a391f61 commit 135dc9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/dokkabuild.base.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tasks.withType<AbstractArchiveTask>().configureEach {
isReproducibleFileOrder = true
}

val integrationTestPreparation by tasks.registering {
tasks.register("integrationTestPreparation") {
description =
"lifecycle task for preparing the project for integration tests (for example, publishing to the test Maven repo)"
group = VERIFICATION_GROUP
Expand Down
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/dokkabuild.test-k2.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ val symbolsTestConfiguration: Configuration by configurations.creating {
extendsFrom(configurations.testImplementation.get())
}

val symbolsTest = tasks.register<Test>("symbolsTest") {
val symbolsTest by tasks.registering(Test::class) {
useJUnitPlatform {
excludeTags("onlyDescriptors", "onlyDescriptorsMPP")
}
Expand All @@ -34,7 +34,7 @@ tasks.test {
dependsOn(symbolsTest)
}

val descriptorsTest = tasks.register<Test>("descriptorsTest") {
val descriptorsTest by tasks.registering(Test::class) {
useJUnitPlatform {
excludeTags("onlySymbols")
}
Expand Down

0 comments on commit 135dc9f

Please sign in to comment.