Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Commit

Permalink
jar output
Browse files Browse the repository at this point in the history
  • Loading branch information
naturefreshmilk committed May 2, 2018
1 parent 4d2f8a9 commit 2eb0998
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
28 changes: 21 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,31 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<localCheckout>true</localCheckout>
<releaseProfiles>optimize</releaseProfiles>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>io.rudin.minetest.tileserver.TileServer</mainClass>
</manifest>
</archive>
<appendAssemblyId>false</appendAssemblyId>
<finalName>tileserver</finalName>
</configuration>
</plugin>


</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ public void testTileZoomOut() {
Assert.assertEquals(8, tileInfo.zoom);
Assert.assertEquals(2, tileInfo.width, 0.1);
Assert.assertEquals(2, tileInfo.height, 0.1);
Assert.assertEquals(1, tileInfo.x);
Assert.assertEquals(1, tileInfo.y);
Assert.assertEquals(2, tileInfo.x); //XXX?
Assert.assertEquals(2, tileInfo.y);

tileInfo = tileInfo.toZoom(7); //zoom out
Assert.assertEquals(7, tileInfo.zoom);
Assert.assertEquals(4, tileInfo.width, 0.1);
Assert.assertEquals(4, tileInfo.height, 0.1);
Assert.assertEquals(0, tileInfo.x);
Assert.assertEquals(0, tileInfo.y);
Assert.assertEquals(2, tileInfo.x);
Assert.assertEquals(2, tileInfo.y);

}

Expand Down

0 comments on commit 2eb0998

Please sign in to comment.