-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[DSIP-27][Task Plugin] Some improvements of JAVA task plugin #16542
base: dev
Are you sure you want to change the base?
Conversation
9c45ca0
to
6d16b63
Compare
37b92ed
to
151bdfe
Compare
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.
Please resolve conflicts first.
...ler-task-java/src/main/java/org/apache/dolphinscheduler/plugin/task/java/JavaParameters.java
Show resolved
Hide resolved
ac19f4f
to
81b47d9
Compare
Don't be discouraged. Keep going and keep up the good work. |
a26d766
to
29b9d50
Compare
I implemented a strategy where the source code is compiled and packaged into a JAR file during the application's runtime. This approach eliminates the necessity of mounting files within the image. |
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
.../src/test/java/org/apache/dolphinscheduler/e2e/pages/project/workflow/task/JavaTaskForm.java
Outdated
Show resolved
Hide resolved
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/resources/common/Fat.java
Outdated
Show resolved
Hide resolved
...er-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowJavaTaskE2ETest.java
Outdated
Show resolved
Hide resolved
e8d5c62
to
b3ccfb9
Compare
Please retry analysis of this Pull-Request directly on SonarCloud |
Purpose of the pull request
Update the Java task plugin
close:#15819
Brief change log
Deprecate write java code in JAVA task
Rename the JAR to FATJAR
Only the displayed name has been modified, the functionality remains unchanged.
Add the new type NORMALJAR
Allow users to upload normal type of jar files, which require external libraries to run properly. Users do not need to package all libraries and runtime files into a fat jar each time, making the submission of jar files more flexible and convenient.
Update the tests
Update tests about JAVA type and add the test of JAR type. Like JavaTaskTest and workflowJavaTaskE2ETest.
For the JavaE2Etest, the fat.java,normal1.java,normal2.java,have been added e2e-case/resources/docker/java-task. These three Java files will be compiled and packaged into fat.jar, normal1.jar, and normal2.jar. fat.jar is for the FAT_JAR type. The normal1.jar and normal2.jar are for the NORMAL_JAR type.
Update the Javadoc comment
type of FATJAR
type of NORMALJAR
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md