@@ -10,12 +10,13 @@ object MappingsHelper extends Mapper {
1010 * It lightens the build file if one wants to give a string instead of file.
1111 *
1212 * @example
13- * {{{
13+ * {{{
1414 * mappings in Universal ++= directory("extra")
15- * }}}
15+ * }}}
1616 *
1717 * @param sourceDir
18- * @return mappings
18+ * @return
19+ * mappings
1920 */
2021 def directory (sourceDir : String ): Seq [(File , String )] =
2122 directory(file(sourceDir))
@@ -24,50 +25,57 @@ object MappingsHelper extends Mapper {
2425 * It lightens the build file if one wants to give a string instead of file.
2526 *
2627 * @example
27- * {{{
28+ * {{{
2829 * mappings in Universal ++= contentOf("extra")
29- * }}}
30+ * }}}
3031 *
31- * @param sourceDir as string representation
32- * @return mappings
32+ * @param sourceDir
33+ * as string representation
34+ * @return
35+ * mappings
3336 */
3437 def contentOf (sourceDir : String ): Seq [(File , String )] =
3538 contentOf(file(sourceDir))
3639
3740 /**
38- * Create mappings from your classpath. For example if you want to add additional
39- * dependencies, like test or model.
41+ * Create mappings from your classpath. For example if you want to add additional dependencies, like test or model.
4042 *
41- * @example Add all test artifacts to a separated test folder
42- * {{{
43+ * @example
44+ * Add all test artifacts to a separated test folder
45+ * {{{
4346 * mappings in Universal ++= fromClasspath((managedClasspath in Test).value, target = "test")
44- * }}}
47+ * }}}
4548 *
4649 * @param entries
4750 * @param target
48- * @return a list of mappings
51+ * @return
52+ * a list of mappings
4953 */
5054 def fromClasspath (entries : Seq [Attributed [File ]], target : String ): Seq [(File , String )] =
5155 fromClasspath(entries, target, _ => true )
5256
5357 /**
54- * Create mappings from your classpath. For example if you want to add additional
55- * dependencies, like test or model. You can also filter the artifacts that should
56- * be mapped to mappings.
58+ * Create mappings from your classpath. For example if you want to add additional dependencies, like test or model.
59+ * You can also filter the artifacts that should be mapped to mappings.
5760 *
58- * @example Filter all osgi bundles
59- * {{{
61+ * @example
62+ * Filter all osgi bundles
63+ * {{{
6064 * mappings in Universal ++= fromClasspath(
6165 * (managedClasspath in Runtime).value,
6266 * "osgi",
6367 * artifact => artifact.`type` == "bundle"
6468 * )
65- * }}}
69+ * }}}
6670 *
67- * @param entries from where mappings should be created from
68- * @param target folder, e.g. `model`. Must not end with a slash
69- * @param includeArtifact function to determine if an artifact should result in a mapping
70- * @param includeOnNoArtifact default is false. When there's no Artifact meta data remove it
71+ * @param entries
72+ * from where mappings should be created from
73+ * @param target
74+ * folder, e.g. `model`. Must not end with a slash
75+ * @param includeArtifact
76+ * function to determine if an artifact should result in a mapping
77+ * @param includeOnNoArtifact
78+ * default is false. When there's no Artifact meta data remove it
7179 */
7280 def fromClasspath (
7381 entries : Seq [Attributed [File ]],
0 commit comments