Skip to content

Commit

Permalink
Use publish no parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Daeda88 committed Nov 10, 2023
1 parent 8e563d0 commit 53f6d48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
# if: ${{ github.ref_name == 'master' }}
env:
MAVEN_CENTRAL_RELEASE: "true"
run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace
run: ./gradlew publishAllPublicationsToSonatypeRepository --stacktrace --no-parallel
2 changes: 1 addition & 1 deletion gradle/copyReports.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks.register<Copy>("copyReports") {
group = "publishing"
into(layout.buildDirectory.dir("allReports"))
subprojects.forEach { module ->
from(module.buildDir) {
from(module.layout.buildDirectory.get().asFile) {
include("reports/**")
into(module.name)
}
Expand Down
4 changes: 2 additions & 2 deletions kaluga-library-components/src/main/kotlin/Component.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fun Project.commonComponent(

// output all reports to a single location
tasks.withType<LintTask>().configureEach {
reports.set(mapOf("plain" to rootProject.buildDir.resolve("reports/ktlint/${project.path}-${this.name}.txt")))
reports.set(mapOf("plain" to rootProject.layout.buildDirectory.get().asFile.resolve("reports/ktlint/${project.path}-${this.name}.txt")))
}

afterEvaluate {
Expand All @@ -70,7 +70,7 @@ fun Project.commonComponent(
// creating copy task for the target
val copyTask = tasks.create("copy${targetName.replaceFirstChar { it.titlecase() } }TestResources", Copy::class.java) {
from("src/iosTest/resources/.")
into("$buildDir/bin/$targetName/debugTest")
into("${layout.buildDirectory.get().asFile}/bin/$targetName/debugTest")
}

// apply copy task to the target
Expand Down

0 comments on commit 53f6d48

Please sign in to comment.