name.remal.gradle_plugins.dsl.extensions.org.jdom2.output.Format.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Remal Gradle plugins: gradle-plugins-kotlin-dsl
package name.remal.gradle_plugins.dsl.extensions
import name.remal.gradle_plugins.dsl.utils.OS
import org.jdom2.output.Format
import org.jdom2.output.LineSeparator.DOS
import org.jdom2.output.LineSeparator.UNIX
fun Format.setOsLineSeparator() = apply { setLineSeparator(if (OS.isWindows) DOS else UNIX) }