Skip to content

Commit

Permalink
Merge pull request #140 from mhalbritter/mh/fix-139
Browse files Browse the repository at this point in the history
Fix "Could not get unknown property 'metadataRoot' for root project"
  • Loading branch information
dnestoro authored Dec 5, 2022
2 parents 6e97602 + a8d9e23 commit e0ab4f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import org.graalvm.internal.tck.harness.TckExtension

def testUtils = project.extensions.create("tck", TckExtension, project)
TckExtension testUtils = project.extensions.create("tck", TckExtension, project)
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ tasks.register("checkstyle") {
dependsOn tasks.withType(Checkstyle)
}

def metadataPath = Objects.requireNonNullElse(
System.getenv("GVM_TCK_MD"),
providers.gradleProperty('metadata.dir').get()
String metadataPath = Objects.requireNonNullElse(
System.getenv("GVM_TCK_MD"),
providers.gradleProperty('metadata.dir').get()
)

File metadataFile
if (!metadataPath.startsWith("/")) {
metadataFile = metadataRoot.resolve(metadataPath).toFile()
metadataFile = file(tck.metadataRoot).toPath().resolve(metadataPath).toFile()
} else {
metadataFile = file(metadataPath)
}
Expand Down

0 comments on commit e0ab4f6

Please sign in to comment.