File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
smithy-aws-typescript-codegen Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ subprojects {
125125 repositories {
126126 maven {
127127 name = " stagingRepository"
128- url = uri( " ${ rootProject.buildDir} / staging" )
128+ url = rootProject.layout.buildDirectory.dir( " staging" ).get().asFile.toURI( )
129129 }
130130 }
131131
@@ -217,7 +217,9 @@ subprojects {
217217 reports {
218218 xml.required.set(false )
219219 csv.required.set(false )
220- html.outputLocation.set(file(" $buildDir /reports/jacoco" ))
220+ html.outputLocation.set(
221+ layout.buildDirectory.dir(" reports/jacoco" ).get().asFile
222+ )
221223 }
222224 }
223225
@@ -288,7 +290,9 @@ jreleaser {
288290 create(" maven-central" ) {
289291 active = Active .ALWAYS
290292 url = " https://central.sonatype.com/api/v1/publisher"
291- stagingRepositories.add(" ${rootProject.buildDir} /staging" )
293+ stagingRepositories.add(
294+ rootProject.layout.buildDirectory.dir(" staging" ).get().asFile.absolutePath
295+ )
292296 }
293297 }
294298 }
Original file line number Diff line number Diff line change @@ -53,9 +53,11 @@ dependencies {
5353
5454tasks.register(" set-aws-sdk-versions" ) {
5555 doLast {
56- mkdir(" $buildDir /generated/resources/software/amazon/smithy/aws/typescript/codegen" )
57- var versionsFile =
58- file(" $buildDir /generated/resources/software/amazon/smithy/aws/typescript/codegen/sdkVersions.properties" )
56+ mkdir(layout.buildDirectory.dir(" generated/resources/software/amazon/smithy/aws/typescript/codegen" ).get().asFile)
57+ var versionsFile = layout.buildDirectory
58+ .file(" generated/resources/software/amazon/smithy/aws/typescript/codegen/sdkVersions.properties" )
59+ .get()
60+ .asFile
5961 versionsFile.printWriter().close()
6062
6163 var roots = project.file(" ../../packages" ).listFiles().toMutableList() + project.file(" ../../clients" ).listFiles().toList()
You can’t perform that action at this time.
0 commit comments