mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 23:18:52 -05:00
Mavenized this project
This commit is contained in:
parent
79cc64b62d
commit
7ff0610bef
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,6 +8,8 @@ ls.jar
|
|||||||
*.class
|
*.class
|
||||||
bin
|
bin
|
||||||
build
|
build
|
||||||
|
target
|
||||||
|
*~
|
||||||
.*
|
.*
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!.gitmodules
|
!.gitmodules
|
||||||
|
@ -1,97 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project name="MoparClassic" default="build" xmlns:ivy="antlib:org.apache.ivy.ant">
|
|
||||||
<property name="src" location="src" />
|
|
||||||
<property name="bin" location="bin" />
|
|
||||||
<property name="lib_managed" location="lib_managed" />
|
|
||||||
<property name="lib" location="lib" />
|
|
||||||
<property name="module" location="module" />
|
|
||||||
<property name="doc" location="doc" />
|
|
||||||
<property name="jar" value="moparclassic.jar" />
|
|
||||||
<property name="main-class" value="org.moparscape.msc.gs.Server" />
|
|
||||||
<property name="scala-version" value="2.9.1" />
|
|
||||||
<property name="ivy.lib.dir" value="lib_managed" />
|
|
||||||
|
|
||||||
<fileset id="libraries" dir="${lib}">
|
|
||||||
<include name="*.jar" />
|
|
||||||
</fileset>
|
|
||||||
|
|
||||||
<fileset id="libraries_managed" dir="${lib_managed}">
|
|
||||||
<include name="*.jar" />
|
|
||||||
</fileset>
|
|
||||||
|
|
||||||
<fileset id="modules" dir="${module}">
|
|
||||||
<include name="*.jar" />
|
|
||||||
</fileset>
|
|
||||||
|
|
||||||
<fileset id="production-classes" dir="${bin}">
|
|
||||||
<include name="**/*.class" />
|
|
||||||
</fileset>
|
|
||||||
|
|
||||||
<path id="binary-path">
|
|
||||||
<pathelement path="${bin}" />
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<path id="library-path">
|
|
||||||
<fileset refid="libraries" />
|
|
||||||
<fileset refid="libraries_managed" />
|
|
||||||
<fileset refid="modules" />
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<path id="master-path">
|
|
||||||
<path refid="binary-path" />
|
|
||||||
<path refid="library-path" />
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<target name="init">
|
|
||||||
<mkdir dir="${bin}" />
|
|
||||||
<mkdir dir="${doc}" />
|
|
||||||
<mkdir dir="${lib}" />
|
|
||||||
<mkdir dir="${lib_managed}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="resolve" depends="init">
|
|
||||||
<ivy:retrieve sync="true" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="build" depends="resolve">
|
|
||||||
<taskdef resource="scala/tools/ant/antlib.xml" classpathref="library-path">
|
|
||||||
<classpath>
|
|
||||||
<pathelement location="${lib}/scala-compiler-${scala-version}.jar" />
|
|
||||||
<pathelement location="${lib}/scala-library-${scala-version}.jar" />
|
|
||||||
</classpath>
|
|
||||||
</taskdef>
|
|
||||||
<scalac destdir="${bin}" classpathref="library-path">
|
|
||||||
<src path="${src}" />
|
|
||||||
</scalac>
|
|
||||||
<javac destdir="${bin}" includeantruntime="false">
|
|
||||||
<src path="${src}" />
|
|
||||||
<classpath refid="library-path" />
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${bin}" />
|
|
||||||
<delete dir="${doc}" />
|
|
||||||
<delete file="${jar}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run">
|
|
||||||
<java classpathref="master-path" fork="true" classname="${main-class}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="doc" depends="build">
|
|
||||||
<scaladoc srcdir="${src}" destdir="${doc}" deprecation="yes" unchecked="yes" doctitle="MoparClassic Documentation" classpathref="master-path">
|
|
||||||
<include name="**/*.scala" />
|
|
||||||
</scaladoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar" depends="build">
|
|
||||||
<jar destfile="${jar}">
|
|
||||||
<zipgroupfileset refid="libraries" />
|
|
||||||
<fileset refid="production-classes" />
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main-class}" />
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
</project>
|
|
@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ivy-module version="2.0">
|
|
||||||
<info organisation="org.moparscape" module="MoparClassic" />
|
|
||||||
<dependencies>
|
|
||||||
<dependency org="org.scala-lang" name="scala-library" rev="2.9.1" />
|
|
||||||
|
|
||||||
<dependency org="org.scala-lang" name="scala-compiler" rev="2.9.1" />
|
|
||||||
|
|
||||||
<dependency org="javax.mail" name="mail" rev="1.4.4" />
|
|
||||||
|
|
||||||
<dependency org="mysql" name="mysql-connector-java" rev="5.1.18" />
|
|
||||||
|
|
||||||
<dependency org="org.beanshell" name="bsh" rev="2.0b4"/>
|
|
||||||
|
|
||||||
<dependency org="commons-collections" name="commons-collections" rev="3.2.1"/>
|
|
||||||
|
|
||||||
<dependency org="org.slf4j" name="slf4j-simple" rev="1.6.3"/>
|
|
||||||
|
|
||||||
<dependency org="net.jcip" name="jcip-annotations" rev="1.0"/>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
</ivy-module>
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
97
GameServer/pom.xml
Normal file
97
GameServer/pom.xml
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<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>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.moparscape.classic</groupId>
|
||||||
|
<artifactId>MoparClassic</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>GameServer</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>${project.artifactId}</name>
|
||||||
|
<properties>
|
||||||
|
<main.class>org.moparscape.msc.gs.Server</main.class>
|
||||||
|
<scala.version>2.9.1</scala.version>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.mina</groupId>
|
||||||
|
<artifactId>mina-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.mail</groupId>
|
||||||
|
<artifactId>mail</artifactId>
|
||||||
|
<version>1.4.4</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.beanshell</groupId>
|
||||||
|
<artifactId>bsh</artifactId>
|
||||||
|
<version>2.0b4</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-collections</groupId>
|
||||||
|
<artifactId>commons-collections</artifactId>
|
||||||
|
<version>3.2.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.jcip</groupId>
|
||||||
|
<artifactId>jcip-annotations</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.scala-lang</groupId>
|
||||||
|
<artifactId>scala-library</artifactId>
|
||||||
|
<version>${scala.version}</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-simple</artifactId>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<!--dependency>
|
||||||
|
<groupId>${project.groupId}</groupId>
|
||||||
|
<artifactId>XMLUsingXStream</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency-->
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<finalName>moparclassic</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.scala-tools</groupId>
|
||||||
|
<artifactId>maven-scala-plugin</artifactId>
|
||||||
|
<version>2.15.2</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>scala-compile-first</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>add-source</goal>
|
||||||
|
<goal>compile</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<scalaVersion>${scala.version}</scalaVersion>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user