Few Maven changes and added a build script.
This commit is contained in:
parent
a7c683e45c
commit
63f60c4208
|
@ -1,10 +1,10 @@
|
||||||
# Eclipse
|
# Eclipse
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
.settings/
|
.settings
|
||||||
|
|
||||||
# IntelliJ
|
# IntelliJ
|
||||||
.idea/
|
.idea
|
||||||
*.iml
|
*.iml
|
||||||
*.iws
|
*.iws
|
||||||
out
|
out
|
||||||
|
@ -13,6 +13,7 @@ out
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Maven
|
# Maven
|
||||||
log/
|
log
|
||||||
target/
|
target
|
||||||
dependency-reduced-pom.xml
|
dependency-reduced-pom.xml
|
||||||
|
jars
|
|
@ -0,0 +1,10 @@
|
||||||
|
echo "Building NPCLib jars..."
|
||||||
|
ls jars >> /dev/null 2>&1 || mkdir jars
|
||||||
|
|
||||||
|
echo "Building NPCLib-API.jar..."
|
||||||
|
mvn clean install >> /dev/null 2>&1 && cp ./api/target/*.jar ./jars && echo "Finished building NPCLib-API.jar." || echo "Failed building NPCLib-API.jar. Please rebuild manually!"
|
||||||
|
|
||||||
|
echo "Building NPCLib-Plugin.jar..."
|
||||||
|
mvn clean install -Pplugin >> /dev/null 2>&1 && cp ./target/*.jar ./jars && echo "Finished building NPCLib-Plugin.jar." || echo "Failed building NPCLib-Plugin.jar. Please rebuild manually!"
|
||||||
|
|
||||||
|
echo "Finished building NPCLib jars!"
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<directory>../target</directory>
|
<directory>../target</directory>
|
||||||
<finalName>NPCLib-v${project.parent.version}</finalName>
|
<finalName>NPCLib-Plugin-v${project.parent.version}</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/main/resources</directory>
|
<directory>src/main/resources</directory>
|
||||||
|
|
47
pom.xml
47
pom.xml
|
@ -25,6 +25,23 @@
|
||||||
</license>
|
</license>
|
||||||
</licenses>
|
</licenses>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>spigot-repo</id>
|
||||||
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<!--Spigot API-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.spigotmc</groupId>
|
||||||
|
<artifactId>spigot-api</artifactId>
|
||||||
|
<version>1.12.2-R0.1-SNAPSHOT</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean install</defaultGoal>
|
<defaultGoal>clean install</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@ -53,27 +70,21 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>spigot-repo</id>
|
|
||||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<!--Spigot API-->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.spigotmc</groupId>
|
|
||||||
<artifactId>spigot-api</artifactId>
|
|
||||||
<version>1.12.2-R0.1-SNAPSHOT</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>commons</module>
|
<module>commons</module>
|
||||||
<module>nms</module>
|
<module>nms</module>
|
||||||
<module>api</module>
|
<module>api</module>
|
||||||
<module>plugin</module>
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>plugin</id>
|
||||||
|
<modules>
|
||||||
|
<module>commons</module>
|
||||||
|
<module>nms</module>
|
||||||
|
<module>api</module>
|
||||||
|
<module>plugin</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
Loading…
Reference in New Issue