Skip to content

Commit

Permalink
Add missing settings.gradle to test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Aug 13, 2019
1 parent 94cd0dc commit 171a74c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.apollographql.apollo.gradle

import org.apache.commons.io.FileUtils
import org.gradle.api.Project;
import org.gradle.api.Project

class ApolloPluginTestHelper {
static def setupJavaProject(Project project) {
Expand Down Expand Up @@ -107,6 +107,8 @@ class ApolloPluginTestHelper {
prepareLocalProperties(destDir)
FileUtils.copyDirectory(projectUnderTest, destDir)
FileUtils.copyFile(requestedBuildScript, new File("$destDir/build.gradle"))
File settingsFile = new File(destDir, "settings.gradle")
FileUtils.write(settingsFile, "rootProject.name = '${destDir.name}'")
}

static def prepareLocalProperties(File destDir) {
Expand Down

0 comments on commit 171a74c

Please sign in to comment.