@@ -15,7 +15,7 @@ val artifactName = "luau-natives-${getOsName()}-${getArchName()}"
1515
1616val buildProjectDir = file(layout.buildDirectory.file(" root" ).get())
1717
18- task <Copy >(" copyForModification" ) {
18+ tasks.register <Copy >(" copyForModification" ) {
1919 description = " Copy project to the build directory for modification"
2020 from(layout.projectDirectory)
2121 include(" luau/**" , " src/**" , " CMakeLists.txt" )
@@ -30,7 +30,7 @@ fun edit(file: File, edit: (String) -> String) {
3030 }
3131}
3232
33- task (" luauStaticToShared" ) {
33+ tasks.register (" luauStaticToShared" ) {
3434 description = " Make Luau.Compiler and Luau.VM compile as shared libraries"
3535 dependsOn(" copyForModification" )
3636
@@ -55,7 +55,7 @@ task("luauStaticToShared") {
5555 }
5656}
5757
58- task <Exec >(" prepNative" ) {
58+ tasks.register <Exec >(" prepNative" ) {
5959 dependsOn(" luauStaticToShared" )
6060 workingDir = file(layout.buildDirectory).resolve(" cmake" )
6161 standardOutput = System .out
@@ -82,7 +82,7 @@ task<Exec>("prepNative") {
8282 commandLine(args)
8383}
8484
85- task <Exec >(" buildNative" ) {
85+ tasks.register <Exec >(" buildNative" ) {
8686 dependsOn(" prepNative" )
8787 workingDir = file(layout.buildDirectory).resolve(" cmake" )
8888 standardOutput = System .out
@@ -97,7 +97,7 @@ task<Exec>("buildNative") {
9797 )
9898}
9999
100- task <Copy >(" copyNative" ) {
100+ tasks.register <Copy >(" copyNative" ) {
101101 dependsOn(" buildNative" )
102102
103103 var libPath = " cmake/lib" // todo it should definitely be a release build. need to do that.
0 commit comments