mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
Set the line ending used for license files to LF (#1904)
Set line ending explicitly to LF because on Windows using the system line ending does not get along well with our git settings. Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
This commit is contained in:
committed by
GitHub
parent
90b595b545
commit
8136aa1cbd
@@ -111,6 +111,7 @@ class JavaModulePlugin implements Plugin<Project> {
|
|||||||
header project.rootProject.file('LICENSE.txt')
|
header project.rootProject.file('LICENSE.txt')
|
||||||
newLine = true
|
newLine = true
|
||||||
ignoreNewLine = true
|
ignoreNewLine = true
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
exclude "**/*.mustache"
|
exclude "**/*.mustache"
|
||||||
exclude "**/*.json"
|
exclude "**/*.json"
|
||||||
|
|||||||
14
build.gradle
14
build.gradle
@@ -27,6 +27,7 @@ plugins {
|
|||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id "org.sonarqube" version "3.0"
|
id "org.sonarqube" version "3.0"
|
||||||
id "org.scm-manager.changelog" version "0.1.6"
|
id "org.scm-manager.changelog" version "0.1.6"
|
||||||
|
id 'org.scm-manager.license' version "0.7.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
changelog {
|
changelog {
|
||||||
@@ -123,6 +124,19 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
license {
|
||||||
|
header rootProject.file("LICENSE.txt")
|
||||||
|
newLine = true
|
||||||
|
ignoreNewLine = true
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
build {
|
||||||
|
files.from("build.gradle", "settings.gradle", "gradle.properties")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
import org.gradle.util.VersionNumber
|
import org.gradle.util.VersionNumber
|
||||||
|
|
||||||
// set build props
|
// set build props
|
||||||
|
|||||||
2
gradle/changelog/format_liceense_lineendings.yaml
Normal file
2
gradle/changelog/format_liceense_lineendings.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
- type: fixed
|
||||||
|
description: Set line ending used for license files to LF ([#1904](https://github.com/scm-manager/scm-manager/pull/1904))
|
||||||
@@ -27,7 +27,7 @@ import org.gradle.util.VersionNumber
|
|||||||
plugins {
|
plugins {
|
||||||
id 'nebula.ospackage' version '8.5.6'
|
id 'nebula.ospackage' version '8.5.6'
|
||||||
id 'org.scm-manager.packaging'
|
id 'org.scm-manager.packaging'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@@ -169,6 +169,7 @@ artifacts {
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.bmuschko.docker-remote-api' version '6.6.1'
|
id 'com.bmuschko.docker-remote-api' version '6.6.1'
|
||||||
id 'org.scm-manager.packaging'
|
id 'org.scm-manager.packaging'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
}
|
}
|
||||||
|
|
||||||
import org.gradle.util.VersionNumber
|
import org.gradle.util.VersionNumber
|
||||||
@@ -119,6 +119,7 @@ artifacts {
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ plugins {
|
|||||||
id 'org.unbroken-dome.helm' version '1.5.0'
|
id 'org.unbroken-dome.helm' version '1.5.0'
|
||||||
id 'org.unbroken-dome.helm-publish' version '1.5.0'
|
id 'org.unbroken-dome.helm-publish' version '1.5.0'
|
||||||
id 'org.scm-manager.packaging'
|
id 'org.scm-manager.packaging'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@@ -97,6 +97,7 @@ task publish {
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
exclude '**/Chart.yaml'
|
exclude '**/Chart.yaml'
|
||||||
exclude '**/*.txt'
|
exclude '**/*.txt'
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import com.cloudogu.scm.GitHubUploadTask
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.scm-manager.packaging'
|
id 'org.scm-manager.packaging'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@@ -68,6 +68,8 @@ task publish(type: GitHubUploadTask) {
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
gradle {
|
gradle {
|
||||||
files.from('build.gradle')
|
files.from('build.gradle')
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ buildscript {
|
|||||||
plugins {
|
plugins {
|
||||||
id 'nebula.ospackage' version '8.5.6'
|
id 'nebula.ospackage' version '8.5.6'
|
||||||
id 'org.scm-manager.packaging'
|
id 'org.scm-manager.packaging'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@@ -183,6 +183,7 @@ artifacts {
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ plugins {
|
|||||||
id 'org.scm-manager.packaging'
|
id 'org.scm-manager.packaging'
|
||||||
id 'signing'
|
id 'signing'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@@ -128,6 +128,7 @@ project.rootProject.publishing.repositories.each { r ->
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ plugins {
|
|||||||
id 'org.scm-manager.packaging'
|
id 'org.scm-manager.packaging'
|
||||||
id 'signing'
|
id 'signing'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@@ -132,6 +132,7 @@ project.rootProject.publishing.repositories.each { r ->
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.github.node-gradle.node' version '2.2.4'
|
id 'com.github.node-gradle.node' version '2.2.4'
|
||||||
id 'org.scm-manager.license' version '0.7.1'
|
id 'org.scm-manager.license'
|
||||||
id 'org.scm-manager.ci'
|
id 'org.scm-manager.ci'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,6 +244,7 @@ license {
|
|||||||
header rootProject.file("LICENSE.txt")
|
header rootProject.file("LICENSE.txt")
|
||||||
newLine = true
|
newLine = true
|
||||||
ignoreNewLine = true
|
ignoreNewLine = true
|
||||||
|
lineEnding = "\n"
|
||||||
|
|
||||||
style {
|
style {
|
||||||
feature = 'HASH'
|
feature = 'HASH'
|
||||||
|
|||||||
Reference in New Issue
Block a user