google-cloud-eclipse icon indicating copy to clipboard operation
google-cloud-eclipse copied to clipboard

Add flex JAR template

Open chanseokoh opened this issue 7 years ago • 7 comments

Towards #2470.

No UI, so this will be invisible to users.

The app created from this works when deployed.

chanseokoh avatar Oct 30 '17 22:10 chanseokoh

Codecov Report

Merging #2545 into master will increase coverage by 0.16%. The diff coverage is 85%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2545      +/-   ##
============================================
+ Coverage     72.47%   72.63%   +0.16%     
- Complexity     2367     2381      +14     
============================================
  Files           347      348       +1     
  Lines         13837    13911      +74     
  Branches       1388     1389       +1     
============================================
+ Hits          10028    10104      +76     
- Misses         3237     3240       +3     
+ Partials        572      567       -5
Impacted Files Coverage Δ Complexity Δ
...com/google/cloud/tools/eclipse/util/Templates.java 80.64% <ø> (ø) 4 <0> (ø) :arrow_down:
...newproject/flex/CreateAppEngineFlexJarProject.java 0% <0%> (ø) 0 <0> (?)
...ls/eclipse/appengine/newproject/CodeTemplates.java 98.21% <100%> (+2.84%) 27 <6> (+7) :arrow_up:
.../flex/FlexMavenPackagedProjectStagingDelegate.java 81.81% <66.66%> (-2.5%) 12 <0> (ø)
...e/cloud/tools/eclipse/util/jobs/FuturisticJob.java 81.25% <0%> (+1.25%) 25% <0%> (+1%) :arrow_up:
...tools/eclipse/test/util/ThreadDumpingWatchdog.java 68.83% <0%> (+3.72%) 44% <0%> (+5%) :arrow_up:
...ibraries/LibraryClasspathContainerResolverJob.java 100% <0%> (+25%) 4% <0%> (+1%) :arrow_up:

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 938125b...521bccb. Read the comment docs.

codecov[bot] avatar Oct 31 '17 01:10 codecov[bot]

I agree that HttpServer based is not the ultimate goal we want to reach with this template. This is a step on the way and not yet user visible.

elharo avatar Oct 31 '17 19:10 elharo

Ah so the plan is to merge this and change it to be spring boot app before launch?

That's better, but I don't fully understand how this is an incremental step in that direction. Why not make it spring boot based from the start?

patflynn avatar Oct 31 '17 19:10 patflynn

Fear not. I'll add a couple Spring Boot template files in this PR too.

chanseokoh avatar Oct 31 '17 19:10 chanseokoh

I agree that HttpServer is an uncommon approach, and we should aim for something that's closer to what users are likely to want.

I'm still not convinced that SpringBoot is the way to go. Flex is far more general than that. I don't object to a SpringBoot wizard, but it shouldn't be the only option we offer. I don't want to give users the incorrect idea that Flex is about SpringBoot.

elharo avatar Oct 31 '17 19:10 elharo

great. Thanks for adding the spring boot files.

Remove the HttpServer based project. It's a dead-end for users and adds to the maintenance burden.

@saturnism @lesv FYI if you guys want to validate the boot app.

patflynn avatar Oct 31 '17 21:10 patflynn

I'm not sure about the HttpServer. It's not serving the same market as SpringBoot, but there are many apps for which it's exactly what's needed to run effectively on flex.

There are also many apps for which SpringBoot is clearly overkill. We don't want to lock people into it or suggest that SpringBoot is the blessed and only way to build a flex app.

I would like to see a simple Jetty based template too, though I'm not sure if we have resources to commit to it right now; and I certainly don't want to block this work waiting for something that can be added later.

elharo avatar Oct 31 '17 22:10 elharo