Skip to content

Commit

Permalink
使用gradle編譯
Browse files Browse the repository at this point in the history
  • Loading branch information
D363N6UY committed Dec 13, 2018
1 parent fa17b32 commit e3fe8a6
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 141 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gradle
build
2 changes: 1 addition & 1 deletion Launcher.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
title TMS113
set CLASSPATH=.;dist\*
set CLASSPATH=.;dist\*;dist\lib\*
java -Xmx512M -server -Dnet.sf.odinms.wzpath=wz server.Start
pause
47 changes: 47 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apply plugin: 'java'
apply plugin: 'application'

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

compileJava.options.encoding='UTF-8'

project.archivesBaseName = 'MapleStory'
project.libsDirName = 'dist'

repositories {
flatDir {
dirs 'dist/lib'
}
}

dependencies {
compile 'io.netty:netty-all:4.1.15.Final'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'org.slf4j:slf4j-jdk14:1.7.5'
compile 'mysql:mysql-connector-java:5.1.37'
}


mainClassName = 'server.Start'

sourceSets {
main {
java {
srcDir 'src'
}
}
}

task copyJarToDist(type: Copy) {
from 'build/dist/MapleStory.jar'
into 'dist'
}

task buildAndCopy {
dependsOn clean
dependsOn build

build.mustRunAfter clean
finalizedBy copyJarToDist
}
Binary file added dist/MapleStory.jar
Binary file not shown.
Binary file removed dist/TMS113.jar
Binary file not shown.
Binary file added dist/lib/mysql-connector-java-5.1.37.jar
Binary file not shown.
Binary file removed dist/lib/mysql-connector-java-bin.jar
Binary file not shown.
Binary file added dist/lib/slf4j-api-1.7.5.jar
Binary file not shown.
Binary file removed dist/lib/slf4j-api.jar
Binary file not shown.
Binary file added dist/lib/slf4j-jdk14-1.7.5.jar
Binary file not shown.
Binary file removed dist/lib/slf4j-jdk14.jar
Binary file not shown.
83 changes: 0 additions & 83 deletions src/tools/data/output/ByteBufferLittleEndianWriter.java

This file was deleted.

57 changes: 0 additions & 57 deletions src/tools/data/output/ByteBufferOutputstream.java

This file was deleted.

0 comments on commit e3fe8a6

Please sign in to comment.