Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ subprojects {
repositories {
maven {
name = "stagingRepository"
url = uri("${rootProject.buildDir}/staging")
url = rootProject.layout.buildDirectory.dir("staging").get().asFile.toURI()
}
}

Expand Down Expand Up @@ -221,7 +221,9 @@ subprojects {
reports {
xml.required.set(false)
csv.required.set(false)
html.outputLocation.set(file("$buildDir/reports/jacoco"))
html.outputLocation.set(
layout.buildDirectory.dir("reports/jacoco").get().asFile
)
}
}

Expand Down Expand Up @@ -283,7 +285,9 @@ jreleaser {
create("maven-central") {
active = Active.ALWAYS
url = "https://central.sonatype.com/api/v1/publisher"
stagingRepositories.add("${rootProject.buildDir}/staging")
stagingRepositories.add(
rootProject.layout.buildDirectory.dir("staging").get().asFile.absolutePath
)
}
}
}
Expand Down
13 changes: 9 additions & 4 deletions smithy-typescript-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,21 @@ dependencies {
sourceSets {
main {
resources {
setSrcDirs(listOf("src/main/resources", "$buildDir/generated/resources"))
setSrcDirs(listOf(
"src/main/resources",
layout.buildDirectory.dir("generated/resources").get().asFile
))
}
}
}

tasks.register("set-dependency-versions") {
doLast {
mkdir("$buildDir/generated/resources/software/amazon/smithy/typescript/codegen")
val versionsFile =
file("$buildDir/generated/resources/software/amazon/smithy/typescript/codegen/dependencyVersions.properties")
mkdir(layout.buildDirectory.dir("generated/resources/software/amazon/smithy/typescript/codegen").get().asFile)
var versionsFile = layout.buildDirectory
.file("generated/resources/software/amazon/smithy/typescript/codegen/dependencyVersions.properties")
.get()
.asFile
versionsFile.printWriter().close()

val roots = project.file("../packages").listFiles().toMutableList() + project.file("../smithy-typescript-ssdk-libs").listFiles().toList()
Expand Down
2 changes: 1 addition & 1 deletion smithy-typescript-protocol-test-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tasks["jar"].enabled = false

tasks["smithyBuildJar"].enabled = false

tasks.create<SmithyBuild>("buildSdk") {
tasks.register<SmithyBuild>("buildSdk") {
addRuntimeClasspath = true
}

Expand Down
Loading