Skip to content

Commit 8686bcf

Browse files
authored
Make the SubProcess worker the default (#14)
Pull request: #14
1 parent 8855ec6 commit 8686bcf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.adoc

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ endif::[]
1313

1414
Mill plugin to create static sites/blogs with JBake.
1515

16-
JBake runs completely on the JVM and supports many different template engines and various markup formats, including AsciiDoc(tor).
16+
JBake runs completely on the JVM and supports different template engines and various markup formats, including AsciiDoc(tor).
1717

1818
== Quickstart
1919

@@ -36,7 +36,7 @@ object site extends JBakeModule {
3636
If you are using an older Mill verion (`< 0.9.9`), you need to add the platform suffix yourself. E.g. to use it with Mill 0.7, your import looks like:
3737
[source,scala,subs="verbatim,attributes"]
3838
----
39-
import $ivy.`de.tototec::de.tobiasroeser.mill.jbake_mill0.6:{version}`
39+
import $ivy.`de.tototec::de.tobiasroeser.mill.jbake_mill0.7:{version}`
4040
----
4141

4242
Generate the site:
@@ -91,8 +91,7 @@ Supported value:
9191
* `ClassLoader` runs JBake in s isolated classpath in the same JVM.
9292
* `SubProcess` spawns a new Java sub-process of each JBake tool invokation.
9393

94-
Defaults to `ClassLoader` which is also faster.
95-
If you experience stability or out-of-memory issues, try to change this to `SubProcess`.
94+
Defaults to `SubProcess` which is slower but is more robust.
9695
--
9796

9897
.Commands

jbake/src/de/tobiasroeser/mill/jbake/JBakeModule.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ trait JBakeModule extends Module with TaskModule {
145145
/**
146146
* Specify how the JBake tool should be executed.
147147
*/
148-
def jbakeProcessMode: ProcessMode = ClassLoader
148+
def jbakeProcessMode: ProcessMode = SubProcess
149149

150150
}
151151

0 commit comments

Comments
 (0)