You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/stage-vote-release-plugin/src/main/kotlin/com/github/vlsi/gradle/release/Apache2LicenseRenderer.kt
+7-7
Original file line number
Diff line number
Diff line change
@@ -106,14 +106,14 @@ open class Apache2LicenseRenderer @Inject constructor(
106
106
val license = mainLicenseFile.orNull?.asFile?.readText()
107
107
?: mainLicenseText.orNull
108
108
?:SpdxLicense.Apache_2_0.text
109
-
out.appendln(license)
109
+
out.appendPlatformLine(license)
110
110
111
111
if (dependencies.isNotEmpty() && dependencySubfoder.get().isNotEmpty()) {
112
-
out.appendln(
112
+
out.appendPlatformLine(
113
113
"Additional License files can be found in the '${dependencySubfoder.get()}' folder "+
114
114
"located in the same directory as the LICENSE file (i.e. this file)"
115
115
)
116
-
out.appendln()
116
+
out.appendPlatformLine()
117
117
}
118
118
dependencies
119
119
.map { (id, licenseInfo) ->
@@ -123,7 +123,7 @@ open class Apache2LicenseRenderer @Inject constructor(
123
123
licenseGroupOf(id, license)
124
124
}
125
125
.forEach { (licenseGroup, components) ->
126
-
out.appendln(licenseGroup.title)
126
+
out.appendPlatformLine(licenseGroup.title)
127
127
out.appendComponents(components)
128
128
129
129
if (licenseGroup !=LicenseGroup.OTHER) {
@@ -155,10 +155,10 @@ open class Apache2LicenseRenderer @Inject constructor(
0 commit comments