Skip to content

Commit 9abd9dd

Browse files
shaojunwangroot
authored andcommitted
Add gpg signature plugin and license check for maven
1 parent e798e23 commit 9abd9dd

File tree

3 files changed

+168
-9
lines changed

3 files changed

+168
-9
lines changed

archetype/pom.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,60 @@
9292
<system>Github Issues</system>
9393
<url>https://github.com/apache/incubator-teaclave-java-tee-sdk/issues</url>
9494
</issueManagement>
95+
<profiles>
96+
<profile>
97+
<id>release</id>
98+
<build>
99+
<plugins>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-gpg-plugin</artifactId>
103+
<executions>
104+
<execution>
105+
<phase>verify</phase>
106+
<goals>
107+
<goal>sign</goal>
108+
</goals>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
</plugins>
113+
</build>
114+
</profile>
115+
<profile>
116+
<id>licenseCheck</id>
117+
<build>
118+
<plugins>
119+
<plugin>
120+
<groupId>org.codehaus.mojo</groupId>
121+
<artifactId>license-maven-plugin</artifactId>
122+
<version>2.0.0</version>
123+
<executions>
124+
<execution>
125+
<id>license-check</id>
126+
<phase>generate-sources</phase>
127+
<goals>
128+
<goal>add-third-party</goal>
129+
</goals>
130+
<configuration>
131+
<includeOptional>false</includeOptional>
132+
<useMissingFile>false</useMissingFile>
133+
<failOnMissing>false</failOnMissing>
134+
<licenseMerges>
135+
<licenseMerge>Apache License, Version 2.0|The Apache Software License, Version
136+
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
137+
</licenseMerge>
138+
<licenseMerge>The MIT License|MIT License</licenseMerge>
139+
<licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD
140+
License|BSD|3-Clause BSD License|The New BSD License
141+
</licenseMerge>
142+
</licenseMerges>
143+
</configuration>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
</plugins>
148+
</build>
149+
</profile>
150+
</profiles>
95151
</project>

sdk/pom.xml

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1616
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1717
<modelVersion>4.0.0</modelVersion>
18-
1918
<parent>
2019
<groupId>org.apache</groupId>
2120
<artifactId>apache</artifactId>
2221
<version>23</version>
2322
</parent>
24-
2523
<groupId>org.apache.teaclave.javasdk</groupId>
2624
<artifactId>JavaEnclave</artifactId>
2725
<packaging>pom</packaging>
@@ -71,17 +69,14 @@
7169
<url>https://teaclave.apache.org/</url>
7270
</developer>
7371
</developers>
74-
7572
<organization>
7673
<name>The Apache Software Foundation</name>
7774
<url>http://www.apache.org/</url>
7875
</organization>
79-
8076
<issueManagement>
8177
<system>Github Issues</system>
8278
<url>https://github.com/apache/incubator-teaclave-java-tee-sdk/issues</url>
8379
</issueManagement>
84-
8580
<properties>
8681
<maven.compiler.source>11</maven.compiler.source>
8782
<maven.compiler.target>11</maven.compiler.target>
@@ -202,4 +197,60 @@
202197
</plugins>
203198
</pluginManagement>
204199
</build>
205-
</project>
200+
<profiles>
201+
<profile>
202+
<id>release</id>
203+
<build>
204+
<plugins>
205+
<plugin>
206+
<groupId>org.apache.maven.plugins</groupId>
207+
<artifactId>maven-gpg-plugin</artifactId>
208+
<executions>
209+
<execution>
210+
<phase>verify</phase>
211+
<goals>
212+
<goal>sign</goal>
213+
</goals>
214+
</execution>
215+
</executions>
216+
</plugin>
217+
</plugins>
218+
</build>
219+
</profile>
220+
<profile>
221+
<id>licenseCheck</id>
222+
<build>
223+
<plugins>
224+
<plugin>
225+
<groupId>org.codehaus.mojo</groupId>
226+
<artifactId>license-maven-plugin</artifactId>
227+
<version>2.0.0</version>
228+
<executions>
229+
<execution>
230+
<id>license-check</id>
231+
<phase>generate-sources</phase>
232+
<goals>
233+
<goal>add-third-party</goal>
234+
</goals>
235+
<configuration>
236+
<includeOptional>false</includeOptional>
237+
<useMissingFile>false</useMissingFile>
238+
<failOnMissing>false</failOnMissing>
239+
<licenseMerges>
240+
<licenseMerge>Apache License, Version 2.0|The Apache Software License, Version
241+
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
242+
</licenseMerge>
243+
<licenseMerge>The MIT License|MIT License</licenseMerge>
244+
<licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD
245+
License|BSD|3-Clause BSD License|The New BSD License
246+
</licenseMerge>
247+
</licenseMerges>
248+
</configuration>
249+
</execution>
250+
</executions>
251+
</plugin>
252+
</plugins>
253+
</build>
254+
</profile>
255+
</profiles>
256+
</project>

third-party-libs/bouncycastle-native/pom.xml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
<system>Github Issues</system>
7979
<url>https://github.com/apache/incubator-teaclave-java-tee-sdk/issues</url>
8080
</issueManagement>
81-
8281
<dependencies>
8382
<dependency>
8483
<groupId>org.graalvm.nativeimage</groupId>
@@ -114,7 +113,6 @@
114113
<scope>test</scope>
115114
</dependency>
116115
</dependencies>
117-
118116
<build>
119117
<plugins>
120118
<plugin>
@@ -173,5 +171,59 @@
173171
</plugins>
174172
</build>
175173
</profile>
174+
<profile>
175+
<id>release</id>
176+
<build>
177+
<plugins>
178+
<plugin>
179+
<groupId>org.apache.maven.plugins</groupId>
180+
<artifactId>maven-gpg-plugin</artifactId>
181+
<executions>
182+
<execution>
183+
<phase>verify</phase>
184+
<goals>
185+
<goal>sign</goal>
186+
</goals>
187+
</execution>
188+
</executions>
189+
</plugin>
190+
</plugins>
191+
</build>
192+
</profile>
193+
<profile>
194+
<id>licenseCheck</id>
195+
<build>
196+
<plugins>
197+
<plugin>
198+
<groupId>org.codehaus.mojo</groupId>
199+
<artifactId>license-maven-plugin</artifactId>
200+
<version>2.0.0</version>
201+
<executions>
202+
<execution>
203+
<id>license-check</id>
204+
<phase>generate-sources</phase>
205+
<goals>
206+
<goal>add-third-party</goal>
207+
</goals>
208+
<configuration>
209+
<includeOptional>false</includeOptional>
210+
<useMissingFile>false</useMissingFile>
211+
<failOnMissing>false</failOnMissing>
212+
<licenseMerges>
213+
<licenseMerge>Apache License, Version 2.0|The Apache Software License, Version
214+
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
215+
</licenseMerge>
216+
<licenseMerge>The MIT License|MIT License</licenseMerge>
217+
<licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD
218+
License|BSD|3-Clause BSD License|The New BSD License
219+
</licenseMerge>
220+
</licenseMerges>
221+
</configuration>
222+
</execution>
223+
</executions>
224+
</plugin>
225+
</plugins>
226+
</build>
227+
</profile>
176228
</profiles>
177-
</project>
229+
</project>

0 commit comments

Comments
 (0)