Great! As far as I remember I didn't face this issue with regular Java 
projects built via Gradle, for example — RxJava 
https://github.com/ReactiveX/RxJava (just checked) and others.

But if you're saying that it happens with you with Android Gradle Plugin 
itself — looks like it's Gradle's issue.

Hope to see it in next version of Android Gradle Plugin :)



On Wednesday, July 22, 2015 at 3:51:54 AM UTC+3, Xavier Ducrohet wrote:
>
> Hi Artem,
>
> I saw your workaround on G+ and it looks very interesting. We have the 
> same issue when building the plugin and running tests and it is indeed very 
> annoying. I'll let the Gradle developers know about this, but we might 
> apply your workaround to the plugin, while we wait for a fix in Gradle.
>
> thanks!
>
> On Tue, Jul 21, 2015 at 5:47 PM, Artem Zinnatullin <[email protected] 
> <javascript:>> wrote:
>
>> Hello, ADT team.
>>
>> I usually build projects from Terminal and to run tests Gradle creates 
>> separate process GradleWorkerMain which launches as regular Java app on OS 
>> X and *steals focus from any currently launched app* (especially 
>> annoying when OS X switches to GradleWorkerMain from IDE in full-screen 
>> mode). 
>>
>> Here is very similar issue on b.android.com: 
>> https://code.google.com/p/android/issues/detail?id=76938
>>
>> My workaround for this: 
>> https://gist.github.com/artem-zinnatullin/4c250e04636e25797165
>>
>> You can reproduce this problem via cloning and building (./gradlew clean 
>> build or just sh ci.sh) StorIO project: 
>> https://github.com/pushtorefresh/storio, but I may add workaround into 
>> the repository soon, so please check root build.gradle.
>>
>> Can you please take a look at this issue?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks!
>  

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to