Skip to content

Commit

Permalink
tag use
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamesuta committed Oct 8, 2017
1 parent edac9df commit ddf3a8a
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
!.gitattributes
!.travis.yml
!settings.xml
!pom.xml
!pom.tmp
!LICENSE.md
!README.md
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ jdk: oraclejdk8
branches:
except:
- /^build@.*/
before_install:
- "VERSIONVAL=unknown; if [ -n \"${TRAVIS_TAG}\" ]; then VERSIONVAL=${TRAVIS_TAG}; fi; if [ -n \"${TRAVIS_BUILD_NUMBER}\" ]; then VERSIONVAL=r${TRAVIS_BUILD_NUMBER}; fi; sed -e s%@VERSION@%${VERSIONVAL}% pom.tmp > pom.xml"
install:
- "sh -c \"if [ -n \\\"${TRAVIS_TAG}\\\" ]; then mvn clean install -Dmy.version=${TRAVIS_TAG}; else mvn clean install; fi\""
- mvn clean install
cache:
directories:
- .autoconf
Expand Down
75 changes: 75 additions & 0 deletions pom.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>net.teamfruit</groupId>
<artifactId>fmllegacydependency</artifactId>
<version>@VERSION@</version>
<name>FMLLegacyDependency</name>
<packaging>jar</packaging>
<description>FML cpw.mods.fml package facade</description>

<licenses>
<license>
<name>GNU General Lesser Public License (LGPL) version 2.1</name>
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
</license>
</licenses>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bintray.subject>team-fruit</bintray.subject>
<bintray.repo>mods</bintray.repo>
<bintray.package>FMLLegacyDependency</bintray.package>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.9</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.0-M1</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>bintray-team-fruit</id>
<url>https://api.bintray.com/maven/${bintray.subject}/${bintray.repo}/${bintray.package}/;publish=1</url>
</repository>
</distributionManagement>
</project>
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.teamfruit</groupId>
<artifactId>fmllegacydependency</artifactId>
<version>${my.version}</version>
<version>aaa</version>
<name>FMLLegacyDependency</name>
<packaging>jar</packaging>
<description>FML cpw.mods.fml package facade</description>
Expand All @@ -21,7 +21,6 @@
<bintray.subject>team-fruit</bintray.subject>
<bintray.repo>mods</bintray.repo>
<bintray.package>FMLLegacyDependency</bintray.package>
<my.version>unknown</my.version>
</properties>

<dependencies>
Expand Down

0 comments on commit ddf3a8a

Please sign in to comment.