Show HN: Fast immutable URL parsing and resolving for Java (github.com) 4 points by amzans 9y ago ↗ HN
[–] koolba 9y ago ↗ This looks like a nice library and the parsing API seems very sane (getting a Map for query parameters is very convenient).Not sure why they've decided to check in the examples into src/main though: https://github.com/anthonynsimon/jurl/tree/master/src/main/j... [–] amzans 9y ago ↗ Hey thanks for pointing that out. I'm rather new to the Java ecosystem so if you can point me in the right direction it would be great!What would be a good practice for placing the examples folder into a Java project? Something like the following? Project Root /jurl /src /main /test /examples <= HERE ... [–] koolba 9y ago ↗ Off hand I don't know if maven/gradle support that directory structure and both are a bit fickle about custom naming.I'd put them in an entirely separate repo and link to it from the README. [–] rentnorove 9y ago ↗ It's common to split example code into a separate sub-project so it doesn't get compiled into your release JAR.See here for an example: https://github.com/gradle/gradle/tree/master/subprojects/doc...https://docs.gradle.org/current/userguide/intro_multi_projec...
[–] amzans 9y ago ↗ Hey thanks for pointing that out. I'm rather new to the Java ecosystem so if you can point me in the right direction it would be great!What would be a good practice for placing the examples folder into a Java project? Something like the following? Project Root /jurl /src /main /test /examples <= HERE ... [–] koolba 9y ago ↗ Off hand I don't know if maven/gradle support that directory structure and both are a bit fickle about custom naming.I'd put them in an entirely separate repo and link to it from the README. [–] rentnorove 9y ago ↗ It's common to split example code into a separate sub-project so it doesn't get compiled into your release JAR.See here for an example: https://github.com/gradle/gradle/tree/master/subprojects/doc...https://docs.gradle.org/current/userguide/intro_multi_projec...
[–] koolba 9y ago ↗ Off hand I don't know if maven/gradle support that directory structure and both are a bit fickle about custom naming.I'd put them in an entirely separate repo and link to it from the README.
[–] rentnorove 9y ago ↗ It's common to split example code into a separate sub-project so it doesn't get compiled into your release JAR.See here for an example: https://github.com/gradle/gradle/tree/master/subprojects/doc...https://docs.gradle.org/current/userguide/intro_multi_projec...
4 comments
[ 3.0 ms ] story [ 25.5 ms ] threadNot sure why they've decided to check in the examples into src/main though: https://github.com/anthonynsimon/jurl/tree/master/src/main/j...
What would be a good practice for placing the examples folder into a Java project? Something like the following?
I'd put them in an entirely separate repo and link to it from the README.
See here for an example: https://github.com/gradle/gradle/tree/master/subprojects/doc...
https://docs.gradle.org/current/userguide/intro_multi_projec...