commit 21320116b547a604ebfd6899d66bb181404a8cee Author: Mike Barry Date: Mon Apr 5 20:33:54 2021 -0400 initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..50e30075 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..cd3c8f78 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +TODO + +target/ +*.jar + +.idea/* +*.iml +!.idea/codeStyles diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 00000000..7a399b3d --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,586 @@ + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 00000000..79ee123c --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..7782f15d --- /dev/null +++ b/pom.xml @@ -0,0 +1,134 @@ + + + 4.0.0 + + com.onthegomap + flatmap + 0.1-SNAPSHOT + https://github.com/onthegomap/flatmap + + + UTF-8 + 16 + 16 + 2.3 + 25.0 + 5.7.1 + + + + scm:git:git@github.com:onthegomap/flatmap.git + scm:git:git@github.com:onthegomap/flatmap.git + git@github.com:onthegomap/flatmap.git + + + + + osgeo + OSGeo Release Repository + https://repo.osgeo.org/repository/release/ + + false + + + true + + + + osgeo-snapshot + OSGeo Snapshot Repository + https://repo.osgeo.org/repository/snapshot/ + + true + + + false + + + + + + + com.graphhopper + graphhopper-reader-osm + ${graphhopper.version} + + + org.locationtech.jts + jts-core + 1.18.0 + + + org.geotools + gt-shapefile + ${geotools.version} + + + org.geotools + gt-epsg-hsql + ${geotools.version} + + + org.mapdb + mapdb + 3.0.8 + + + org.msgpack + msgpack-core + 0.8.22 + + + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-java + + enforce + + + + + 16 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + org.apache.maven.plugins + maven-failsafe-plugin + 2.22.2 + + + + diff --git a/src/main/java/com/onthegomap/flatmap/App.java b/src/main/java/com/onthegomap/flatmap/App.java new file mode 100644 index 00000000..a50ff83c --- /dev/null +++ b/src/main/java/com/onthegomap/flatmap/App.java @@ -0,0 +1,16 @@ +package com.onthegomap.flatmap; + +public record App() { + + record Greeting(int x) { + + } + + public static void main(String[] args) { + System.out.println(new App().getGreeting()); + } + + public String getGreeting() { + return "hello world " + new Greeting(1); + } +} diff --git a/src/test/java/com/onthegomap/flatmap/AppTest.java b/src/test/java/com/onthegomap/flatmap/AppTest.java new file mode 100644 index 00000000..ec83f5a0 --- /dev/null +++ b/src/test/java/com/onthegomap/flatmap/AppTest.java @@ -0,0 +1,13 @@ +package com.onthegomap.flatmap; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import org.junit.jupiter.api.Test; + +public class AppTest { + + @Test + public void testFast() { + assertEquals("hello world", new App().getGreeting()); + } +}