Updated the build scripts. Bumped version to 2.2.0-beta.
This commit is contained in:
parent
b64f41ce0c
commit
931cd1a520
@ -1,10 +1,10 @@
|
|||||||
name: Craft Inc. Gates
|
name: ${project.name}
|
||||||
version: 2.2.0-DEV
|
version: ${project.version}
|
||||||
description: A plugin to create gates for fast traveling.
|
description: A plugin to create gates for fast traveling.
|
||||||
softdepend: [Vault]
|
softdepend: [Vault]
|
||||||
author: tomco, s1m0ne
|
author: tomco, s1m0ne
|
||||||
authors: [oloflarsson, locutus, DrAgonmoray, s1m0ne, tomco]
|
authors: [oloflarsson, locutus, DrAgonmoray, s1m0ne, tomco]
|
||||||
website: http://www.craftinc.de/craftinc-gates/
|
website: http://dev.bukkit.org/bukkit-plugins/craftinc-gates/
|
||||||
|
|
||||||
main: de.craftinc.gates.Plugin
|
main: de.craftinc.gates.Plugin
|
||||||
database: false
|
database: false
|
||||||
|
8
pom.xml
8
pom.xml
@ -4,14 +4,16 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.craftinc</groupId>
|
<groupId>de.craftinc</groupId>
|
||||||
<artifactId>CraftIncGates</artifactId>
|
<artifactId>CraftIncGates</artifactId>
|
||||||
|
<name>Craft Inc. Gates</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>2.2.0-DEV</version>
|
<version>2.2.0-beta</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<finalName>${project.name} ${project.version}</finalName>
|
||||||
<sourceDirectory>src</sourceDirectory>
|
<sourceDirectory>src</sourceDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
@ -58,14 +60,14 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>bukkit</artifactId>
|
<artifactId>bukkit</artifactId>
|
||||||
<version>1.5.2-R0.1</version>
|
<version>1.5.2-R1.0</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>craftbukkit</artifactId>
|
<artifactId>craftbukkit</artifactId>
|
||||||
<version>1.5.2-R0.1</version>
|
<version>1.5.2-R1.0</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT_DIR=$(dirname "$0")
|
SCRIPT_DIR="$(dirname "$0")"
|
||||||
|
|
||||||
DEVELOPER=$(whoami)
|
DEVELOPER=$(whoami)
|
||||||
|
|
||||||
@ -14,18 +14,15 @@ else
|
|||||||
START_STOP_SCRIPT="$SCRIPT_DIR/minecraft.sh"
|
START_STOP_SCRIPT="$SCRIPT_DIR/minecraft.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# TODO: This is a bad solution! Maven should write necessary information into an extra file.
|
||||||
|
ARTIFACT_ID="$(grep -C5 '<groupId>de.craftinc' "$SCRIPT_DIR/../pom.xml" | grep '<name>' | sed 's/[ \t]*<name>//g' | sed 's/<\/name>[ \t]*//g')"
|
||||||
|
|
||||||
# TODO: This is a bad solution! Maven should write necessary information into an extra file.
|
# TODO: This is a bad solution! Maven should write necessary information into an extra file.
|
||||||
ARTIFACT_ID="$(grep -C3 '<groupId>de.craftinc' "$SCRIPT_DIR/../pom.xml" | grep '<artifactId>' | sed 's/[ \t]*<artifactId>//g' | sed 's/<\/artifactId>[ \t]*//g')"
|
VERSION="$(grep -C5 '<groupId>de.craftinc' "$SCRIPT_DIR/../pom.xml" | grep '<version>' | sed 's/[ \t]*<version>//g' | sed 's/<\/version>[ \t]*//g')"
|
||||||
|
|
||||||
# TODO: This is a bad solution! Maven should write necessary information into an extra file.
|
|
||||||
VERSION="$(grep -C3 '<groupId>de.craftinc' "$SCRIPT_DIR/../pom.xml" | grep '<version>' | sed 's/[ \t]*<version>//g' | sed 's/<\/version>[ \t]*//g')"
|
|
||||||
|
|
||||||
|
|
||||||
mkdir -p "$PLUGIN_DIR"
|
mkdir -p "$PLUGIN_DIR"
|
||||||
|
|
||||||
cp "$SCRIPT_DIR/../target/$ARTIFACT_ID-$VERSION".jar "$PLUGIN_DIR/"
|
cp "$SCRIPT_DIR/../target/$ARTIFACT_ID $VERSION".jar "$PLUGIN_DIR/"
|
||||||
|
|
||||||
echo -e "ddidderr\nmice_on_drugs\nMochaccino\nbeuth_el_max" > "$BUKKIT_DIR/ops.txt"
|
echo -e "ddidderr\nmice_on_drugs\nMochaccino\nbeuth_el_max" > "$BUKKIT_DIR/ops.txt"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user