mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-17 17:41:31 +08:00
Polish "Write Gradle plugin repositories section only if necessary"
See gh-880
This commit is contained in:
@@ -42,6 +42,13 @@ class KotlinDslGradleSettingsWriterTests {
|
||||
" gradlePluginPortal()", " }", "}");
|
||||
}
|
||||
|
||||
@Test
|
||||
void gradleBuildWithoutPluginRepository() throws IOException {
|
||||
GradleBuild build = new GradleBuild();
|
||||
List<String> lines = generateSettings(build);
|
||||
assertThat(lines).doesNotContain("pluginManagement");
|
||||
}
|
||||
|
||||
@Test
|
||||
void gradleBuildWithPluginRepository() throws IOException {
|
||||
GradleBuild build = new GradleBuild();
|
||||
|
||||
Reference in New Issue
Block a user