-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## .gitignore ## | ||
# ignore all | ||
* | ||
|
||
# allow any | ||
!*.md | ||
!src/ | ||
!tools/ | ||
!.gitmodules | ||
!.gitignore | ||
!.gitattributes | ||
!.travis.yml | ||
!settings.xml | ||
!pom.xml | ||
!pom.travis.xml | ||
!LICENSE.md | ||
!README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
language: java | ||
jdk: oraclejdk8 | ||
branches: | ||
except: | ||
- /^build@.*/ | ||
before_install: | ||
- "VERSIONVAL=unknown; if [ -n \"${TRAVIS_TAG}\" ]; then VERSIONVAL=${TRAVIS_TAG}; elif [ -n \"${TRAVIS_BUILD_NUMBER}\" ]; then VERSIONVAL=r${TRAVIS_BUILD_NUMBER}; fi; sed -e s%@VERSION@%${VERSIONVAL}% pom.travis.xml > pom.xml" | ||
install: | ||
- mvn clean install | ||
cache: | ||
directories: | ||
- .autoconf | ||
- $HOME/.m2 | ||
notifications: | ||
email: false | ||
before_deploy: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
- export GIT_TAG=build@${TRAVIS_BRANCH}#${TRAVIS_BUILD_NUMBER} | ||
- git tag ${GIT_TAG} -a -m "Generated tag from TravisCI build ${TRAVIS_BUILD_NUMBER}" | ||
- git push --quiet https://${GITHUB_TOKEN}@github.com/Team-Fruit/CoreModLegacyDependency ${GIT_TAG} > /dev/null 2>&1 | ||
deploy: | ||
- provider: releases | ||
prerelease: true | ||
api_key: ${GITHUB_TOKEN} | ||
file_glob: true | ||
file: target/*.jar | ||
skip_cleanup: true | ||
on: | ||
all_branches: true | ||
tags: false | ||
condition: '! "$TRAVIS_BRANCH" =~ ^(dev\\-|feature\\/).*$' | ||
- provider: script | ||
skip_cleanup: true | ||
script: "mvn deploy -Dmy.version=${TRAVIS_TAG} --settings settings.xml" | ||
on: | ||
all_branches: true | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?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>coremodlegacydependency</artifactId> | ||
<version>@VERSION@</version> | ||
<name>CoreModLegacyDependency</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>CoreModLegacyDependency</bintray.package> | ||
</properties> | ||
|
||
<!-- Travis用にはpom.travis.xmlを変更すること! --> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.9</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-api</artifactId> | ||
<version>2.0-beta9</version> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?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>coremodlegacydependency</artifactId> | ||
<version>1.0.0</version> | ||
<name>CoreModLegacyDependency</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>CoreModLegacyDependency</bintray.package> | ||
</properties> | ||
|
||
<!-- Travis用にはpom.travis.xmlを変更すること! --> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.9</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-api</artifactId> | ||
<version>2.0-beta9</version> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' | ||
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> | ||
<servers> | ||
<server> | ||
<id>bintray-team-fruit</id> | ||
<username>${env.BINTRAY_USER}</username> | ||
<password>${env.BINTRAY_KEY}</password> | ||
</server> | ||
</servers> | ||
</settings> |
49 changes: 49 additions & 0 deletions
49
src/main/java/cpw/mods/fml/relauncher/IFMLLoadingPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package cpw.mods.fml.relauncher; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import java.util.Map; | ||
|
||
public interface IFMLLoadingPlugin { | ||
String[] getASMTransformerClass(); | ||
|
||
String getModContainerClass(); | ||
|
||
String getSetupClass(); | ||
|
||
void injectData(Map<String, Object> data); | ||
|
||
String getAccessTransformerClass(); | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface TransformerExclusions { | ||
public String[] value() default ""; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface MCVersion { | ||
public String value() default ""; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface Name { | ||
public String value() default ""; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface DependsOn { | ||
public String[] value() default {}; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface SortingIndex { | ||
public int value() default 0; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
src/main/java/net/minecraftforge/fml/relauncher/IFMLLoadingPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package net.minecraftforge.fml.relauncher; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import java.util.Map; | ||
|
||
public interface IFMLLoadingPlugin { | ||
String[] getASMTransformerClass(); | ||
|
||
String getModContainerClass(); | ||
|
||
String getSetupClass(); | ||
|
||
void injectData(Map<String, Object> data); | ||
|
||
String getAccessTransformerClass(); | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface TransformerExclusions { | ||
public String[] value() default ""; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface MCVersion { | ||
public String value() default ""; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface Name { | ||
public String value() default ""; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface DependsOn { | ||
public String[] value() default {}; | ||
} | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface SortingIndex { | ||
public int value() default 0; | ||
} | ||
} |