how to compile project without using Lombok plugin in intellij IDEA - intellij-idea

i have some restriction to download the plugins for intellij.
In this case how can i compile my app using lombok.
i have tried to paas lombok jar through VM options in run configuration but no luck. any suggestion will be appreaciated.

You can still use Lombok in your code, provided you instructed your build tool to have a build-time dependency.
Without the Plugin, that will result in a lot of red wavy underlines in IntelliJ. But the code would still compile and run.
Disclosure: I am a Lombok developer.

Related

Adding Krangl SDK to IntelliJ Idea

I am new to Kotlin and IntelliJ Idea IDE.
I want to experiment with Krangl. But how do I add that SDK to my IntelliJ Idea IDE. In C# there is Nuget and on Mac cocoapods.
I know this is a very noob question, but I cannot find a solution that is apparent to me. I am C#/.NET/MS developer looking to get my feet wet in this new world.
There is no Gradle in the IntelliJ Idea IDE as far as I can see. Just Maven and Ant.
For sure there is Gradle in IntelliJ: https://www.jetbrains.com/help/idea/getting-started-with-gradle.html
So, you can either use Gradle or Maven. Or you could also add the jar as a dependency to your project, but I won't recommend this.

In Karate DSL Framework, IntelliJ IDE is unable to find visible feature files using Gradle

When using the following tools to create a sample Karate DSL Test; a "no features found at [classpath: packagename]" is thrown:
IntelliJ 2017.2.3
Gradle 2.9
project structure is shown in screenshot. Note that I have used the exact same project structure in Eclipse Mars 4.5.2 with Gradle and I was not able to replicate this issue. I also used Maven with Intellij and this issue did not occur.
The issue is isolated to Intellij using Gradle! any thoughts?
My best guess is IntelliJ Gradle does not honor the sourceSets tweak needed for the recommended Karate folder structure.
I just had an idea, try switching to the "traditional" Java project structure where *.feature files are in src/test/resources (not src/test/java) and that might just work.
Example project structure, from IDEA 2017.2.6 with Gradle.

Gradle dependencies not added as libraries in IntelliJ

I created an intellij Gradle project for some groovy code. Gradle correctly resolved the dependencies and has them added in the Project Structure's modules tab, however they are not loaded in the Libraries tab... Because of this it is impossible to compile the project, it gives me errors on missing libraries. What am I doing wrong?
I'm not an expert on this, having only just discovered a solution to this problem myself, but I found that using the idea Gradle plugin resolved the same issue for me.
So, in build.gradle add:
apply plugin: 'idea'
Then run:
gradle idea
and Gradle will create the .iml files for your project, which Intellij will understand and use to import the libraries. I'd recommend creating a backup of your project first, because if there are other things in your .iml files that Intellij needs, I suspect everything will break! I find them a bit of a mystery, personally.

Seemingly no gradle import support in IDEA

I have the full version of IDEA 12.1.6
I am trying to import the gradle project https://github.com/Synesso/jomsocial-automation-test
The import doesn't recognise the project as a gradle project. No dependencies are linked, the java profile is ignored and there is no jetgradle window.
In the IDE settings the only thing that matches a search for "gradle" is the gradle plugin, which is installed by default.
I think I need to configure the IDE to support gradle imports, but can't find what or where.
That is strange. Anyway, the Gradle support in IntelliJ 12 is very limited. You are better off with Gradle's idea plugin or IntelliJ 13 (EAP), which has much better Gradle support.

Is there an eclipse plugin for Play2?

I know there is one for play1, but I don't find any for play2.
I hope the plugin can compile the templates to scala code automatically. It's not convenient now.
I just came across Scala IDE Play2 plugin for Eclipse Indigo/Juno and Scala IDE. The current features are
Syntax Highlighting (routes and templates)
Code completion (templates)
Formatter (routes)
Hyperlinking (routes and templates)
Note that hyperlinking to Java files is not supported for now. Also there are some limitations for the code completion feature, just take some time to read the doc. I didn't try it myself as I'm not working with Play2 right now, but thought it might be helpful for someone.
Edit: This answer is outdated. A Play Eclipse plugin has been written, as #Baztoune says.
There is no Play 2 plugin for Eclipse at the time I’m writing these lines. However, there is an eclipsify sbt command, provided by the Play 2 sbt plugin, which is able to generate an Eclipse project from a Play 2 application.
You won’t get syntax highlighting, contextual completion or code navigation inside Play 2 templates, but you can have them to be automatically compiled when saved by using the ~run sbt command (instead of just run). Check the Eclipse “General −> Workspace −> Refresh using native hooks or polling” option is enabled so it will take compiled templates changes into account.
Yes, here's how to get started:
Find the correct update site for your version of Eclipse from http://scala-ide.org/download/current.html.
In Eclipse go to Help->Install New Software. Use the update site from above to locate Scala related plugins.
Install both the Scala IDE for Eclipse plugin and the Play2 support in Scala IDE plugin. Note that the Play2 support in Scala IDE plugin is listed under the Scala IDE plugins checkbox.
I was unable to get this working at all starting from bare Eclipse, as many sources have suggested doing. The problem seems to be incompatible dependencies that only show up after much wasted time. The Scala IDE route eliminated this problem.
Yes. That's Scala IDE.
Update Site for Eclipse Juno and Kepler: http://download.scala-ide.org/sdk/e38/scala210/stable/site
Install with the following features:
Scala IDE for Eclipse
Scala IDE Plugins (incubation)
I use Scala IDE from http://scala-ide.org/ , then eclipsify my play2 project and import.
It works like a charm: it compiles my scala/java code.
You can get more details at this URL http://scala-ide.org/docs/tutorials/play20scalaide20/index.html