You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by NETEASE <su...@163.com> on 2016/05/09 06:52:07 UTC

does gmavenplus support lombok?

Hi, I use groovy-eclipse-compiler to compile mixed Java and Groovy source codes and employ lombok to make less coding for Java.
Now I want to enable invokedynamic support to get performance gain.
I found GMavenPlus can help me to enable invokedynamic feature but nothing about lombook. 
So my question is whether GMavenPlus  support lombok? 


Thanks


Re: does gmavenplus support lombok?

Posted by SuoNayi <su...@163.com>.
Ok,it works now,thanks all:)


�����ҵ� iPhone

> �� 2016��5��10�գ�17:29��Serega Sheypak <se...@gmail.com> д����
> 
> Can you show your pom.xml? What doesn't work for you?
> 
>  <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.codehaus.gmavenplus</groupId>
>                 <artifactId>gmavenplus-plugin</artifactId>
>                 <dependencies>
>                     <dependency>
>                         <groupId>org.codehaus.groovy</groupId>
>                         <artifactId>groovy-all</artifactId>
>                         <!-- any version of Groovy \>= 1.5.0 should work here -->
>                         <version>2.4.4</version>
>                         <scope>runtime</scope>
>                     </dependency>
>                 </dependencies>
>             </plugin>
> <!-- bla-bla-bla -->
>   <dependencies>
>   <dependency>
>             <groupId>org.projectlombok</groupId>
>             <artifactId>lombok</artifactId>
>         </dependency>
> <!-- bla-bla-bla -->
> 
> works fine. Annotations applied, code compiled, jar built.
> Can you just write one java class with lombok and one groovy class and see if it works for you. You problem is unclear: can you provide stack trace?
> 
> 
> 2016-05-10 11:18 GMT+02:00 NETEASE <su...@163.com>:
>> As I said, I use groovy-eclipse-compiler to compile both Groovy and Java source codes in the same project, and lombok works well for long time.
>> Now I upgrade Groovy from v1.8.3 to 2.3.9 and I want to enable invokedynamic feature for performance gain.
>> But groovy-eclipse-compiler plugin does not support invokedynamic feature while GMavenPlus does.
>> What make me fussy is I can find nothing about how to use lombok with GMavenPlus together.
>> Your guys how to organize the project that mixes Groovy and Java source codes? 
>> I know just separating them to two projects should work...
>> 
>> Thanks
>>  
>> 
>> �� 2016-05-10 15:02:26��"Serega Sheypak" <se...@gmail.com> ���
>> There should't be any problem with gmavenplus.
>> Yes, for IntelliJ there is a plugin and it works pretty well! I tried it with maven, not sure how it works with other build systems.
>> 
>> 2016-05-10 8:46 GMT+02:00 Andre Steingress <me...@andresteingress.com>:
>>> I am in a JSF project where we use Lombok, we just included it as a dependency for the build:
>>> 
>>> https://projectlombok.org/mavenrepo/
>>> 
>>> For IDE support things are a bit different, for Eclipse you need to set the lombok.jar as JavaAgent, in IntelliJ I think there is a plugin.
>>> 
>>>> On 10 May 2016 at 08:35:36, Keegan Witt (keeganwitt@gmail.com) wrote:
>>>> 
>>>> I haven't used Lombok, but wouldn't you just add Lombok as a dependency in your POM?  Have you tried that already?
>>>> 
>>>> -Keegan
>>>> 
>>>>> On May 10, 2016 2:07 AM, "Jochen Theodorou" <bl...@gmx.org> wrote:
>>>>>> On 10.05.2016 03:31, SuoNayi wrote:
>>>>>> any comments��guys��
>>>>> 
>>>>> well... I did not found anything that looks like it would support it.
>>>>> 
>>>>> by Jochen
> 

Re: Re: does gmavenplus support lombok?

Posted by Serega Sheypak <se...@gmail.com>.
Can you show your pom.xml? What doesn't work for you?

 <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.gmavenplus</groupId>
                <artifactId>gmavenplus-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>org.codehaus.groovy</groupId>
                        <artifactId>groovy-all</artifactId>
                        <!-- any version of Groovy \>= 1.5.0 should work
here -->
                        <version>2.4.4</version>
                        <scope>runtime</scope>
                    </dependency>
                </dependencies>
            </plugin>
<!-- bla-bla-bla -->
  <dependencies>
  <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>
<!-- bla-bla-bla -->

works fine. Annotations applied, code compiled, jar built.
Can you just write one java class with lombok and one groovy class and see
if it works for you. You problem is unclear: can you provide stack trace?


2016-05-10 11:18 GMT+02:00 NETEASE <su...@163.com>:

> As I said, I use groovy-eclipse-compiler to compile both Groovy and Java
> source codes in the same project, and lombok works well for long time.
> Now I upgrade Groovy from v1.8.3 to 2.3.9 and I want to enable
> invokedynamic feature for performance gain.
> But groovy-eclipse-compiler plugin does not support invokedynamic feature
> while GMavenPlus does.
> What make me fussy is I can find nothing about how to use lombok with
> GMavenPlus together.
> Your guys how to organize the project that mixes Groovy and Java source
> codes?
> I know just separating them to two projects should work...
>
> Thanks
> ------------------------------
>
>
> 在 2016-05-10 15:02:26,"Serega Sheypak" <se...@gmail.com> 写道:
>
> There should't be any problem with gmavenplus.
> Yes, for IntelliJ there is a plugin and it works pretty well! I tried it
> with maven, not sure how it works with other build systems.
>
> 2016-05-10 8:46 GMT+02:00 Andre Steingress <me...@andresteingress.com>:
>
>> <https://projectlombok.org/mavenrepo/>I am in a JSF project where we use
>> Lombok, we just included it as a dependency for the build:
>>
>> https://projectlombok.org/mavenrepo/
>>
>> For IDE support things are a bit different, for Eclipse you need to set
>> the lombok.jar as JavaAgent, in IntelliJ I think there is a plugin.
>>
>> On 10 May 2016 at 08:35:36, Keegan Witt (keeganwitt@gmail.com) wrote:
>>
>> I haven't used Lombok, but wouldn't you just add Lombok as a dependency
>> in your POM?  Have you tried that already?
>>
>> -Keegan
>> On May 10, 2016 2:07 AM, "Jochen Theodorou" <bl...@gmx.org> wrote:
>>
>>> On 10.05.2016 03:31, SuoNayi wrote:
>>>
>>>> any comments,guys?
>>>>
>>>
>>> well... I did not found anything that looks like it would support it.
>>>
>>> by Jochen
>>>
>>>
>
>
>
>

Re:Re: does gmavenplus support lombok?

Posted by NETEASE <su...@163.com>.
As I said, I use groovy-eclipse-compiler to compile both Groovy and Java source codes in the same project, and lombok works well for long time.
Now I upgrade Groovy from v1.8.3 to 2.3.9 and I want to enable invokedynamic feature for performance gain.
But groovy-eclipse-compiler plugin does not support invokedynamic feature while GMavenPlus does.
What make me fussy is I can find nothing about how to use lombok with GMavenPlus together.
Your guys how to organize the project that mixes Groovy and Java source codes? 
I know just separating them to two projects should work...


Thanks
 

在 2016-05-10 15:02:26,"Serega Sheypak" <se...@gmail.com> 写道:

There should't be any problem with gmavenplus.
Yes, for IntelliJ there is a plugin and it works pretty well! I tried it with maven, not sure how it works with other build systems.


2016-05-10 8:46 GMT+02:00 Andre Steingress <me...@andresteingress.com>:

I am in a JSF project where we use Lombok, we just included it as a dependency for the build:


https://projectlombok.org/mavenrepo/


For IDE support things are a bit different, for Eclipse you need to set the lombok.jar as JavaAgent, in IntelliJ I think there is a plugin.



On 10 May 2016 at 08:35:36, Keegan Witt (keeganwitt@gmail.com) wrote:

I haven't used Lombok, but wouldn't you just add Lombok as a dependency in your POM?  Have you tried that already?

-Keegan

On May 10, 2016 2:07 AM, "Jochen Theodorou" <bl...@gmx.org> wrote:
On 10.05.2016 03:31, SuoNayi wrote:
any comments,guys?

well... I did not found anything that looks like it would support it.

by Jochen




Re: does gmavenplus support lombok?

Posted by Serega Sheypak <se...@gmail.com>.
There should't be any problem with gmavenplus.
Yes, for IntelliJ there is a plugin and it works pretty well! I tried it
with maven, not sure how it works with other build systems.

2016-05-10 8:46 GMT+02:00 Andre Steingress <me...@andresteingress.com>:

> <https://projectlombok.org/mavenrepo/>I am in a JSF project where we use
> Lombok, we just included it as a dependency for the build:
>
> https://projectlombok.org/mavenrepo/
>
> For IDE support things are a bit different, for Eclipse you need to set
> the lombok.jar as JavaAgent, in IntelliJ I think there is a plugin.
>
> On 10 May 2016 at 08:35:36, Keegan Witt (keeganwitt@gmail.com) wrote:
>
> I haven't used Lombok, but wouldn't you just add Lombok as a dependency in
> your POM?  Have you tried that already?
>
> -Keegan
> On May 10, 2016 2:07 AM, "Jochen Theodorou" <bl...@gmx.org> wrote:
>
>> On 10.05.2016 03:31, SuoNayi wrote:
>>
>>> any comments,guys?
>>>
>>
>> well... I did not found anything that looks like it would support it.
>>
>> by Jochen
>>
>>

Re: does gmavenplus support lombok?

Posted by Andre Steingress <me...@andresteingress.com>.
I am in a JSF project where we use Lombok, we just included it as a dependency for the build:

https://projectlombok.org/mavenrepo/

For IDE support things are a bit different, for Eclipse you need to set the lombok.jar as JavaAgent, in IntelliJ I think there is a plugin.

On 10 May 2016 at 08:35:36, Keegan Witt (keeganwitt@gmail.com) wrote:

I haven't used Lombok, but wouldn't you just add Lombok as a dependency in your POM?  Have you tried that already?

-Keegan

On May 10, 2016 2:07 AM, "Jochen Theodorou" <bl...@gmx.org> wrote:
On 10.05.2016 03:31, SuoNayi wrote:
any comments,guys?

well... I did not found anything that looks like it would support it.

by Jochen


Re: does gmavenplus support lombok?

Posted by Keegan Witt <ke...@gmail.com>.
I haven't used Lombok, but wouldn't you just add Lombok as a dependency in
your POM?  Have you tried that already?

-Keegan
On May 10, 2016 2:07 AM, "Jochen Theodorou" <bl...@gmx.org> wrote:

> On 10.05.2016 03:31, SuoNayi wrote:
>
>> any comments,guys?
>>
>
> well... I did not found anything that looks like it would support it.
>
> by Jochen
>
>

Re: does gmavenplus support lombok?

Posted by Jochen Theodorou <bl...@gmx.org>.
On 10.05.2016 03:31, SuoNayi wrote:
> any comments\uff0cguys\uff1f

well... I did not found anything that looks like it would support it.

by Jochen


Re: does gmavenplus support lombok?

Posted by SuoNayi <su...@163.com>.
any comments��guys��

�����ҵ� iPhone

> �� 2016��5��9�գ�14:52��NETEASE <su...@163.com> д����
> 
> Hi, I use groovy-eclipse-compiler to compile mixed Java and Groovy source codes and employ lombok to make less coding for Java.
> Now I want to enable invokedynamic support to get performance gain.
> I found GMavenPlus can help me to enable invokedynamic feature but nothing about lombook. 
> So my question is whether GMavenPlus  support lombok? 
> 
> Thanks
> 
> 
> 
>