Skip to content

Commit 16ea619

Browse files
committed
[skip ci] build: fix includedBuild name to be the folder name
1 parent 49b3816 commit 16ea619

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

grails-forge/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ allprojects {
6262
}
6363

6464
tasks.withType(Test).configureEach { Task testTask ->
65+
def grailsIncludedBuildName = rootProject.layout.projectDirectory.dir('..').asFile.name
6566
testTask.dependsOn(
66-
gradle.includedBuild('grails-core').task(':publishAllPublicationsToTestCaseMavenRepoRepository'),
67+
gradle.includedBuild(grailsIncludedBuildName).task(':publishAllPublicationsToTestCaseMavenRepoRepository'),
6768
gradle.includedBuild('grails-gradle').task(':publishAllPublicationsToTestCaseMavenRepoRepository')
6869
)
6970
}

grails-forge/grails-forge-core/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ rocker {
8989
// profile base
9090
TaskProvider<Sync> copyGrailsWrapper = tasks.register('copyGrailsWrapper', Sync)
9191
copyGrailsWrapper.configure { Sync it ->
92-
it.dependsOn(gradle.includedBuild('grails-core').task(':grails-wrapper:installDist'))
92+
def grailsIncludedBuildName = rootProject.layout.projectDirectory.dir('..').asFile.name
93+
it.dependsOn(gradle.includedBuild(grailsIncludedBuildName).task(':grails-wrapper:installDist'))
9394

9495
def wrapperFiles = rootProject.layout.projectDirectory.dir('../grails-wrapper/build/install/apache-grails-wrapper-incubating-bin')
9596
it.inputs.files(wrapperFiles)

0 commit comments

Comments
 (0)