diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2022-03-30 13:17:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-03-30 13:17:09 +0000 |
commit | 41897f6465b534eaac4b960bba6f4491ea4d9d15 (patch) | |
tree | 1cc9da80ce984efe8896962ebea779842b6795b5 /checkstyle/pom.xml | |
parent | a0bbcfd8de94bb433e787b1a6ee400c988975850 (diff) | |
parent | 165e3b8bcc492ebe31431f30c14d5dc98bb7f18e (diff) |
Merge "Copyright Check Script"
Diffstat (limited to 'checkstyle/pom.xml')
-rw-r--r-- | checkstyle/pom.xml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml index 4e042e97de..a1aa4c95c4 100644 --- a/checkstyle/pom.xml +++ b/checkstyle/pom.xml @@ -2,6 +2,7 @@ <!-- ============LICENSE_START======================================================= Copyright (C) 2020 Pantheon.tech + Modifications Copyright (C) 2022 Nordix Foundation ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -27,6 +28,31 @@ <artifactId>checkstyle</artifactId> <version>3.1.0-SNAPSHOT</version> + <profiles> + <profile> + <id>Windows</id> + <activation> + <os> + <family>Windows</family> + </os> + </activation> + <properties> + <script.executor>python</script.executor> + </properties> + </profile> + <profile> + <id>unix</id> + <activation> + <os> + <family>unix</family> + </os> + </activation> + <properties> + <script.executor>python3</script.executor> + </properties> + </profile> + </profiles> + <properties> <nexusproxy>https://nexus.onap.org</nexusproxy> <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> @@ -58,4 +84,32 @@ <url>${nexusproxy}${snapshotNexusPath}</url> </snapshotRepository> </distributionManagement> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.6.0</version> + <executions> + <execution> + <id>copyright-check</id> + <phase>verify</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>${script.executor}</executable> + <workingDirectory>../checkstyle/src/main/</workingDirectory> + <arguments> + <argument>CopyrightCheck.py</argument> + <argument>resources/project-committers-config.csv</argument> + <argument>resources/copyright-template.txt</argument> + <argument>resources/ignore-files-config.csv</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> </project>
\ No newline at end of file |