File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed
smithy-typescript-codegen
smithy-typescript-protocol-test-codegen Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ subprojects {
123123 repositories {
124124 maven {
125125 name = " stagingRepository"
126- url = uri( " ${ rootProject.buildDir} / staging" )
126+ url = rootProject.layout.buildDirectory.dir( " staging" ).get().asFile.toURI( )
127127 }
128128 }
129129
@@ -221,7 +221,9 @@ subprojects {
221221 reports {
222222 xml.required.set(false )
223223 csv.required.set(false )
224- html.outputLocation.set(file(" $buildDir /reports/jacoco" ))
224+ html.outputLocation.set(
225+ layout.buildDirectory.dir(" reports/jacoco" ).get().asFile
226+ )
225227 }
226228 }
227229
@@ -283,7 +285,9 @@ jreleaser {
283285 create(" maven-central" ) {
284286 active = Active .ALWAYS
285287 url = " https://central.sonatype.com/api/v1/publisher"
286- stagingRepositories.add(" ${rootProject.buildDir} /staging" )
288+ stagingRepositories.add(
289+ rootProject.layout.buildDirectory.dir(" staging" ).get().asFile.absolutePath
290+ )
287291 }
288292 }
289293 }
Original file line number Diff line number Diff line change @@ -48,16 +48,21 @@ dependencies {
4848sourceSets {
4949 main {
5050 resources {
51- setSrcDirs(listOf (" src/main/resources" , " $buildDir /generated/resources" ))
51+ setSrcDirs(listOf (
52+ " src/main/resources" ,
53+ layout.buildDirectory.dir(" generated/resources" ).get().asFile
54+ ))
5255 }
5356 }
5457}
5558
5659tasks.register(" set-dependency-versions" ) {
5760 doLast {
58- mkdir(" $buildDir /generated/resources/software/amazon/smithy/typescript/codegen" )
59- val versionsFile =
60- file(" $buildDir /generated/resources/software/amazon/smithy/typescript/codegen/dependencyVersions.properties" )
61+ mkdir(layout.buildDirectory.dir(" generated/resources/software/amazon/smithy/typescript/codegen" ).get().asFile)
62+ var versionsFile = layout.buildDirectory
63+ .file(" generated/resources/software/amazon/smithy/typescript/codegen/dependencyVersions.properties" )
64+ .get()
65+ .asFile
6166 versionsFile.printWriter().close()
6267
6368 val roots = project.file(" ../packages" ).listFiles().toMutableList() + project.file(" ../smithy-typescript-ssdk-libs" ).listFiles().toList()
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ tasks["jar"].enabled = false
2828
2929tasks[" smithyBuildJar" ].enabled = false
3030
31- tasks.create <SmithyBuild >(" buildSdk" ) {
31+ tasks.register <SmithyBuild >(" buildSdk" ) {
3232 addRuntimeClasspath = true
3333}
3434
You can’t perform that action at this time.
0 commit comments