This is an automated email from the ASF dual-hosted git repository.
mabin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git
The following commit(s) were added to refs/heads/master by this push:
new 70abb87 SCB-1458 add settings for distribution
new 91f93ab Merge pull request #24 from kakulisen/distribution
70abb87 is described below
commit 70abb87bc4d83cf448b7a124db5c3c105db994ef
Author: kakulisen <[email protected]>
AuthorDate: Fri Aug 23 10:50:51 2019 +0800
SCB-1458 add settings for distribution
Signed-off-by: kakulisen <[email protected]>
---
pom.xml | 62 +++++++++++++++++++++
toolkit-distribution/pom.xml | 56 +++++++++++++++++++
toolkit-distribution/src/assembly/src.xml | 65 ++++++++++++++++++++++
toolkit-distribution/{ => src}/release/LICENSE | 0
toolkit-distribution/{ => src}/release/NOTICE | 0
.../{ => src}/release/licenses/LICENSE-cal10n | 0
.../{ => src}/release/licenses/LICENSE-cddl | 0
.../{ => src}/release/licenses/LICENSE-commonmark | 0
.../{ => src}/release/licenses/LICENSE-epl-v10 | 0
.../{ => src}/release/licenses/LICENSE-hamcrest | 0
.../{ => src}/release/licenses/LICENSE-mozilla-v20 | 0
.../{ => src}/release/licenses/LICENSE-slf4j | 0
.../release/licenses/LICENSE-woodstox-stax2-api | 0
.../{ => src}/release/licenses/NOTICE-airline | 0
.../release/licenses/NOTICE-apache-commons-cli | 0
.../release/licenses/NOTICE-apache-commons-codec | 0
.../licenses/NOTICE-servicecomb-java-chassis | 0
17 files changed, 183 insertions(+)
diff --git a/pom.xml b/pom.xml
index 1a1dda1..5a207b7 100755
--- a/pom.xml
+++ b/pom.xml
@@ -273,6 +273,68 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>release</id>
+ <modules>
+ <module>samples</module>
+ <module>toolkit-distribution</module>
+ </modules>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.2.1</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.9.1</version>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.5.3</version>
+ <configuration>
+ <autoVersionSubmodules>true</autoVersionSubmodules>
+ <useReleaseProfile>false</useReleaseProfile>
+ <releaseProfiles>release</releaseProfiles>
+ <goals>deploy</goals>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
diff --git a/toolkit-distribution/pom.xml b/toolkit-distribution/pom.xml
new file mode 100644
index 0000000..780d8fa
--- /dev/null
+++ b/toolkit-distribution/pom.xml
@@ -0,0 +1,56 @@
+<!--
+ ~ 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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.servicecomb.toolkit</groupId>
+ <artifactId>toolkit</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>apache-servicecomb-toolkit-distribution</artifactId>
+ <name>Toolkit::Distribution</name>
+ <packaging>pom</packaging>
+
+ <profiles>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>src</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+
<descriptor>src/assembly/src.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
diff --git a/toolkit-distribution/src/assembly/src.xml
b/toolkit-distribution/src/assembly/src.xml
new file mode 100644
index 0000000..76a1863
--- /dev/null
+++ b/toolkit-distribution/src/assembly/src.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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>
+ <id>src</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <baseDirectory>${project.build.finalName}-src</baseDirectory>
+ <fileSets>
+ <!-- Binary Files -->
+ <fileSet>
+ <directory>..</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <!-- excludes the binary files -->
+ <excludes>
+ <!-- exclude the mvn wrapper in the source artifact -->
+ <exclude>mvnw*</exclude>
+ <exclude>.mvn/**</exclude>
+
+ <exclude>**/eclipse-classes/**</exclude>
+ <exclude>**/target/**</exclude>
+ <exclude>**/build/**</exclude>
+ <exclude>**/eclipse-classes/**</exclude>
+ <exclude>**/.*</exclude>
+ <exclude>**/.*/**</exclude>
+ <exclude>*.enc</exclude>
+ <exclude>*.gpg</exclude>
+ <exclude>random_seed</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>**/node_modules/**</exclude>
+ </excludes>
+ </fileSet>
+
+ </fileSets>
+</assembly>
diff --git a/toolkit-distribution/release/LICENSE
b/toolkit-distribution/src/release/LICENSE
similarity index 100%
rename from toolkit-distribution/release/LICENSE
rename to toolkit-distribution/src/release/LICENSE
diff --git a/toolkit-distribution/release/NOTICE
b/toolkit-distribution/src/release/NOTICE
similarity index 100%
rename from toolkit-distribution/release/NOTICE
rename to toolkit-distribution/src/release/NOTICE
diff --git a/toolkit-distribution/release/licenses/LICENSE-cal10n
b/toolkit-distribution/src/release/licenses/LICENSE-cal10n
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-cal10n
rename to toolkit-distribution/src/release/licenses/LICENSE-cal10n
diff --git a/toolkit-distribution/release/licenses/LICENSE-cddl
b/toolkit-distribution/src/release/licenses/LICENSE-cddl
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-cddl
rename to toolkit-distribution/src/release/licenses/LICENSE-cddl
diff --git a/toolkit-distribution/release/licenses/LICENSE-commonmark
b/toolkit-distribution/src/release/licenses/LICENSE-commonmark
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-commonmark
rename to toolkit-distribution/src/release/licenses/LICENSE-commonmark
diff --git a/toolkit-distribution/release/licenses/LICENSE-epl-v10
b/toolkit-distribution/src/release/licenses/LICENSE-epl-v10
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-epl-v10
rename to toolkit-distribution/src/release/licenses/LICENSE-epl-v10
diff --git a/toolkit-distribution/release/licenses/LICENSE-hamcrest
b/toolkit-distribution/src/release/licenses/LICENSE-hamcrest
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-hamcrest
rename to toolkit-distribution/src/release/licenses/LICENSE-hamcrest
diff --git a/toolkit-distribution/release/licenses/LICENSE-mozilla-v20
b/toolkit-distribution/src/release/licenses/LICENSE-mozilla-v20
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-mozilla-v20
rename to toolkit-distribution/src/release/licenses/LICENSE-mozilla-v20
diff --git a/toolkit-distribution/release/licenses/LICENSE-slf4j
b/toolkit-distribution/src/release/licenses/LICENSE-slf4j
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-slf4j
rename to toolkit-distribution/src/release/licenses/LICENSE-slf4j
diff --git a/toolkit-distribution/release/licenses/LICENSE-woodstox-stax2-api
b/toolkit-distribution/src/release/licenses/LICENSE-woodstox-stax2-api
similarity index 100%
rename from toolkit-distribution/release/licenses/LICENSE-woodstox-stax2-api
rename to toolkit-distribution/src/release/licenses/LICENSE-woodstox-stax2-api
diff --git a/toolkit-distribution/release/licenses/NOTICE-airline
b/toolkit-distribution/src/release/licenses/NOTICE-airline
similarity index 100%
rename from toolkit-distribution/release/licenses/NOTICE-airline
rename to toolkit-distribution/src/release/licenses/NOTICE-airline
diff --git a/toolkit-distribution/release/licenses/NOTICE-apache-commons-cli
b/toolkit-distribution/src/release/licenses/NOTICE-apache-commons-cli
similarity index 100%
rename from toolkit-distribution/release/licenses/NOTICE-apache-commons-cli
rename to toolkit-distribution/src/release/licenses/NOTICE-apache-commons-cli
diff --git a/toolkit-distribution/release/licenses/NOTICE-apache-commons-codec
b/toolkit-distribution/src/release/licenses/NOTICE-apache-commons-codec
similarity index 100%
rename from toolkit-distribution/release/licenses/NOTICE-apache-commons-codec
rename to toolkit-distribution/src/release/licenses/NOTICE-apache-commons-codec
diff --git
a/toolkit-distribution/release/licenses/NOTICE-servicecomb-java-chassis
b/toolkit-distribution/src/release/licenses/NOTICE-servicecomb-java-chassis
similarity index 100%
rename from
toolkit-distribution/release/licenses/NOTICE-servicecomb-java-chassis
rename to
toolkit-distribution/src/release/licenses/NOTICE-servicecomb-java-chassis