From 744d8f84d311febdd4211fddf86a4416914b2a39 Mon Sep 17 00:00:00 2001 From: Yuri Blankenstein Date: Wed, 30 Mar 2022 13:04:47 +0200 Subject: [PATCH 1/2] Improved license header check configuration --- Jenkinsfile | 2 - pom.xml | 30 --- releng/license-check-dependencies/Jenkinsfile | 2 - .../pom.xml | 252 +++++++++++------- 4 files changed, 160 insertions(+), 126 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 702cf12..728b93b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,3 @@ -////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2021 Contributors to the Eclipse Foundation // @@ -8,7 +7,6 @@ // // SPDX-License-Identifier: EPL-2.0 // -////////////////////////////////////////////////////////////////////////////// pipeline { agent { diff --git a/pom.xml b/pom.xml index 9de46ab..21e66cf 100644 --- a/pom.xml +++ b/pom.xml @@ -29,34 +29,4 @@ trace temporallogic - - - clean verify - - - - - checkLicenseHeaders - - true - - - - - com.mycila - license-maven-plugin - - - - checkLicenseHeaders - - check - - - - - - - - \ No newline at end of file diff --git a/releng/license-check-dependencies/Jenkinsfile b/releng/license-check-dependencies/Jenkinsfile index 03d1c57..f7eb8ae 100644 --- a/releng/license-check-dependencies/Jenkinsfile +++ b/releng/license-check-dependencies/Jenkinsfile @@ -1,4 +1,3 @@ -////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2021 Contributors to the Eclipse Foundation // @@ -8,7 +7,6 @@ // // SPDX-License-Identifier: EPL-2.0 // -////////////////////////////////////////////////////////////////////////////// pipeline { triggers { diff --git a/releng/org.eclipse.trace4cps.configuration/pom.xml b/releng/org.eclipse.trace4cps.configuration/pom.xml index 5cc2266..0f55112 100644 --- a/releng/org.eclipse.trace4cps.configuration/pom.xml +++ b/releng/org.eclipse.trace4cps.configuration/pom.xml @@ -57,11 +57,14 @@ 1.3.1 + + + 4.2.rc2 - dash-licenses-snapshots @@ -80,7 +83,97 @@ + clean verify + + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.4.1 + + + enforce-maven + + enforce + + + + + [3.5,) + + + + + + + + + + com.mycila + license-maven-plugin + ${license.maven.plugin.version} + + true + + XML_STYLE + XML_STYLE + SCRIPT_STYLE + JAVADOC_STYLE + XML_STYLE + JAVADOC_STYLE + JAVADOC_STYLE + JAVADOC_STYLE + JAVADOC_STYLE + JAVADOC_STYLE + BATCH + BATCH + APOSTROPHE_STYLE + ASCIIDOC_STYLE + ASCIIDOC_STYLE + SCRIPT_STYLE + DOUBLESLASH_STYLE + JAVADOC_STYLE + SCRIPT_STYLE + + + +
${session.executionRootDirectory}/releng/legal-defaults/license-header.txt
+ true + + src-gen/** + xtend-gen/** + **/*.aird + **/*.e4xmi + **/*.ecore + **/*.genmodel + **/*.launch + **/*.odesign + **/*.setup + **/*.target + **/*.txt + **/*.xmi + .checkstyle + .META-INF_MANIFEST.MF + .polyglot.* + checkstyle.xml + plugin.xml_gen + pom.tycho + +
+
+
+ + + + checkLicenseHeaders + + check + + + +
+ org.eclipse.tycho @@ -206,52 +299,9 @@ - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.eclipse.tycho - target-platform-configuration - [1.7.0,) - - target-platform - - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - [3.1.2,) - - check - - - - - - - - - + maven-assembly-plugin + 2.6 @@ -280,52 +330,6 @@ technology.trace4cps - - - com.mycila - license-maven-plugin - 4.2.rc2 - - - XML_STYLE - XML_STYLE - SCRIPT_STYLE - JAVADOC_STYLE - XML_STYLE - JAVADOC_STYLE - JAVADOC_STYLE - JAVADOC_STYLE - JAVADOC_STYLE - SCRIPT_STYLE - BATCH - BATCH - APOSTROPHE_STYLE - ASCIIDOC_STYLE - ASCIIDOC_STYLE - - - -
${session.executionRootDirectory}/releng/legal-defaults/license-header.txt
- true - - **/*.txt - **/*.ecore - **/*.genmodel - **/*.setup - **/*.target - **/*.launch - src-gen/** - xtend-gen/** - .polyglot.* - .META-INF_MANIFEST.MF - .checkstyle - checkstyle.xml - plugin.xml_gen - -
-
-
-
@@ -525,5 +529,69 @@ + + + + eclipse-m2e + + + m2e.version + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.eclipse.tycho + target-platform-configuration + [1.7.0,) + + target-platform + + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + [3.1.2,) + + check + + + + + + + + + + + + + + -- GitLab From e4ebb6cb15cbacd5750f26175f6a38f214b36814 Mon Sep 17 00:00:00 2001 From: Yuri Blankenstein Date: Wed, 30 Mar 2022 13:28:30 +0200 Subject: [PATCH 2/2] Add some license header configuration --- releng/org.eclipse.trace4cps.configuration/pom.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/releng/org.eclipse.trace4cps.configuration/pom.xml b/releng/org.eclipse.trace4cps.configuration/pom.xml index 0f55112..18a9d5e 100644 --- a/releng/org.eclipse.trace4cps.configuration/pom.xml +++ b/releng/org.eclipse.trace4cps.configuration/pom.xml @@ -143,19 +143,17 @@ src-gen/** xtend-gen/** - **/*.aird **/*.e4xmi **/*.ecore **/*.genmodel **/*.launch - **/*.odesign **/*.setup **/*.target **/*.txt - **/*.xmi .checkstyle .META-INF_MANIFEST.MF .polyglot.* + .Xauthority* checkstyle.xml plugin.xml_gen pom.tycho -- GitLab