any java11 (beta) supported? #355
Comments
I'm not sure I understand your issue. Can you provide some more detail on what you're trying to do? |
trying
thanks, |
So you're having trouble packaging it as a war? The gradle Do you already have a working maven build? |
no, seldom use maven, because just like google, moving away from xml i just check that there is no app jar (supposed "my-project".jar) generated in |
When you run It might be helpful to do a few gradle tutorials to understand the build system. Gradle has it's own conventions and behavior that would be helpful for you to understand your problem. |
yes, there is the war is it the "1.0" problem, no version in entrypoint?? |
previously tried this type of entrypoint: |
I mean those are sample instructions. You do not have a It would probably be helpful for you to understand what a container entrypoint is, otherwise these instructions aren't going to make sense. In general see here: https://github.com/opencontainers/image-spec/blob/e562b04403929d582d449ae5386ff79dd7961a11/specs-go/v1/config.go#L34 or any other resource if you search "entrypoint container" In this specific case, this is the command appengine is using to start your application. You might start off by figuring out how to run your application locally. I would assume something like It should be the same command you are using to run your app locally. |
sorry, i dont get all of it in jetty, command line run needed a start.jar; |
I would start with an example and see if you could get it to work: https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java11/appengine-simple-jetty-main It's a java11 example with jetty. |
many thanks |
4 ways??:
|
Its hard to understand your problem. '4 ways??' is hard to parse. If you could be more clear, it might help us help you? Prefer full descriptive sentences of everything you tried, things you don't understand and you goals. |
Sorry, seems 4 ways to make the deploy work, because it always need jar for command line. |
Okay so I still can't understand what you need. |
beta java11 can only run in command line, so need jar file but the plugin now can only build war, can it build jar? |
tried maven example of spring boot: it works. then tried use gradle instead, trying task of gradle plugin to replace:
with but failed:
and can java -jar XXX.jar in build/libs: |
Sorry, ok now. but need manually copy jar from build/libs to build/staged-app |
It looks like you're trying to specify the artifact. Try setting the artifact:
See https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/master/USER_GUIDE.md#app-engine-appyaml-based-projects for configuring you build |
thanks, |
You can specify the |
thanks but bootJar can make jar how to make jar without boot? just jar?? |
@peterweb2005 I just saw GoogleCloudPlatform/java-docs-samples#1517 and other activities on that repo. Looks like you've managed to migrate to the Java 11 runtime. Closing the issue. |
I'm unable to deploy my springboot war into Appengine. The project uses gradle (not maven). Is there a gradlew example? |
@kswat https://github.com/GoogleCloudPlatform/app-gradle-plugin#how-to-use |
https://cloud.google.com/appengine/docs/standard/java11/java-differences
tried to migrate, updated config to yaml, and added main class,
and the problem is:
dont know how to package jar (or war??) file??
and the error log are:
Could not find or load main class XXX-1.0.war A
java.lang.ClassNotFoundException: XXX-1.0.war A
from the "WAR migration example" (refer to 1st link),
helloworld-servlet project depends appengine-simple-jetty-main project (pom.xml)
and also has entry point:
entrypoint: 'java -cp * com.example.appengine.demo.jettymain.Main helloworld.war' (app.yaml)
can it be done for only 1 project?
or simply CANT it be done in gradle plugin?
thanks
The text was updated successfully, but these errors were encountered: