Skip to content

Commit be27280

Browse files
committed
Small test file refactor to share BUILDSCRIPT constant
1 parent 31ab62c commit be27280

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/test/kotlin/com/faire/gradle/analyze/AnalyzeDependenciesPluginTest.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -951,15 +951,7 @@ internal fun createBuildFileForKotlinProjectUsingPlugin(
951951
return File(rootDir, "build.gradle.kts").apply {
952952
writeText(
953953
"""
954-
buildscript {
955-
repositories {
956-
mavenCentral()
957-
}
958-
dependencies {
959-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${KOTLIN_VERSION}")
960-
}
961-
}
962-
954+
$BUILDSCRIPT
963955
plugins {
964956
kotlin("jvm") version "${KOTLIN_VERSION}"
965957
id("com.faire.analyze.analyzedependencies")

0 commit comments

Comments
 (0)