This repository has been archived by the owner on Dec 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove NetBeans project files in favor of gradle files + updated dock…
…er support
- Loading branch information
Showing
32 changed files
with
384 additions
and
1,775 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/logs/** | ||
.idea/ | ||
/.gradle | ||
|
||
# build files | ||
|
||
|
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# Docker support, thanks to xinyifly | ||
|
||
FROM openjdk:7-alpine | ||
FROM openjdk:8-alpine | ||
RUN apk -U add tini | ||
WORKDIR /mnt | ||
COPY ./ ./ | ||
RUN sh ./posix-compile.sh | ||
ADD wz ./wz | ||
ADD docker-launch.sh configuration.ini world.ini ./ | ||
ADD build/libs/HeavenMS.jar HeavenMS.jar | ||
EXPOSE 8484 7575 7576 7577 | ||
CMD exec tini -- sh ./docker-launch.sh |
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
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,40 @@ | ||
plugins { | ||
id 'java' | ||
id 'application' | ||
} | ||
|
||
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation group: 'com.zaxxer', name: 'HikariCP-java7', version: '2.4.13' | ||
implementation group: 'org.apache.mina', name: 'mina-core', version: '2.0.19' | ||
implementation group: 'mysql', name: 'mysql-connector-java', version: '5.1.6' | ||
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21' | ||
implementation group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.5' | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs 'src' | ||
} | ||
} | ||
} | ||
|
||
mainClassName = "net.server.Server" | ||
|
||
jar { | ||
manifest { | ||
attributes( | ||
'Main-Class': mainClassName | ||
) | ||
} | ||
from { | ||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,40 @@ | ||
version: '3.3' | ||
services: | ||
db: | ||
image: mysql:5.7 | ||
environment: | ||
MYSQL_DATABASE: 'heavenms' | ||
MYSQL_ROOT_PASSWORD: '' | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 'true' | ||
ports: | ||
- '3306:3306' | ||
expose: | ||
- '3306' | ||
volumes: | ||
- my-db:/var/lib/mysql | ||
- ./sql:/docker-entrypoint-initdb.d | ||
|
||
heavenms: | ||
build: . | ||
environment: | ||
HOST: '127.0.0.1' | ||
URL: 'jdbc:mysql://db:3306/heavenms' | ||
DB_USER: 'root' | ||
DB_PASS: '' | ||
JAVA8: 'true' | ||
SHUTDOWNHOOK: 'true' | ||
volumes: | ||
- ./scripts:/mnt/scripts | ||
ports: | ||
- '8484:8484' | ||
- '7575:7575' | ||
- '7576:7576' | ||
- '7577:7577' | ||
expose: | ||
- '8484' | ||
- '7575' | ||
- '7576' | ||
- '7577' | ||
|
||
volumes: | ||
my-db: |
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
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 @@ | ||
kotlin.code.style=official |
Binary file not shown.
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,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.