diff --git a/.gitattributes b/.gitattributes index 300e944..bf8ddeb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,17 @@ +# +# Copyright (C) ${project.inceptionYear} Agence du Numérique en Santé (ANS) (https://esante.gouv.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. +# + mvnw diff --git a/Dockerfile b/Dockerfile index 355cc1d..308f306 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,19 @@ +# +# Copyright (C) ${project.inceptionYear} Agence du Numérique en Santé (ANS) (https://esante.gouv.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. +# + FROM maven:3-jdk-11 AS build COPY settings-docker.xml /usr/share/maven/ref/ COPY pom.xml /usr/src/app/pom.xml diff --git a/pom.xml b/pom.xml index 2c23138..b8a5f08 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,21 @@ + 4.0.0 pom @@ -38,6 +55,42 @@ org.springframework.boot spring-boot-maven-plugin + + + com.mycila + license-maven-plugin + 2.11 + +
com/mycila/maven/plugin/license/templates/APACHE-2.txt
+ + Agence du Numérique en Santé (ANS) + https://esante.gouv.fr + + + **/*.csv + mvnw + mvnw.cmd + .mvn/** + LICENSE.txt + settings-docker.xml + + + SCRIPT_STYLE + SLASHSTAR_STYLE + SLASHSTAR_STYLE + +
+ + + license-check + + check + + validate + + +
+ diff --git a/psc-toggle-manager.nomad.tpl b/psc-toggle-manager.nomad.tpl index 31865d5..9314137 100644 --- a/psc-toggle-manager.nomad.tpl +++ b/psc-toggle-manager.nomad.tpl @@ -1,3 +1,18 @@ +/* + * Copyright (C) ${project.inceptionYear} Agence du Numérique en Santé (ANS) (https://esante.gouv.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. + */ job "psc-toggle-manager" { datacenters = ["${datacenter}"] type = "service" diff --git a/psc-toggle-manager/pom.xml b/psc-toggle-manager/pom.xml index 8a03b37..2c6aa49 100644 --- a/psc-toggle-manager/pom.xml +++ b/psc-toggle-manager/pom.xml @@ -29,7 +29,7 @@ 0.0.2-SNAPSHOT psc-toggle-manager Component for toggling PsRef (link from one Ps nationalId to another one) - + 11 11 @@ -98,34 +98,6 @@ org.springframework.boot spring-boot-maven-plugin - - - com.mycila - license-maven-plugin - 2.11 - -
com/mycila/maven/plugin/license/templates/APACHE-2.txt
- - Agence du Numérique en Santé (ANS) - https://esante.gouv.fr - - - LICENSE.txt - Dockerfile - **/README - src/main/packaging/** - src/test/resources/** - src/main/resources/** - src/main/webapp/** - node_modules/** - dist/** - .tmp/** - settings-docker.xml - **/*.properties - -
-
- org.jacoco jacoco-maven-plugin @@ -150,7 +122,6 @@ maven-surefire-plugin false - true once diff --git a/psc-toggle-manager/src/main/resources/application.properties b/psc-toggle-manager/src/main/resources/application.properties index 2ac8450..3e1c1d4 100644 --- a/psc-toggle-manager/src/main/resources/application.properties +++ b/psc-toggle-manager/src/main/resources/application.properties @@ -1,3 +1,19 @@ +# +# Copyright (C) ${project.inceptionYear} Agence du Numérique en Santé (ANS) (https://esante.gouv.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. +# + server.servlet.context-path=v1 api.base.url=http://localhost:9000/api diff --git a/psc-toggle-manager/src/main/resources/logback-spring.xml b/psc-toggle-manager/src/main/resources/logback-spring.xml index 0368156..48616d2 100644 --- a/psc-toggle-manager/src/main/resources/logback-spring.xml +++ b/psc-toggle-manager/src/main/resources/logback-spring.xml @@ -1,4 +1,21 @@ + diff --git a/psc-toggle-manager/src/test/resources/application-test.properties b/psc-toggle-manager/src/test/resources/application-test.properties index 3d57565..c6f23e4 100644 --- a/psc-toggle-manager/src/test/resources/application-test.properties +++ b/psc-toggle-manager/src/test/resources/application-test.properties @@ -1,3 +1,19 @@ +# +# Copyright (C) ${project.inceptionYear} Agence du Numérique en Santé (ANS) (https://esante.gouv.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. +# + server.servlet.context-path=/v1 api.base.url=http://localhost:9000/api diff --git a/waypoint.hcl b/waypoint.hcl index 80ccfe3..5193028 100644 --- a/waypoint.hcl +++ b/waypoint.hcl @@ -1,3 +1,18 @@ +/* + * Copyright (C) ${project.inceptionYear} Agence du Numérique en Santé (ANS) (https://esante.gouv.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. + */ project = "prosanteconnect/${workspace.name}/psc-toggle-manager" # Labels can be specified for organizational purposes.