Reviewed By: jvillard Differential Revision: D4598899 fbshipit-source-id: 21f45cbmaster
parent
ef79b20e17
commit
0675e88571
@ -0,0 +1,86 @@
|
||||
<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>
|
||||
|
||||
<groupId>com.facebook.infer.annotation</groupId>
|
||||
<artifactId>infer-annotation</artifactId>
|
||||
<version>0.10.0.3-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<description>Annotations for the Infer static analyzer</description>
|
||||
<url>http://fbinfer.com/</url>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>BSD license</name>
|
||||
<url>https://github.com/facebook/infer/blob/master/LICENSE</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:facebook/infer.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:faceook/infer.git</developerConnection>
|
||||
<url>https://github.com/facebook/infer/</url>
|
||||
<tag>infer-annotations-0.10.0.3</tag>
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
</developers>
|
||||
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
</parent>
|
||||
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<name>Sonatype Nexus Snapshots</name>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>sonatype-nexus-staging</id>
|
||||
<name>Nexus Release Repository</name>
|
||||
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jsr305</artifactId>
|
||||
<version>3.0.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
<version>2.5.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default</id>
|
||||
<goals>
|
||||
<goal>perform</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<pomFileName>infer/annotations/pom.xml</pomFileName>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2017 - present Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD style license found in the
|
||||
# LICENSE file in the root directory of this source tree. An additional grant
|
||||
# of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
# create a release of the Infer Java annotations to send to oss.sonatype.org
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
REMOTE="$( git remote get-url origin )"
|
||||
OSS_REMOTE=https://github.com/facebook/infer.git
|
||||
|
||||
# check if we're in the open-source repo
|
||||
if ! git remote get-url origin | grep -q "\bgithub\.com\b"; then
|
||||
echo "Please run this script from the Git repo for open-source Infer!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting release..."
|
||||
|
||||
mvn release:clean release:prepare
|
||||
mvn release:perform -DpushChanges=false
|
Loading…
Reference in new issue