Skip to content

Commit

Permalink
fixing the double compilation phases leading to 2 fusion modules
Browse files Browse the repository at this point in the history
  • Loading branch information
rmannibucau committed Apr 5, 2023
1 parent e9d1883 commit 8f42ead
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<properties>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<fusion.version>1.0.1</fusion.version>
<fusion.version>1.0.2-SNAPSHOT</fusion.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -246,11 +246,15 @@ under the License.
<includes>
<include>**/generated/**</include>
</includes>
<compilerArgs>
<compilerArg>-Afusion.moduleAppend=true</compilerArg>
</compilerArgs>
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</execution>
</executions>
<configuration>
<fork>false</fork>
<parameters>true</parameters>
<source>${maven.compiler.release}</source>
<target>${maven.compiler.release}</target>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/yupiik/yuc/command/DefaultCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public DefaultCommand(final Conf conf, final IO io, final JsonMapper jsonMapper)
@Override
public void run() {
final var charset = Charset.forName(conf.charset());
final var bufferProvider = new BufferProvider(conf.bufferProviderSize());
final var bufferProvider = new BufferProvider(conf.bufferProviderSize(), 8 /* could be 2 theorically but does not change much */);
try (final var input = io.openInput(charset, conf.input());
final var writer = io.openOutput(charset, conf.output())) {
final var visitorFactory = newVisitor(writer, charset);
Expand Down

0 comments on commit 8f42ead

Please sign in to comment.