Skip to content

Commit

Permalink
Reordered gradle file
Browse files Browse the repository at this point in the history
  • Loading branch information
manami-project committed May 10, 2024
1 parent 4034ce9 commit 268efd8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ tasks.withType<Test> {
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

tasks.jacocoTestReport {
reports {
html.required.set(false)
xml.required.set(true)
xml.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/test/jacocoFullReport.xml"))
}
dependsOn(allprojects.map { it.tasks.named<Test>("test") })
}

coverallsJacoco {
reportPath = "${layout.buildDirectory}/reports/jacoco/test/jacocoFullReport.xml"
}

val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
Expand Down Expand Up @@ -99,19 +112,6 @@ publishing {
}
}

coverallsJacoco {
reportPath = "${layout.buildDirectory}/reports/jacoco/test/jacocoFullReport.xml"
}

tasks.jacocoTestReport {
reports {
html.required.set(false)
xml.required.set(true)
xml.outputLocation.set(file("${layout.buildDirectory}/reports/jacoco/test/jacocoFullReport.xml"))
}
dependsOn(allprojects.map { it.tasks.named<Test>("test") })
}

fun parameter(name: String, default: String = ""): String {
val env = System.getenv(name) ?: ""
if (env.isNotBlank()) {
Expand Down

0 comments on commit 268efd8

Please sign in to comment.