Skip to content

Commit

Permalink
Use a consistent release version for CompilationProvider
Browse files Browse the repository at this point in the history
Fixes #6103
  • Loading branch information
jamesnetherton committed May 20, 2024
1 parent 760152d commit c86e750
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
public final class CamelSupport {
public static final String CAMEL_SERVICE_BASE_PATH = "META-INF/services/org/apache/camel";
public static final String CAMEL_ROOT_PACKAGE_DIRECTORY = "org/apache/camel";
public static final String COMPILATION_JVM_TARGET = "17";

private CamelSupport() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
import org.apache.camel.quarkus.core.deployment.spi.CamelBeanBuildItem;
import org.apache.camel.quarkus.core.deployment.spi.CamelContextBuildItem;
import org.apache.camel.quarkus.core.deployment.spi.CompiledCSimpleExpressionBuildItem;
import org.apache.camel.quarkus.core.deployment.util.CamelSupport;
import org.apache.camel.quarkus.core.util.FileUtils;
import org.apache.camel.quarkus.support.language.deployment.ExpressionBuildItem;
import org.apache.camel.quarkus.support.language.deployment.ExpressionExtractionResultBuildItem;
Expand Down Expand Up @@ -264,9 +265,9 @@ private Context compilationContext(final Path projectDir, final Path csimpleClas
csimpleClassesDir.toFile(),
StandardCharsets.UTF_8.name(),
Collections.emptyMap(),
CamelSupport.COMPILATION_JVM_TARGET,
null,
null,
"11",
"11",
Collections.emptyList(),
Collections.emptyList(),
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import io.quarkus.maven.dependency.ResolvedDependency;
import io.quarkus.paths.PathCollection;
import org.apache.camel.quarkus.core.deployment.main.CamelMainHelper;
import org.apache.camel.quarkus.core.deployment.util.CamelSupport;
import org.apache.camel.quarkus.dsl.jsh.runtime.Configurer;
import org.apache.camel.quarkus.support.dsl.deployment.DslGeneratedClassBuildItem;
import org.apache.camel.quarkus.support.dsl.deployment.DslSupportProcessor;
Expand Down Expand Up @@ -132,7 +133,7 @@ void compileScriptsAOT(BuildProducer<GeneratedClassBuildItem> generatedClass,
classesDir.toFile(),
StandardCharsets.UTF_8.name(),
Collections.emptyMap(),
null,
CamelSupport.COMPILATION_JVM_TARGET,
null,
null,
Collections.emptyList(),
Expand Down

0 comments on commit c86e750

Please sign in to comment.