Skip to content
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

KubernetesWatchTask Prerequisite refactor in JKube Kit #1127

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

rohanKanojia
Copy link
Member

@rohanKanojia rohanKanojia commented Nov 19, 2021

Description

Prerequisite Refactor in JKube Kit for #1109

  • SpringBootWatcher.isApplicable returns true for Spring Boot Gradle Plugin
  • Remove JKubeArtifactResolverService; Add utility method in JKubeProjectUtil to resolve artifact from dependencies instead
  • SpringBootUtil.getSpringBootPluginConfiguration also fetches
    configuration of Spring Boot Gradle Plugin

Signed-off-by: Rohan Kumar rohaan@redhat.com

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

@codecov
Copy link

codecov bot commented Nov 19, 2021

Codecov Report

Merging #1127 (35e9d4a) into master (cf9a9ba) will increase coverage by 0.02%.
The diff coverage is 41.93%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1127      +/-   ##
============================================
+ Coverage     49.24%   49.26%   +0.02%     
- Complexity     3608     3615       +7     
============================================
  Files           456      455       -1     
  Lines         20588    20595       +7     
  Branches       2802     2809       +7     
============================================
+ Hits          10138    10146       +8     
+ Misses         9379     9373       -6     
- Partials       1071     1076       +5     
Impacted Files Coverage Δ
.../eclipse/jkube/kit/common/util/SpringBootUtil.java 50.00% <0.00%> (-26.93%) ⬇️
...ipse/jkube/kit/config/service/JKubeServiceHub.java 88.88% <ø> (-0.35%) ⬇️
.../eclipse/jkube/generator/api/GeneratorContext.java 63.63% <ø> (+5.30%) ⬆️
...kube/springboot/generator/SpringBootGenerator.java 19.85% <0.00%> (+0.13%) ⬆️
...be/maven/plugin/mojo/build/AbstractDockerMojo.java 7.24% <0.00%> (+0.03%) ⬆️
...lipse/jkube/maven/plugin/mojo/build/ApplyMojo.java 72.13% <ø> (ø)
...pse/jkube/maven/plugin/mojo/develop/DebugMojo.java 100.00% <ø> (ø)
...se/jkube/maven/plugin/mojo/develop/DeployMojo.java 0.00% <ø> (ø)
...lipse/jkube/maven/plugin/mojo/develop/LogMojo.java 100.00% <ø> (ø)
...pse/jkube/maven/plugin/mojo/develop/WatchMojo.java 0.00% <ø> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf9a9ba...35e9d4a. Read the comment docs.

Comment on lines 89 to 90
.groupId(SPRING_BOOT_GROUP_ID)
.artifactId(SPRING_BOOT_MAVEN_PLUGIN_ARTIFACT_ID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use a string here, if there's an error/typo in the constant it won't be revealed

Comment on lines 108 to 109
.groupId(SPRING_BOOT_GROUP_ID)
.artifactId(SPRING_BOOT_GRADLE_PLUGIN_ARTIFACT_ID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ SpringBootWatcher.isApplicable returns true for Spring Boot Gradle Plugin
+ Remove JKubeArtifactResolverService; Add utility method in
  JKubeProjectUtil to resolve artifact from dependencies instead
+ SpringBootUtil.getSpringBootPluginConfiguration also fetches
  configuration of Spring Boot Gradle Plugin

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented Nov 24, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

50.9% 50.9% Coverage
0.0% 0.0% Duplication

Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@manusa manusa added this to the 1.6.0 milestone Nov 24, 2021
@manusa manusa merged commit 92d6357 into eclipse-jkube:master Nov 24, 2021
@rohanKanojia rohanKanojia deleted the pr/prerequisite-1109 branch November 24, 2021 13:00
rohanKanojia added a commit to rohanKanojia/jkube that referenced this pull request Nov 25, 2021
localRepositoryBaseDirectory only seemed to be only getting used by
JKubeArtifactResolverService which was removed in eclipse-jkube#1127. Removing this
field as it's no longer used anywhere.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this pull request Nov 25, 2021
localRepositoryBaseDirectory only seemed to be only getting used by
JKubeArtifactResolverService which was removed in eclipse-jkube#1127. Removing this
field as it's no longer used anywhere.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this pull request Nov 25, 2021
localRepositoryBaseDirectory only seemed to be only getting used by
JKubeArtifactResolverService which was removed in eclipse-jkube#1127. Removing this
field as it's no longer used anywhere.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this pull request Nov 25, 2021
localRepositoryBaseDirectory only seemed to be only getting used by
JKubeArtifactResolverService which was removed in eclipse-jkube#1127. Removing this
field as it's no longer used anywhere.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa pushed a commit that referenced this pull request Nov 26, 2021
localRepositoryBaseDirectory only seemed to be only getting used by
JKubeArtifactResolverService which was removed in #1127. Removing this
field as it's no longer used anywhere.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants