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

Add init --type=java-webapp generation type #2339

Open
aadrian opened this issue Jun 22, 2017 · 9 comments
Open

Add init --type=java-webapp generation type #2339

aadrian opened this issue Jun 22, 2017 · 9 comments
Labels

Comments

@aadrian
Copy link

aadrian commented Jun 22, 2017

Please add a minimal Java Web Application type to the existing project templates.
e.g. with gradle init --type=java-webapp

Thank you.

@bmuschko
Copy link
Contributor

bmuschko commented Jul 5, 2017

Sounds like a useful new build init application type. The tricky part will be the use of the underlying web framework which will require vastly different dependencies. How did you envision this to look like in more detail?

@adammurdoch
Copy link
Member

I'd use a type that is more specific than "webapp", that encodes the framework or container type.

@aadrian
Copy link
Author

aadrian commented Jul 5, 2017

@bmuschko a minimal configuration would be more than enough for start, so no web frameworks would be required:

  • build.gradle configured with the war plug-in and tasks
  • a simple JSP page in the correct directory
  • a simple Servlet in the correct directory
  • logging
  • test

So basically not much more than the java-library type, just tuned for the web.

@jonathan-barbero
Copy link

I'm new to Gradle. This would be really useful.

@pioterj
Copy link
Member

pioterj commented Sep 27, 2019

Who is doing web apps without a framework these days though? For Spring Boot, there's https://start.spring.io that can generate Gradle builds.

@jonathan-barbero
Copy link

jonathan-barbero commented Sep 27, 2019 via email

@britter
Copy link
Member

britter commented Oct 9, 2019

Removing good first issue because it's unclear what should be implemented (e.g. which framework to use)

@hannah23280
Copy link

I support this addition. Cos I think maven also has something similar to allow generate boilerplate folders for web app. So wonder why gradle can’t do the same?

@sarnobat
Copy link

sarnobat commented Apr 8, 2022

I too support this addition.

There is plenty of legacy code out there that requires the old way of doing things. I want to reproduce a minimal example of a bug in a giant web application.

And I refuse to use Spring unless my boss tells me to.

Something like this would be great:
https://github.com/GRomR1/java-servlet-hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests