This is an automated email from the ASF dual-hosted git repository. shaojunwang pushed a commit to branch release-v0.1.0 in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-java-tee-sdk.git
commit 9abd9dd05e3ed13a5ee0c785d8f52287b353147c Author: shaojunwang <[email protected]> AuthorDate: Tue Nov 29 09:26:16 2022 +0000 Add gpg signature plugin and license check for maven --- archetype/pom.xml | 56 +++++++++++++++++++++++++ sdk/pom.xml | 63 +++++++++++++++++++++++++--- third-party-libs/bouncycastle-native/pom.xml | 58 +++++++++++++++++++++++-- 3 files changed, 168 insertions(+), 9 deletions(-) diff --git a/archetype/pom.xml b/archetype/pom.xml index 89c757f..750fbe9 100644 --- a/archetype/pom.xml +++ b/archetype/pom.xml @@ -92,4 +92,60 @@ <system>Github Issues</system> <url>https://github.com/apache/incubator-teaclave-java-tee-sdk/issues</url> </issueManagement> + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>licenseCheck</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>license-maven-plugin</artifactId> + <version>2.0.0</version> + <executions> + <execution> + <id>license-check</id> + <phase>generate-sources</phase> + <goals> + <goal>add-third-party</goal> + </goals> + <configuration> + <includeOptional>false</includeOptional> + <useMissingFile>false</useMissingFile> + <failOnMissing>false</failOnMissing> + <licenseMerges> + <licenseMerge>Apache License, Version 2.0|The Apache Software License, Version + 2.0|ASF 2.0|Apache 2|Apache-2.0|Apache 2.0 License|Apache 2.0|Apache License v2.0|Apache License 2.0|The Apache License, Version 2.0|The Apache Software License, Version 2.0 + </licenseMerge> + <licenseMerge>The MIT License|MIT License</licenseMerge> + <licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD + License|BSD|3-Clause BSD License|The New BSD License + </licenseMerge> + </licenseMerges> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> \ No newline at end of file diff --git a/sdk/pom.xml b/sdk/pom.xml index 1110c53..7d2dd99 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -15,13 +15,11 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - <parent> <groupId>org.apache</groupId> <artifactId>apache</artifactId> <version>23</version> </parent> - <groupId>org.apache.teaclave.javasdk</groupId> <artifactId>JavaEnclave</artifactId> <packaging>pom</packaging> @@ -71,17 +69,14 @@ <url>https://teaclave.apache.org/</url> </developer> </developers> - <organization> <name>The Apache Software Foundation</name> <url>http://www.apache.org/</url> </organization> - <issueManagement> <system>Github Issues</system> <url>https://github.com/apache/incubator-teaclave-java-tee-sdk/issues</url> </issueManagement> - <properties> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> @@ -202,4 +197,60 @@ </plugins> </pluginManagement> </build> -</project> + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>licenseCheck</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>license-maven-plugin</artifactId> + <version>2.0.0</version> + <executions> + <execution> + <id>license-check</id> + <phase>generate-sources</phase> + <goals> + <goal>add-third-party</goal> + </goals> + <configuration> + <includeOptional>false</includeOptional> + <useMissingFile>false</useMissingFile> + <failOnMissing>false</failOnMissing> + <licenseMerges> + <licenseMerge>Apache License, Version 2.0|The Apache Software License, Version + 2.0|ASF 2.0|Apache 2|Apache-2.0|Apache 2.0 License|Apache 2.0|Apache License v2.0|Apache License 2.0|The Apache License, Version 2.0|The Apache Software License, Version 2.0 + </licenseMerge> + <licenseMerge>The MIT License|MIT License</licenseMerge> + <licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD + License|BSD|3-Clause BSD License|The New BSD License + </licenseMerge> + </licenseMerges> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> \ No newline at end of file diff --git a/third-party-libs/bouncycastle-native/pom.xml b/third-party-libs/bouncycastle-native/pom.xml index df402be..1feeef9 100644 --- a/third-party-libs/bouncycastle-native/pom.xml +++ b/third-party-libs/bouncycastle-native/pom.xml @@ -78,7 +78,6 @@ <system>Github Issues</system> <url>https://github.com/apache/incubator-teaclave-java-tee-sdk/issues</url> </issueManagement> - <dependencies> <dependency> <groupId>org.graalvm.nativeimage</groupId> @@ -114,7 +113,6 @@ <scope>test</scope> </dependency> </dependencies> - <build> <plugins> <plugin> @@ -173,5 +171,59 @@ </plugins> </build> </profile> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>licenseCheck</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>license-maven-plugin</artifactId> + <version>2.0.0</version> + <executions> + <execution> + <id>license-check</id> + <phase>generate-sources</phase> + <goals> + <goal>add-third-party</goal> + </goals> + <configuration> + <includeOptional>false</includeOptional> + <useMissingFile>false</useMissingFile> + <failOnMissing>false</failOnMissing> + <licenseMerges> + <licenseMerge>Apache License, Version 2.0|The Apache Software License, Version + 2.0|ASF 2.0|Apache 2|Apache-2.0|Apache 2.0 License|Apache 2.0|Apache License v2.0|Apache License 2.0|The Apache License, Version 2.0|The Apache Software License, Version 2.0 + </licenseMerge> + <licenseMerge>The MIT License|MIT License</licenseMerge> + <licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD + License|BSD|3-Clause BSD License|The New BSD License + </licenseMerge> + </licenseMerges> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> -</project> +</project> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
