From 007c4ea6406ebcb15bef568c3e10dae5d87dd28f Mon Sep 17 00:00:00 2001 From: Manon Cornu Date: Tue, 11 Jun 2024 15:25:25 +0200 Subject: [PATCH] build: add notice plugin and other plugins --- NOTICE | 151 ++++++++++ etc/license-mappings.xml | 5 + pom.xml | 632 ++++++++++++++++++++++----------------- 3 files changed, 516 insertions(+), 272 deletions(-) create mode 100644 NOTICE create mode 100644 etc/license-mappings.xml diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..24aefda --- /dev/null +++ b/NOTICE @@ -0,0 +1,151 @@ +Copyright © 2017 GIP-RECIA (https://www.recia.fr) +This project includes software developed by GIP-RECIA. +https://www.recia.fr + +Licensed under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at: + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. + +This project includes: + Apache Commons Codec under Apache License, Version 2.0 + Apache Commons Lang under Apache License, Version 2.0 + Apache HttpClient under Apache License, Version 2.0 + Apache HttpComponents Core HTTP/1.1 under Apache License, Version 2.0 + Apache HttpComponents Core HTTP/2 under Apache License, Version 2.0 + Apache HttpCore under Apache License, Version 2.0 + Apache Log4j API under Apache License, Version 2.0 + Apache Log4j to SLF4J Adapter under Apache License, Version 2.0 + asm under BSD-3-Clause + ASM based accessors helper used by json-smart under The Apache Software License, Version 2.0 + AssertJ fluent assertions under Apache License, Version 2.0 + Bean Validation API under Apache License 2.0 + Bouncy Castle Provider under Bouncy Castle Licence + Byte Buddy (without dependencies) under Apache License, Version 2.0 + Byte Buddy agent under Apache License, Version 2.0 + CDI APIs under Apache License, Version 2.0 + Checker Qual under The MIT License + ClassMate under Apache License, Version 2.0 + Ehcache under The Apache Software License, Version 2.0 + error-prone annotations under Apache 2.0 + Expression Language 3.0 API under CDDL + GPLv2 with classpath exception + FindBugs-jsr305 under The Apache Software License, Version 2.0 + Guava InternalFutureFailureAccess and InternalFutures under The Apache Software License, Version 2.0 + Guava ListenableFuture only under The Apache Software License, Version 2.0 + Guava: Google Core Libraries for Java under Apache License, Version 2.0 + Hamcrest under BSD License 3 + Hamcrest Core under BSD License 3 + HdrHistogram under Public Domain, per Creative Commons CC0 or BSD-2-Clause + Hibernate Validator Engine under Apache License 2.0 + IntelliJ IDEA Annotations under The Apache Software License, Version 2.0 + istack common utility code runtime under Eclipse Distribution License - v 1.0 + J2ObjC Annotations under Apache License, Version 2.0 + Jackson datatype: jdk8 under The Apache Software License, Version 2.0 + Jackson datatype: JSR310 under The Apache Software License, Version 2.0 + Jackson-annotations under The Apache Software License, Version 2.0 + Jackson-core under The Apache Software License, Version 2.0 + jackson-databind under The Apache Software License, Version 2.0 + Jackson-module-parameter-names under The Apache Software License, Version 2.0 + Jakarta Activation under EDL 1.0 + Jakarta Activation API jar under EDL 1.0 + Jakarta Annotations API under EPL 2.0 or GPL2 w/ CPE + Jakarta Bean Validation API under Apache License 2.0 + Jakarta XML Binding API under Eclipse Distribution License - v 1.0 + JASYPT: Java Simplified Encryption under The Apache Software License, Version 2.0 + Java Portlet API V3.0 under Apache License, Version 2.0 + Java Servlet API under CDDL + GPLv2 with classpath exception + javax.annotation API under CDDL + GPLv2 with classpath exception + javax.inject under The Apache Software License, Version 2.0 + javax.interceptor API under CDDL + GPLv2 with classpath exception + javax.ws.rs-api under EPL 2.0 or GPL2 w/ CPE + JAXB Runtime under Eclipse Distribution License - v 1.0 + JBoss Logging 3 under Apache License, version 2.0 + JJWT :: API under Apache License, Version 2.0 + JJWT :: Extensions :: Jackson under Apache License, Version 2.0 + JJWT :: Impl under Apache License, Version 2.0 + JSON library from Android SDK under Apache License 2.0 + JSON Small and Fast Parser under The Apache Software License, Version 2.0 + JSONassert under The Apache Software License, Version 2.0 + JSR107 API and SPI under Apache License, Version 2.0 + JUL to SLF4J bridge under MIT License + JUnit under Eclipse Public License 1.0 + JUnit Jupiter (Aggregator) under Eclipse Public License v2.0 + JUnit Jupiter API under Eclipse Public License v2.0 + JUnit Jupiter Engine under Eclipse Public License v2.0 + JUnit Jupiter Params under Eclipse Public License v2.0 + JUnit Platform Commons under Eclipse Public License v2.0 + JUnit Platform Engine API under Eclipse Public License v2.0 + JUnit Vintage Engine under Eclipse Public License v2.0 + Kotlin Stdlib under The Apache License, Version 2.0 + Kotlin Stdlib Common under The Apache License, Version 2.0 + Kotlin Stdlib Jdk7 under The Apache License, Version 2.0 + Kotlin Stdlib Jdk8 under The Apache License, Version 2.0 + LatencyUtils under Public Domain, per Creative Commons CC0 + Logback Classic Module under Eclipse Public License - v 1.0 or GNU Lesser General Public License + Logback Core Module under Eclipse Public License - v 1.0 or GNU Lesser General Public License + mediacentre under Apache License, Version 2.0 + micrometer-core under The Apache Software License, Version 2.0 + mockito-core under The MIT License + mockito-junit-jupiter under The MIT License + mockwebserver under The Apache Software License, Version 2.0 + Non-Blocking Reactive Foundation for the JVM under Apache License, Version 2.0 + Objenesis under Apache License, Version 2.0 + okhttp under The Apache Software License, Version 2.0 + okio under The Apache Software License, Version 2.0 + org.apiguardian:apiguardian-api under The Apache License, Version 2.0 + org.opentest4j:opentest4j under The Apache License, Version 2.0 + org.xmlunit:xmlunit-core under The Apache Software License, Version 2.0 + project ':json-path' under The Apache Software License, Version 2.0 + Project Lombok under The MIT License + reactive-streams under MIT-0 + Reactor Test support under Apache License, Version 2.0 + SLF4J API Module under MIT License + SnakeYAML under Apache License, Version 2.0 + Spring AOP under Apache License, Version 2.0 + Spring Beans under Apache License, Version 2.0 + Spring Commons Logging Bridge under Apache License, Version 2.0 + Spring Context under Apache License, Version 2.0 + Spring Context Support under Apache License, Version 2.0 + Spring Core under Apache License, Version 2.0 + Spring Expression Language (SpEL) under Apache License, Version 2.0 + Spring REST Docs Core under The Apache Software License, Version 2.0 + Spring REST Docs MockMvc under The Apache Software License, Version 2.0 + Spring TestContext Framework under Apache License, Version 2.0 + Spring Web under Apache License, Version 2.0 + Spring Web MVC under Apache License, Version 2.0 + spring-boot under Apache License, Version 2.0 + spring-boot-actuator under Apache License, Version 2.0 + spring-boot-actuator-autoconfigure under Apache License, Version 2.0 + spring-boot-autoconfigure under Apache License, Version 2.0 + spring-boot-devtools under Apache License, Version 2.0 + spring-boot-starter under Apache License, Version 2.0 + spring-boot-starter-actuator under Apache License, Version 2.0 + spring-boot-starter-cache under Apache License, Version 2.0 + spring-boot-starter-json under Apache License, Version 2.0 + spring-boot-starter-logging under Apache License, Version 2.0 + spring-boot-starter-security under Apache License, Version 2.0 + spring-boot-starter-test under Apache License, Version 2.0 + spring-boot-starter-tomcat under Apache License, Version 2.0 + spring-boot-starter-validation under Apache License, Version 2.0 + spring-boot-starter-web under Apache License, Version 2.0 + spring-boot-test under Apache License, Version 2.0 + spring-boot-test-autoconfigure under Apache License, Version 2.0 + spring-security-config under Apache License, Version 2.0 + spring-security-core under Apache License, Version 2.0 + spring-security-crypto under Apache License, Version 2.0 + spring-security-test under Apache License, Version 2.0 + spring-security-web under Apache License, Version 2.0 + tomcat-embed-core under Apache License, Version 2.0 + tomcat-embed-el under Apache License, Version 2.0 + tomcat-embed-websocket under Apache License, Version 2.0 + TXW2 Runtime under Eclipse Distribution License - v 1.0 + uPortal under The Apache License, Version 2.0 + diff --git a/etc/license-mappings.xml b/etc/license-mappings.xml new file mode 100644 index 0000000..4a51afe --- /dev/null +++ b/etc/license-mappings.xml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index d9adccc..7331852 100644 --- a/pom.xml +++ b/pom.xml @@ -1,294 +1,382 @@ - - 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 2.7.18 - - - fr.recia.mediacentre.api - esco-mediacentre - 0.0.1-SNAPSHOT - war - mediacentre - 2017 + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.7.18 + + + + fr.recia.mediacentre.api + esco-mediacentre + 0.0.1-SNAPSHOT + war + mediacentre + 2017 - - scm:git:ssh://git@github.com/GIP-RECIA/mediacentre.git - scm:git:ssh://git@github.com/GIP-RECIA/mediacentre.git - https://github.com/GIP-RECIA/mediacentre.git - HEAD - - - - esco-releases - https://nexus.recia.dev/content/repositories/releases/ - - - esco-snapshots - https://nexus.recia.dev/content/repositories/snapshots/ - - + + scm:git:ssh://git@github.com/GIP-RECIA/mediacentre.git + scm:git:ssh://git@github.com/GIP-RECIA/mediacentre.git + HEAD + https://github.com/GIP-RECIA/mediacentre.git + + + + esco-releases + https://nexus.recia.dev/content/repositories/releases/ + + + esco-snapshots + https://nexus.recia.dev/content/repositories/snapshots/ + + + + 11 + 11 + + - - 17 - + + com.google.guava + guava + 33.1.0-jre + + + com.squareup.okhttp3 + mockwebserver + 4.12.0 + test + - + + com.squareup.okhttp3 + okhttp + 4.12.0 + test + - - org.springframework.boot - spring-boot-starter-security - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-actuator - - - org.springframework.boot - spring-boot-starter-validation - - - org.springframework.boot - spring-boot-devtools - runtime - true - - - org.springframework.boot - spring-boot-starter-tomcat - - - org.springframework.boot - spring-boot-starter-cache - - - org.springframework.boot - spring-boot-starter-test - test - - - org.springframework.security - spring-security-test - test - - - org.springframework.restdocs - spring-restdocs-mockmvc - test - + + io.projectreactor + reactor-test + test + - - org.projectlombok - lombok - true - + + javax.cache + cache-api + 1.1.1 + - - javax.portlet - portlet-api - 3.0.1 - - - javax.servlet - javax.servlet-api - 4.0.1 - provided - - - javax.validation - validation-api - + + javax.portlet + portlet-api + 3.0.1 + + + javax.servlet + javax.servlet-api + 4.0.1 + provided + + + javax.validation + validation-api + - - org.jasig.portal - uPortal-soffit-renderer - 5.13.1 - + + javax.ws.rs + javax.ws.rs-api + 2.1.1 + + + org.apache.httpcomponents + httpclient + 4.5.14 + - - org.apache.httpcomponents.client5 - httpclient5 - 5.3.1 - - - org.apache.httpcomponents - httpclient - 4.5.14 - + + org.apache.httpcomponents.client5 + httpclient5 + 5.3.1 + - - javax.ws.rs - javax.ws.rs-api - 2.1.1 - + + org.ehcache + ehcache + 3.8.1 + - - com.google.guava - guava - 33.1.0-jre - + + org.jasig.portal + uPortal-soffit-renderer + 5.13.1 + - - org.slf4j - slf4j-api - 1.7.36 - + + org.junit.vintage + junit-vintage-engine + test + - - org.ehcache - ehcache - 3.8.1 - + + org.projectlombok + lombok + true + - - javax.cache - cache-api - 1.1.1 - + + org.slf4j + slf4j-api + 1.7.36 + + + org.springframework.boot + spring-boot-devtools + runtime + true + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter-cache + - + + org.springframework.boot + spring-boot-starter-security + + + org.springframework.boot + spring-boot-starter-test + test + + + org.springframework.boot + spring-boot-starter-tomcat + + + org.springframework.boot + spring-boot-starter-validation + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.restdocs + spring-restdocs-mockmvc + test + + + org.springframework.security + spring-security-test + test + - - org.junit.vintage - junit-vintage-engine - test - + + + + + false + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + + + false + + spring-snapshots + Spring Snapshots + https://repo.spring.io/snapshot + + + + + + false + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + + + false + + spring-snapshots + Spring Snapshots + https://repo.spring.io/snapshot + + - - io.projectreactor - reactor-test - test - + + + + com.github.ekryd.sortpom + sortpom-maven-plugin + 4.0.0 + + true + 4 + groupId,artifactId + groupId,artifactId + true + false + + + + + sort + + verify + + + + + com.mycila + license-maven-plugin + 2.11 + +
etc/header.template
+ + GIP-RECIA + https://www.recia.fr/ + + + **/*.java + src/**/*.xml + **/*.properties + src/test/** + **/*.js + **/*.css + + + src/test/resources/json/** + .mvn/** + +
+ + + + check + + + +
+ + org.apache.maven.plugins + maven-release-plugin + 2.5.3 + + true + true + @{project.version} + true + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + @{argLine} -Xmx4096m + + alphabetical + false + + + + org.apache.maven.plugins + maven-war-plugin + + WEB-INF/lib/tomcat-*.jar, + WEB-INF/classes/config/application-*.yml, + WEB-INF/classes/.h2.server.properties + src/, + public/, + tests/ + + + + org.jacoco + jacoco-maven-plugin + 0.8.11 + + file + true + + + + jacoco-initialize + + prepare-agent + + + ${basedir}/target/coverage-reports/jacoco-unit.exec + + + + jacoco-site + + report + + verify + + ${basedir}/target/coverage-reports/jacoco-unit.exec + + + + + + org.jasig.maven + notice-maven-plugin + 2.0.0 + + etc/NOTICE.template + + /etc/license-mappings.xml + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + +
+
- - com.squareup.okhttp3 - okhttp - 4.12.0 - test - - - com.squareup.okhttp3 - mockwebserver - 4.12.0 - test - - -
- - - - - com.mycila - license-maven-plugin - 2.11 - -
etc/header.template
- - GIP-RECIA - https://www.recia.fr/ - - - **/*.java - src/**/*.xml - **/*.properties - src/test/** - **/*.js - **/*.css - - - src/test/resources/json/** - .mvn/** - -
- - - - check - - - -
- - org.springframework.boot - spring-boot-maven-plugin - - - - org.projectlombok - lombok - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 - -
-
- - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/snapshot - - false - - - - - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/snapshot - - false - - - - - - - dev - - true - - - dev - - - - test - - test - - - + + + dev + + true + + + dev + + + + test + + test + + +