mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-02 04:13:50 +07:00
Moved map viewer into tools:map-viewer
This commit is contained in:
parent
980af282ab
commit
a428615e5f
@ -1,7 +1,7 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="Map Viewer" type="Application" factoryName="Application" singleton="true">
|
<configuration default="false" name="Map Viewer" type="Application" factoryName="Application" singleton="true">
|
||||||
<option name="MAIN_CLASS_NAME" value="com.riiablo.map.MapViewer" />
|
<option name="MAIN_CLASS_NAME" value="com.riiablo.map.MapViewer" />
|
||||||
<module name="riiablo.tools" />
|
<module name="riiablo.tools.map-viewer" />
|
||||||
<option name="PROGRAM_PARAMETERS" value=""C:\Program Files (x86)\Steam\steamapps\common\Diablo II" 0 0 0" />
|
<option name="PROGRAM_PARAMETERS" value=""C:\Program Files (x86)\Steam\steamapps\common\Diablo II" 0 0 0" />
|
||||||
<option name="VM_PARAMETERS" value="-ea" />
|
<option name="VM_PARAMETERS" value="-ea" />
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/assets" />
|
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/assets" />
|
||||||
|
@ -7,3 +7,4 @@ include 'tools', 'ds1viewer', 'mpqviewer'
|
|||||||
include 'tester'
|
include 'tester'
|
||||||
include 'server:bnls', 'server:bncs', 'server:mcp', 'server:d2gs'
|
include 'server:bnls', 'server:bncs', 'server:mcp', 'server:d2gs'
|
||||||
include 'server:netty'
|
include 'server:netty'
|
||||||
|
include 'tools:map-viewer'
|
||||||
|
@ -17,3 +17,22 @@ dependencies {
|
|||||||
implementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
|
implementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
|
||||||
implementation "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
|
implementation "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'application'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation project(':core')
|
||||||
|
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
||||||
|
implementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
|
||||||
|
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||||
|
|
||||||
|
implementation "commons-cli:commons-cli:$cliVersion"
|
||||||
|
implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
testImplementation 'junit:junit:4.12'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
26
tools/map-viewer/build.gradle
Normal file
26
tools/map-viewer/build.gradle
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
application {
|
||||||
|
mainClass = 'com.riiablo.map.MapViewer'
|
||||||
|
}
|
||||||
|
|
||||||
|
run {
|
||||||
|
workingDir = rootProject.file('assets').path
|
||||||
|
setIgnoreExitValue(true)
|
||||||
|
|
||||||
|
// Required to run LWJGL3 java apps on MacOS
|
||||||
|
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
|
||||||
|
jvmArgs += "-XstartOnFirstThread"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
archiveBaseName = project.name
|
||||||
|
dependsOn configurations.runtimeClasspath
|
||||||
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
manifest {
|
||||||
|
attributes 'Main-Class': application.mainClass
|
||||||
|
}
|
||||||
|
|
||||||
|
doLast {
|
||||||
|
file(archiveFile).setExecutable(true, false)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user