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')
|
||||
newLine = true
|
||||
ignoreNewLine = true
|
||||
lineEnding = "\n"
|
||||
|
||||
exclude "**/*.mustache"
|
||||
exclude "**/*.json"
|
||||
|
||||
14
build.gradle
14
build.gradle
@@ -27,6 +27,7 @@ plugins {
|
||||
id 'maven-publish'
|
||||
id "org.sonarqube" version "3.0"
|
||||
id "org.scm-manager.changelog" version "0.1.6"
|
||||
id 'org.scm-manager.license' version "0.7.1"
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
// 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 {
|
||||
id 'nebula.ospackage' version '8.5.6'
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'org.scm-manager.license' version '0.7.1'
|
||||
id 'org.scm-manager.license'
|
||||
}
|
||||
|
||||
configurations {
|
||||
@@ -169,6 +169,7 @@ artifacts {
|
||||
|
||||
license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
lineEnding = "\n"
|
||||
|
||||
tasks {
|
||||
build {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
plugins {
|
||||
id 'com.bmuschko.docker-remote-api' version '6.6.1'
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'org.scm-manager.license' version '0.7.1'
|
||||
id 'org.scm-manager.license'
|
||||
}
|
||||
|
||||
import org.gradle.util.VersionNumber
|
||||
@@ -119,6 +119,7 @@ artifacts {
|
||||
|
||||
license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
lineEnding = "\n"
|
||||
|
||||
tasks {
|
||||
build {
|
||||
|
||||
@@ -26,7 +26,7 @@ plugins {
|
||||
id 'org.unbroken-dome.helm' version '1.5.0'
|
||||
id 'org.unbroken-dome.helm-publish' version '1.5.0'
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'org.scm-manager.license' version '0.7.1'
|
||||
id 'org.scm-manager.license'
|
||||
}
|
||||
|
||||
configurations {
|
||||
@@ -97,6 +97,7 @@ task publish {
|
||||
|
||||
license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
lineEnding = "\n"
|
||||
|
||||
exclude '**/Chart.yaml'
|
||||
exclude '**/*.txt'
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.cloudogu.scm.GitHubUploadTask
|
||||
|
||||
plugins {
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'org.scm-manager.license' version '0.7.1'
|
||||
id 'org.scm-manager.license'
|
||||
}
|
||||
|
||||
configurations {
|
||||
@@ -68,6 +68,8 @@ task publish(type: GitHubUploadTask) {
|
||||
|
||||
license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
lineEnding = "\n"
|
||||
|
||||
tasks {
|
||||
gradle {
|
||||
files.from('build.gradle')
|
||||
|
||||
@@ -49,7 +49,7 @@ buildscript {
|
||||
plugins {
|
||||
id 'nebula.ospackage' version '8.5.6'
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'org.scm-manager.license' version '0.7.1'
|
||||
id 'org.scm-manager.license'
|
||||
}
|
||||
|
||||
configurations {
|
||||
@@ -183,6 +183,7 @@ artifacts {
|
||||
|
||||
license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
lineEnding = "\n"
|
||||
|
||||
tasks {
|
||||
build {
|
||||
|
||||
@@ -28,7 +28,7 @@ plugins {
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'signing'
|
||||
id 'maven-publish'
|
||||
id 'org.scm-manager.license' version '0.7.1'
|
||||
id 'org.scm-manager.license'
|
||||
}
|
||||
|
||||
configurations {
|
||||
@@ -128,6 +128,7 @@ project.rootProject.publishing.repositories.each { r ->
|
||||
|
||||
license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
lineEnding = "\n"
|
||||
|
||||
tasks {
|
||||
build {
|
||||
|
||||
@@ -29,7 +29,7 @@ plugins {
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'signing'
|
||||
id 'maven-publish'
|
||||
id 'org.scm-manager.license' version '0.7.1'
|
||||
id 'org.scm-manager.license'
|
||||
}
|
||||
|
||||
configurations {
|
||||
@@ -132,6 +132,7 @@ project.rootProject.publishing.repositories.each { r ->
|
||||
|
||||
license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
lineEnding = "\n"
|
||||
|
||||
tasks {
|
||||
build {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
plugins {
|
||||
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'
|
||||
}
|
||||
|
||||
@@ -244,6 +244,7 @@ license {
|
||||
header rootProject.file("LICENSE.txt")
|
||||
newLine = true
|
||||
ignoreNewLine = true
|
||||
lineEnding = "\n"
|
||||
|
||||
style {
|
||||
feature = 'HASH'
|
||||
|
||||
Reference in New Issue
Block a user