Wizard: remove extra line break in build files
This commit is contained in:
-2
@@ -14,8 +14,6 @@ buildscript {
|
|||||||
group = 'testGroupId'
|
group = 'testGroupId'
|
||||||
version = '1.0-SNAPSHOT'
|
version = '1.0-SNAPSHOT'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|||||||
-2
@@ -14,8 +14,6 @@ buildscript {
|
|||||||
group = "testGroupId"
|
group = "testGroupId"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "1.0-SNAPSHOT"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|||||||
+2
@@ -70,6 +70,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>b</artifactId>
|
<artifactId>b</artifactId>
|
||||||
@@ -93,4 +94,5 @@
|
|||||||
<version>KOTLIN_VERSION</version>
|
<version>KOTLIN_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+2
@@ -70,6 +70,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>c</artifactId>
|
<artifactId>c</artifactId>
|
||||||
@@ -93,4 +94,5 @@
|
|||||||
<version>KOTLIN_VERSION</version>
|
<version>KOTLIN_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
-2
@@ -1,8 +1,6 @@
|
|||||||
group = 'testGroupId'
|
group = 'testGroupId'
|
||||||
version = '1.0-SNAPSHOT'
|
version = '1.0-SNAPSHOT'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
-2
@@ -1,8 +1,6 @@
|
|||||||
group = "testGroupId"
|
group = "testGroupId"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "1.0-SNAPSHOT"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
+2
@@ -70,6 +70,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
@@ -83,4 +84,5 @@
|
|||||||
<version>KOTLIN_VERSION</version>
|
<version>KOTLIN_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+2
@@ -70,6 +70,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>a</artifactId>
|
<artifactId>a</artifactId>
|
||||||
@@ -88,4 +89,5 @@
|
|||||||
<version>KOTLIN_VERSION</version>
|
<version>KOTLIN_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+2
@@ -70,6 +70,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>b</artifactId>
|
<artifactId>b</artifactId>
|
||||||
@@ -88,4 +89,5 @@
|
|||||||
<version>KOTLIN_VERSION</version>
|
<version>KOTLIN_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+2
@@ -70,6 +70,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>a</artifactId>
|
<artifactId>a</artifactId>
|
||||||
@@ -88,4 +89,5 @@
|
|||||||
<version>KOTLIN_VERSION</version>
|
<version>KOTLIN_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+2
@@ -70,6 +70,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
@@ -83,4 +84,5 @@
|
|||||||
<version>KOTLIN_VERSION</version>
|
<version>KOTLIN_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
-2
@@ -14,8 +14,6 @@ buildscript {
|
|||||||
group = 'me.user'
|
group = 'me.user'
|
||||||
version = '1.0-SNAPSHOT'
|
version = '1.0-SNAPSHOT'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|||||||
-2
@@ -14,8 +14,6 @@ buildscript {
|
|||||||
group = "me.user"
|
group = "me.user"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "1.0-SNAPSHOT"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|||||||
+10
-4
@@ -57,17 +57,19 @@ data class BuildFileIR(
|
|||||||
sectionCall("dependencies", buildScriptIrs.filterIsInstance<BuildScriptDependencyIR>())
|
sectionCall("dependencies", buildScriptIrs.filterIsInstance<BuildScriptDependencyIR>())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sectionCall("plugins", irsOfType<BuildSystemPluginIR>()); nl(lineBreaks = 2)
|
sectionCall("plugins", irsOfType<BuildSystemPluginIR>()); nl(lineBreaks = 1)
|
||||||
if (renderPomIr) {
|
if (renderPomIr) {
|
||||||
pom.render(this); nl()
|
nl()
|
||||||
|
pom.render(this)
|
||||||
}
|
}
|
||||||
distinctRepositories().takeIf { it.isNotEmpty() }?.let { repositories ->
|
distinctRepositories().takeIf { it.isNotEmpty() }?.let { repositories ->
|
||||||
|
nl()
|
||||||
sectionCall("repositories", repositories)
|
sectionCall("repositories", repositories)
|
||||||
nl(lineBreaks = 2)
|
nl()
|
||||||
}
|
}
|
||||||
modules.render(this)
|
modules.render(this)
|
||||||
irsOfTypeOrNull<FreeIR>()?.let { freeIrs ->
|
irsOfTypeOrNull<FreeIR>()?.let { freeIrs ->
|
||||||
nl(2)
|
nl()
|
||||||
freeIrs.listNl(lineBreaks = 2)
|
freeIrs.listNl(lineBreaks = 2)
|
||||||
}.ignore()
|
}.ignore()
|
||||||
}
|
}
|
||||||
@@ -145,6 +147,7 @@ data class MultiplatformModulesStructureIR(
|
|||||||
override fun withReplacedIrs(irs: PersistentList<BuildSystemIR>): MultiplatformModulesStructureIR = copy(irs = irs)
|
override fun withReplacedIrs(irs: PersistentList<BuildSystemIR>): MultiplatformModulesStructureIR = copy(irs = irs)
|
||||||
|
|
||||||
override fun GradlePrinter.renderGradle() {
|
override fun GradlePrinter.renderGradle() {
|
||||||
|
nl()
|
||||||
sectionCall("kotlin") {
|
sectionCall("kotlin") {
|
||||||
targets.filterNot {
|
targets.filterNot {
|
||||||
it.safeAs<DefaultTargetConfigurationIR>()?.targetAccess?.type == ModuleSubType.common
|
it.safeAs<DefaultTargetConfigurationIR>()?.targetAccess?.type == ModuleSubType.common
|
||||||
@@ -154,6 +157,7 @@ data class MultiplatformModulesStructureIR(
|
|||||||
modules.listNl()
|
modules.listNl()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
nl()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,7 +186,9 @@ data class SingleplatformModulesStructureWithSingleModuleIR(
|
|||||||
copy(module = modules.single() as SingleplatformModuleIR)
|
copy(module = modules.single() as SingleplatformModuleIR)
|
||||||
|
|
||||||
override fun BuildFilePrinter.render() {
|
override fun BuildFilePrinter.render() {
|
||||||
|
nl()
|
||||||
module.render(this)
|
module.render(this)
|
||||||
|
nl()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user