Re:Show HN: Fast immutable URL parsing and resolving for Java
by rentnorove on Monday February 06, 2017 @03:07PM
(#13583352)
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...
Re:Show HN: Fast immutable URL parsing and resolving for Java
by koolba on Saturday February 04, 2017 @01:41PM
(#13568264)
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.
What would be a good practice for placing the examples folder into a Java project? Something like the following?