英文:
Update Gradle in an existing java servlet jsp project
问题
首先,一些背景信息。我可以从NetBeans 8.0迁移到12,并打开一个使用NetBeans本地构建器(几乎可以确定是ant)构建的旧项目,执行清理和构建操作,该项目可以完美运行,没有任何问题。您完全可以不了解构建过程。
现在的问题是Gradle。我做了我的第一个Gradle项目,一切都很好,正常运行。然后几天后,NetBeans通知我有一个Gradle更新,我进行了更新,重启了IDE,但什么也没有发生。项目无法再次构建等等。
我在此请求帮助,如何才能使Gradle更新后,只需执行清理和构建操作即可?
也就是说,我希望不知不觉地使用Gradle,不应该花时间来修复构建工具,我应该能够进行更新,然后忘记我甚至在使用它。感激任何帮助。
多年来一直在使用NetBeans,从未遇到过如此混乱的情况。
如果在NetBeans中不可能做到这一点,我会使用Eclipse,但我不想像以前一样考虑构建工具。有什么提示或建议吗?
或者在更新Gradle后,是否有一些需要执行的小操作?
多年来我一直在使用本地构建,主要是在NetBeans和Eclipse中使用,并且从未需要阅读一字一句的Ant文档,它总是正常工作。
英文:
First a little background. I can go from netbeans 8.0 to 12 and open an existing older project that was built with netbeans native builder (pretty sure it's ant), do a clean and build, and the project runs perfect with zero problems. You can totally be unaware of build.
Now the problem, gradle. I did my first gradle project, all was good, ran fine. Then a few days later netbeans informed me there was an update to gradle, I updated, restarted the ide, and nothing. The project would not build anymore, etc.
How, and I plea for help here, how do you make it so you can update gradle, and just press on with a clean and build?
Meaning, I want to be unaware that gradle even exist, I should not have to spend time fixing a build tool, I should be able to update, and forget I’m even using it. Any help is appreciated.
Been using netbeans for years, and never encountered such a mess.
Also if it's not possible in netbeans, I'll use eclipse, but I'd like to not even think about the build tool just like in the past. Any hints, tips?
Or after an update to gradle, is there some little thing that needs to be done?
I have used native build for years, mostly netbeans and some in eclipse and never needed to read one word of the ant documentation, it just always works.
专注分享java语言的经验与见解,让所有开发者获益!
评论