-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[incubator-kie-issues#1575] Upgrade quarkus to 3.15 #3750
Open
RishiRajAnand
wants to merge
8
commits into
apache:main
Choose a base branch
from
RishiRajAnand:upgrade-quarkus-3.15
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+197
−93
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9cd245d
Upgrade quarkus to 3.15
RishiRajAnand 4a691ac
Fix errors due to flyway 10 upgrade
RishiRajAnand e926d58
Fix infinispan protostream errors due to upgrade
RishiRajAnand 55756af
Align kubernetes-client version to quarkus supported version 6.13.3
RishiRajAnand bc42316
Upgrade quarkus to 3.15.2
RishiRajAnand bf40d01
Updating jandex and quarkus camel
RishiRajAnand 2dbc72b
Upgrading h2 version to 2.3.232 and aligning other library versions
RishiRajAnand 56c1aea
replacing quarkus-smallrye-reactive-messaging-kafka with new name
RishiRajAnand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,8 @@ | |
|
||
import java.io.IOException; | ||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
import java.util.Collections; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.*; | ||
import java.util.Map.Entry; | ||
import java.util.NoSuchElementException; | ||
import java.util.UUID; | ||
import java.util.function.Predicate; | ||
import java.util.stream.Collectors; | ||
|
||
|
@@ -36,11 +30,7 @@ | |
import org.infinispan.protostream.FileDescriptorSource; | ||
import org.infinispan.protostream.SerializationContext; | ||
import org.infinispan.protostream.config.Configuration; | ||
import org.infinispan.protostream.descriptors.Descriptor; | ||
import org.infinispan.protostream.descriptors.EnumDescriptor; | ||
import org.infinispan.protostream.descriptors.FieldDescriptor; | ||
import org.infinispan.protostream.descriptors.FileDescriptor; | ||
import org.infinispan.protostream.descriptors.Option; | ||
import org.infinispan.protostream.descriptors.*; | ||
import org.infinispan.protostream.impl.SerializationContextImpl; | ||
import org.kie.kogito.codegen.api.context.KogitoBuildContext; | ||
import org.kie.kogito.codegen.api.context.impl.JavaKogitoBuildContext; | ||
|
@@ -54,25 +44,8 @@ | |
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; | ||
import com.github.javaparser.ast.body.MethodDeclaration; | ||
import com.github.javaparser.ast.body.VariableDeclarator; | ||
import com.github.javaparser.ast.expr.BinaryExpr; | ||
import com.github.javaparser.ast.expr.CastExpr; | ||
import com.github.javaparser.ast.expr.ClassExpr; | ||
import com.github.javaparser.ast.expr.EnclosedExpr; | ||
import com.github.javaparser.ast.expr.Expression; | ||
import com.github.javaparser.ast.expr.IntegerLiteralExpr; | ||
import com.github.javaparser.ast.expr.MethodCallExpr; | ||
import com.github.javaparser.ast.expr.NameExpr; | ||
import com.github.javaparser.ast.expr.NullLiteralExpr; | ||
import com.github.javaparser.ast.expr.ObjectCreationExpr; | ||
import com.github.javaparser.ast.expr.SimpleName; | ||
import com.github.javaparser.ast.expr.StringLiteralExpr; | ||
import com.github.javaparser.ast.expr.VariableDeclarationExpr; | ||
import com.github.javaparser.ast.stmt.BlockStmt; | ||
import com.github.javaparser.ast.stmt.IfStmt; | ||
import com.github.javaparser.ast.stmt.ReturnStmt; | ||
import com.github.javaparser.ast.stmt.SwitchEntry; | ||
import com.github.javaparser.ast.stmt.SwitchStmt; | ||
import com.github.javaparser.ast.stmt.ThrowStmt; | ||
import com.github.javaparser.ast.expr.*; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please reorganize that imports, in general we are trying to avoid * in the imports |
||
import com.github.javaparser.ast.stmt.*; | ||
import com.github.javaparser.ast.type.ClassOrInterfaceType; | ||
|
||
import static com.github.javaparser.ast.Modifier.Keyword.PUBLIC; | ||
|
@@ -228,7 +201,7 @@ public List<CompilationUnit> generate(FileDescriptorSource proto) throws IOExcep | |
} | ||
|
||
if (customTypeName.equals(Serializable.class.getName())) { | ||
String fieldClazz = (String) field.getOptionByName(KOGITO_JAVA_CLASS_OPTION); | ||
String fieldClazz = (String) field.getOptionByName(KOGITO_JAVA_CLASS_OPTION).getValue(); | ||
if (fieldClazz == null) { | ||
throw new IllegalArgumentException(format("Serializable proto field '%s' is missing value for option %s", field.getName(), KOGITO_JAVA_CLASS_OPTION)); | ||
} else { | ||
|
@@ -317,7 +290,11 @@ public List<CompilationUnit> generate(FileDescriptorSource proto) throws IOExcep | |
} | ||
|
||
protected String packageFromOption(FileDescriptor d, Descriptor msg) { | ||
return packageFromOption(d, msg.getOption(JAVA_PACKAGE_OPTION)); | ||
Option option = msg.getOptions().stream() | ||
.filter(o -> JAVA_PACKAGE_OPTION.equals(o.getName())) | ||
.findAny() | ||
.orElse(null); | ||
return packageFromOption(d, option); | ||
} | ||
|
||
protected String packageFromOption(FileDescriptor d, EnumDescriptor msg) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, here we are adding a flyway dependency intended for a particular db in a common addon. I do not think thats the way to go. Im afraid this has to be moved somewhere else