Skip to content

Commit

Permalink
Make the SubProcess worker the default (#14)
Browse files Browse the repository at this point in the history
Pull request: #14
  • Loading branch information
lefou authored May 12, 2022
1 parent 8855ec6 commit 8686bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif::[]

Mill plugin to create static sites/blogs with JBake.

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

== Quickstart

Expand All @@ -36,7 +36,7 @@ object site extends JBakeModule {
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:
[source,scala,subs="verbatim,attributes"]
----
import $ivy.`de.tototec::de.tobiasroeser.mill.jbake_mill0.6:{version}`
import $ivy.`de.tototec::de.tobiasroeser.mill.jbake_mill0.7:{version}`
----

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

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

.Commands
Expand Down
2 changes: 1 addition & 1 deletion jbake/src/de/tobiasroeser/mill/jbake/JBakeModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ trait JBakeModule extends Module with TaskModule {
/**
* Specify how the JBake tool should be executed.
*/
def jbakeProcessMode: ProcessMode = ClassLoader
def jbakeProcessMode: ProcessMode = SubProcess

}

Expand Down

0 comments on commit 8686bcf

Please sign in to comment.