package nebula.test.functional.internal.classpath

import org.gradle.util.GFileUtils

final class ClasspathAddingInitScriptBuilderFixture {
    private ClasspathAddingInitScriptBuilderFixture() {}

    static List<File> createLibraries(File projectDir, int numberOfLibs = 500) {
        def libraries = []

        (1..numberOfLibs).each { counter ->
            File jar = new File(projectDir, "build/libs/lib${counter}.jar")
            GFileUtils.touch(jar)
            libraries << jar
        }

        libraries
    }
}

package nebula.test.functional.internal.classpath

import org.gradle.util.GFileUtils

final class ClasspathAddingInitScriptBuilderFixture {
    private ClasspathAddingInitScriptBuilderFixture() {}

    static List<File> createLibraries(File projectDir, int numberOfLibs = 500) {
        def libraries = []

        (1..numberOfLibs).each { counter ->
            File libDir = new File(projectDir, 'build/libs')
            libDir.mkdirs()
            File jar = new File(libDir, "lib${counter}.jar")
            GFileUtils.touch(jar)
            libraries << jar
        }

        libraries
    }
}

Prepare test for future version of Gradle
Prepare test for future version of Gradle
