You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/02/19 02:17:28 UTC

[dubbo-spi-extensions] branch 2.7.x updated: Apache distribution (#18)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 2.7.x
in repository https://gitbox.apache.org/repos/asf/dubbo-spi-extensions.git


The following commit(s) were added to refs/heads/2.7.x by this push:
     new e8b4c4a  Apache distribution (#18)
e8b4c4a is described below

commit e8b4c4ae164df8e12fcfddd174e2b1ab2e8d9e11
Author: ken.lj <ke...@gmail.com>
AuthorDate: Fri Feb 19 10:17:19 2021 +0800

    Apache distribution (#18)
    
    * prepare for apache package
    
    * add api-docs
    
    * upgrade version to 2.7.8.2
---
 NOTICE                                       |   2 +-
 distribution/pom.xml                         |  73 +++++++++++++++
 distribution/src/assembly/source-release.xml |  57 ++++++++++++
 dubbo-api-docs/pom.xml                       |   2 +-
 pom.xml                                      | 131 ++++++++++++++++++++++++---
 5 files changed, 251 insertions(+), 14 deletions(-)

diff --git a/NOTICE b/NOTICE
index 7a95db5..eaa4a39 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache Dubbo
-Copyright 2018-2020 The Apache Software Foundation
+Copyright 2018-2021 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
diff --git a/distribution/pom.xml b/distribution/pom.xml
new file mode 100644
index 0000000..e9059c4
--- /dev/null
+++ b/distribution/pom.xml
@@ -0,0 +1,73 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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 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.dubbo.spi</groupId>
+        <artifactId>dubbo-spi-extensions</artifactId>
+        <version>${revision}</version>
+    </parent>
+    <artifactId>distribution</artifactId>
+    <packaging>pom</packaging>
+    <name>distribution</name>
+    <description>The apache distribution module for dubbo</description>
+    <properties>
+        <skip_maven_deploy>true</skip_maven_deploy>
+    </properties>
+
+    <profiles>
+        <profile>
+            <id>release</id>
+            <build>
+                <finalName>apache-dubbo-extensions-${project.version}</finalName>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <version>3.1.0</version>
+                        <executions>
+                            <execution>
+                                <id>src</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>single</goal>
+                                </goals>
+                                <configuration>
+                                    <descriptors>
+                                        <descriptor>src/assembly/source-release.xml</descriptor>
+                                    </descriptors>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <version>1.6</version>
+                        <executions>
+                            <execution>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>
diff --git a/distribution/src/assembly/source-release.xml b/distribution/src/assembly/source-release.xml
new file mode 100644
index 0000000..89297e5
--- /dev/null
+++ b/distribution/src/assembly/source-release.xml
@@ -0,0 +1,57 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+  -->
+<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
+    <id>src</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>true</includeBaseDirectory>
+    <baseDirectory>dubbo-api-docs-src</baseDirectory>
+
+    <fileSets>
+        <fileSet>
+            <directory>../</directory>
+            <useDefaultExcludes>true</useDefaultExcludes>
+            <includes>
+                <include>dubbo-api-docs/**</include>
+            </includes>
+            <excludes>
+                <exclude>**/target/**</exclude>
+                <exclude>**/build/**</exclude>
+                <exclude>**/eclipse-classes/**</exclude>
+                <exclude>*.enc</exclude>
+                <exclude>*.gpg</exclude>
+                <exclude>**/surefire*</exclude>
+                <exclude>**/svn-commit*</exclude>
+                <exclude>**/.idea/**</exclude>
+                <exclude>**/*.iml</exclude>
+                <exclude>**/*.ipr</exclude>
+                <exclude>**/*.iws</exclude>
+                <exclude>**/cobertura.ser</exclude>
+                <exclude>**/*.log</exclude>
+                <exclude>release.properties</exclude>
+                <exclude>**/*.xml.*</exclude>
+                <exclude>**/*.patch</exclude>
+                <exclude>**/.mvn/**</exclude>
+                <exclude>**/*.jar</exclude>
+                <exclude>**/mvnw*</exclude>
+                <exclude>**/.flattened-pom.xml</exclude>
+            </excludes>
+        </fileSet>
+    </fileSets>
+</assembly>
diff --git a/dubbo-api-docs/pom.xml b/dubbo-api-docs/pom.xml
index 0b97573..c0c2c9a 100644
--- a/dubbo-api-docs/pom.xml
+++ b/dubbo-api-docs/pom.xml
@@ -85,7 +85,7 @@
     </issueManagement>
 
     <properties>
-        <revision>2.7.8.2-SNAPSHOT</revision>
+        <revision>2.7.8.2</revision>
         <project.build.jdkVersion>1.8</project.build.jdkVersion>
         <argLine>-Dfile.encoding=UTF-8</argLine>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
diff --git a/pom.xml b/pom.xml
index c7f5f5b..6f57b69 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,18 +46,6 @@
         <maven_source_version>3.2.1</maven_source_version>
         <maven_javadoc_version>3.0.1</maven_javadoc_version>
     </properties>
-   
-    <modules>
-        <module>dubbo-all</module>
-        <module>dubbo-spi-container</module>
-        <module>dubbo-spi-remoting</module>
-        <module>dubbo-spi-rpc</module>
-        <module>dubbo-spi-registry</module>
-        <module>dubbo-spi-serialization</module>
-        <module>dubbo-spi-configcenter</module>
-        <module>dubbo-spi-metadata</module>
-        <module>dubbo-test</module>
-    </modules>
 
     <dependencies>
         <dependency>
@@ -93,6 +81,22 @@
     </dependencies>
 
     <build>
+        <!-- Used for packaging NOTICE & LICENSE to each sub-module jar-->
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>false</filtering>
+            </resource>
+            <resource>
+                <directory>${maven.multiModuleProjectDirectory}</directory>
+                <targetPath>META-INF/</targetPath>
+                <filtering>false</filtering>
+                <includes>
+                    <include>NOTICE</include>
+                    <include>LICENSE</include>
+                </includes>
+            </resource>
+        </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -111,4 +115,107 @@
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <id>default</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <modules>
+                <module>dubbo-all</module>
+                <module>dubbo-spi-container</module>
+                <module>dubbo-spi-remoting</module>
+                <module>dubbo-spi-rpc</module>
+                <module>dubbo-spi-registry</module>
+                <module>dubbo-spi-serialization</module>
+                <module>dubbo-spi-configcenter</module>
+                <module>dubbo-spi-metadata</module>
+                <module>dubbo-api-docs</module>
+                <module>dubbo-test</module>
+            </modules>
+
+        </profile>
+        <profile>
+            <id>release</id>
+            <modules>
+                <module>dubbo-api-docs</module>
+                <module>distribution</module>
+            </modules>
+
+            <properties>
+                <log4j2_version>2.11.1</log4j2_version>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-source-plugin</artifactId>
+                        <version>${maven_source_version}</version>
+                        <executions>
+                            <execution>
+                                <id>attach-sources</id>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <version>${maven_javadoc_version}</version>
+                        <executions>
+                            <execution>
+                                <id>attach-javadoc</id>
+                                <goals>
+                                    <goal>jar</goal>
+                                    <goal>aggregate</goal>
+                                </goals>
+                                <configuration>
+                                    <additionalDependencies>
+                                        <additionalDependency>
+                                            <groupId>org.apache.logging.log4j</groupId>
+                                            <artifactId>log4j-api</artifactId>
+                                            <version>${log4j2_version}</version>
+                                        </additionalDependency>
+                                        <additionalDependency>
+                                            <groupId>org.apache.logging.log4j</groupId>
+                                            <artifactId>log4j-core</artifactId>
+                                            <version>${log4j2_version}</version>
+                                        </additionalDependency>
+                                    </additionalDependencies>
+                                </configuration>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <show>public</show>
+                            <charset>UTF-8</charset>
+                            <encoding>UTF-8</encoding>
+                            <docencoding>UTF-8</docencoding>
+                            <links>
+                                <link>http://docs.oracle.com/javase/8/docs/api</link>
+                            </links>
+                            <doclint>none</doclint>
+                            <excludePackageNames>
+                                org.apache.dubbo.apidocs.examples.*
+                            </excludePackageNames>
+                            <doctitle>Apache Dubbo Extensions ${project.version} API</doctitle>
+                            <windowtitle>Apache Dubbo Extensions ${project.version} API</windowtitle>
+                        </configuration>
+                    </plugin>
+                    <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>
+    </profiles>
 </project>