Configure pom.xml files to automatically release into Sonatype OSS

repository
This commit is contained in:
konsoletyper 2014-03-19 23:14:12 +04:00
parent 359b08591d
commit 02dcf9caa8
7 changed files with 191 additions and 33 deletions

117
pom.xml
View File

@ -1,3 +1,18 @@
<!--
Copyright 2014 Alexey Andreev.
Licensed 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">
@ -8,16 +23,56 @@
<version>0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<name>TeaVM</name>
<description>TeaVM aggregate project</description>
<url>http://teavm.org</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<developers>
<developer>
<id>konsoletyper</id>
<name>Alexey Andreev</name>
<email>konsoletyper@gmail.com</email>
<timezone>+4</timezone>
</developer>
</developers>
<scm>
<url>https://github.com/konsoletyper/teavm</url>
<connection>scm:git:git@github.com:konsoletyper/teavm.git</connection>
</scm>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<html4j.version>0.7.5</html4j.version>
<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
</properties>
<modules>
<module>teavm-core</module>
<module>teavm-classlib</module>
<module>teavm-maven-plugin</module>
<module>teavm-samples</module>
<module>teavm-dom</module>
<module>teavm-jso</module>
<module>teavm-html4j</module>
@ -91,16 +146,74 @@
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>build-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
<phase>post-integration-test</phase>
</execution>
</executions>
<configuration>
<show>protected</show>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>post-integration-test</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>sign-artifacts</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>enable-scala</id>
<modules>
<module>teavm-scala-samples</module>
</modules>
</profile>
<profile>
<id>enable-samples</id>
<modules>
<module>teavm-samples</module>
</modules>
</profile>
</profiles>
</project>
</project>

View File

@ -37,6 +37,9 @@
</dependency>
</dependencies>
<name>TeaVM JCL</name>
<description>TeaVM Java class library emulation</description>
<build>
<plugins>
<plugin>
@ -85,6 +88,14 @@
</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
</project>

View File

@ -40,6 +40,9 @@
</dependency>
</dependencies>
<name>TeaVM core</name>
<description>TeaVM compiler and SPI</description>
<build>
<plugins>
<plugin>
@ -66,34 +69,11 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>build-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
<configuration>
<show>protected</show>
</configuration>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
@ -115,4 +95,4 @@
</plugin>
</plugins>
</reporting>
</project>
</project>

View File

@ -24,6 +24,9 @@
</parent>
<artifactId>teavm-dom</artifactId>
<name>TeaVM DOM</name>
<description>TeaVM browser interface declaration</description>
<dependencies>
<dependency>
<groupId>org.teavm</groupId>
@ -37,4 +40,17 @@
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -23,6 +23,9 @@
</parent>
<artifactId>teavm-html4j</artifactId>
<name>TeaVM html4j support</name>
<description>A set of interceptors and hacks for TeaVM to support html4j</description>
<dependencies>
<dependency>
<groupId>org.teavm</groupId>
@ -99,6 +102,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
@ -113,4 +124,4 @@
</plugins>
</pluginManagement>
</build>
</project>
</project>

View File

@ -24,6 +24,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
</parent>
<artifactId>teavm-jso</artifactId>
<name>TeaVM JavaScript objects</name>
<description>A library that adds convenient interface for interaction between TeaVM and JavaScript code</description>
<dependencies>
<dependency>
<groupId>org.teavm</groupId>
@ -32,4 +35,17 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<optional>true</optional>
</dependency>
</dependencies>
</project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -25,6 +25,9 @@
<artifactId>teavm-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>TeaVM maven plugin</name>
<description>A set of mojos that allow to include TeaVM compiler into maven build process</description>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
@ -73,6 +76,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
</project>