请选择 进入手机版 | 继续访问电脑版

技术控

    今日:25| 主题:54680
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

[复制链接]
你穿过的墙 发表于 2016-10-3 17:35:06
529 13

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Say hello to the fresh IntelliJ IDEA 2016.3 EAP build , which brings several new features worth checking out.
   Support for Polyglot Maven

   First of all, we’ve added the support for Polyglot Maven . In case you don’t know, this is a set of Maven extensions that allows the POM file to be written in Groovy, Scala, Ruby and other languages.
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-1-技术控-especially,assistance,available,features,several

  While project import works for any language, coding assistance within POM files is available only for Groovy.
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-2-技术控-especially,assistance,available,features,several

  Apart from that you can work with the projects that use Polyglot Maven just as with any other Maven projects.
   The Show Effective POM action works as usual and is especially useful if you want to see how Maven interprets the DSL.
   Building Groovy Resources

   Speaking about Groovy, we’ve added actions that build Groovy files located in resource folders. They’re available via the main menu BuildGroovy Resources . Build Resources is incremental while Rebuild Resources builds from the scratch.
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-3-技术控-especially,assistance,available,features,several

   Grails View

   The Grails developers will be happy to know that the Grails view is back for Grails 3. Now, instead of a tool window, it’s tab inside of the Project tool window:
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-4-技术控-especially,assistance,available,features,several

   Artifacts are grouped by their type and reside outside of the sources folder. If you define a class within the src/main/groovy source folder and annotate it with @Artifact(“Controller”) , the Grails view will show it under the Controllers node.
   All the Project tool window settings are applicable to the Grails view as well, including Flatten Packages .
   Items under the Plugins node (always the last in the list) navigate to the corresponding GrailsPlugin class.
   Inspection That Inlines Local Variables Used Only by Return Statements

  IntelliJ IDEA has many inspections aimed at making code shorter and simpler. In this EAP build, we’ve added one more that we hope you’ll find useful.
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-5-技术控-especially,assistance,available,features,several

  The new inspection finds local variables used only by return statements and provides a quick fix that inlines these variables–by replacing their assignments with return statements.
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-6-技术控-especially,assistance,available,features,several

  When the returned value can’t be inlined into return statement, the quick fix attempts to move the return statement as close to the computation of the returned value as possible:
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-7-技术控-especially,assistance,available,features,several

   Adding Runtime Assertions for Not-Null-Annotated Code

   IntelliJ IDEA’s compiler ( SettingsBuild, Execution, DeploymentCompiler ) has an option to generate runtime assertions for the methods and parameters annotated with org.jetbrains.annotations.NotNull .
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-8-技术控-especially,assistance,available,features,several

   Starting now it supports non-JetBrains annotations as well–JSR-305 in particular. Click Configure annotations to change the default behavior:
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-9-技术控-especially,assistance,available,features,several

  The blue arrows indicate which annotation is be used by the IDE in inspections. Use the Check button to change them.
   Resource Bundle Editor Showing Unused Properties

   The Resource Bundle editor now tells which properties are unused in the project:
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-10-技术控-especially,assistance,available,features,several

   Spring Initializr

   The layout of the Spring Initializr has been reworked to fit more items and provide additional information. As a bonus, it now has the Search field.
   

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More

IntelliJ Idea 2016.3 EAP: Polyglot Maven, Grails View, Inspections, and More-11-技术控-especially,assistance,available,features,several

   Download the EAP build , give it a try and share your feedback with us. If you see something works not as it’s intended, write to our issue tracker .
  Develop with pleasure!



上一篇:security things in Linux v4.7
下一篇:Major Rust rev overhauls error messages
那种倒影成月 发表于 2016-10-3 22:02:36
别用你的脾气来挑战我的个性!
回复 支持 反对

使用道具 举报

雨安 发表于 2016-10-4 00:19:02
这画面太美我不敢看
回复 支持 反对

使用道具 举报

白亦 发表于 2016-10-6 14:56:46
在哪里跌倒就在哪里躺下!
回复 支持 反对

使用道具 举报

寻雪 发表于 2016-10-7 14:52:09
拍脑袋决策,拍胸脯保证,拍屁股走人.
回复 支持 反对

使用道具 举报

zhengzb 发表于 2016-10-8 04:06:48
元芳你怎么看?
回复 支持 反对

使用道具 举报

懵懂的青春╮ 发表于 2016-10-10 10:33:44
楼主你好。。新人。混眼熟。顺便骗点经验。到手~拍拍屁股走人~
回复 支持 反对

使用道具 举报

雷超 发表于 2016-10-15 09:17:49
不想当厨子的裁缝,不是好司机.
回复 支持 反对

使用道具 举报

星纪元 发表于 2016-11-10 20:26:54
人生如戏,全靠演技。
回复 支持 反对

使用道具 举报

唇齿相陪 发表于 2016-11-10 22:29:52
谁能明白谁的深爱,谁又能理解谁的离开...
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读


回页顶回复上一篇下一篇回列表
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )

© 2001-2017 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表