gretty icon indicating copy to clipboard operation
gretty copied to clipboard

Gretty incompatibility with Jacoco on Gradle 3.3

Open jnaalisv opened this issue 8 years ago • 12 comments

Gretty tasks are failing with a NPE when Jacoco-plugin is applied on Gradle 3.3.

I opened an issue at gradle: https://github.com/gradle/gradle/issues/1125

According to Stefan Wolf's response the problem is that "the Gretty plugin applies the Jacoco plugin to a DummyTask which returns null for getInputs()"

  • Example project: https://github.com/jnaalisv/gradle-gretty-jacoco-issue
  • Build scan URL: https://scans.gradle.com/s/j5tkhswublk4o

jnaalisv avatar Jan 09 '17 11:01 jnaalisv

Same problem here :-(

nikolauskrismer avatar Jan 09 '17 18:01 nikolauskrismer

I experience exactly the same problem, downgrading to gradle 3.2.1 helps for now

sander-adhese avatar Jan 12 '17 14:01 sander-adhese

same problem.

m4rt avatar Jan 19 '17 15:01 m4rt

@jnaalisv , @nikolauskrismer , @sander-adhese , @m4rt , the problem is fixed on "develop" branch of Gretty. I plan to do official release of Gretty 1.4.1 (with the fix) tomorrow, 1 of February, 2017.

akhikhl avatar Jan 31 '17 22:01 akhikhl

@jnaalisv , @nikolauskrismer , @sander-adhese , @m4rt , please use Gretty 1.4.1 - jacoco should work just fine with it now.

akhikhl avatar Feb 03 '17 11:02 akhikhl

I will try the new version as soon as it is available in the gradle plugin repo. Thanks for the new release 👍 Is there a reason why there version still 1.4.0 is listed as current (version 1.4.1 has been released three days ago)?

nikolauskrismer avatar Feb 03 '17 12:02 nikolauskrismer

The fix for this issue breaks Gradle 2.x:

https://github.com/akhikhl/gretty/issues/326

DanielThomas avatar Feb 03 '17 22:02 DanielThomas

Thanks, we'll test/use it soon!

sander-adhese avatar Feb 06 '17 08:02 sander-adhese

I tested with the the buildfile apply from option.
For me the changes performed in version 1.4.1 fix all problems with gradle 3.3 and/or jacoco.
Thanks

nikolauskrismer avatar Feb 06 '17 20:02 nikolauskrismer

I think this is related to #329 I am using the following workaround: I got the tip from http://akhikhl.github.io/gretty-doc/Code-coverage-support.html However there it says jacoco could be disabled per task which I could not figure out how.

gretty {
	jacocoEnabled false

}

gunalmel avatar Mar 10 '17 22:03 gunalmel

I experience exactly the same problem, downgrading to gradle 3.2.1 helps for now

I am using gradle 3.2.1 and facing same problem with jacoco test coverage. Any suggestion to fix it.

sujeetsingh007 avatar Jun 28 '19 06:06 sujeetsingh007

@jnaalisv , @nikolauskrismer , @sander-adhese , @m4rt , the problem is fixed on "develop" branch of Gretty. I plan to do official release of Gretty 1.4.1 (with the fix) tomorrow, 1 of February, 2017.

@akhikhl I am facing same issue with gradle 3.2.1 but it is working for gradle 3.0.1 please help me to fix it . I am stuck at it.

sujeetsingh007 avatar Jun 28 '19 07:06 sujeetsingh007