Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gretty with Gradle 4.6 results in Could not create task of type 'AppStartTask' when running any gradle task. NPE in JacocoPluginExtension.applyTo(JacocoPluginExtension.java:117) #425

Open
gunalmel opened this issue Mar 12, 2018 · 1 comment

Comments

@gunalmel
Copy link

Workaround: Using the workaround reported in http://akhikhl.github.io/gretty-doc/Code-coverage-support.html

gretty {
	jacocoEnabled false
}

which was previously fixed in #339 for an earlier version.

When gradle build task is called with -- stacktrace:

> Could not create task of type 'AppStartTask'.
Caused by: java.lang.NullPointerException
        at org.gradle.testing.jacoco.plugins.JacocoPluginExtension.applyTo(JacocoPluginExtension.java:117)
        at org.gradle.testing.jacoco.plugins.JacocoPluginExtension$applyTo.call(Unknown Source)
        at org.akhikhl.gretty.StartBaseTask.initJacoco(StartBaseTask.groovy:156)
        at org.akhikhl.gretty.StartBaseTask.<init>(StartBaseTask.groovy:41)
        at org.akhikhl.gretty.AppStartTask.<init>(AppStartTask.groovy)
        at org.akhikhl.gretty.AppStartTask_Decorated.<init>(Unknown Source)
        at org.gradle.api.internal.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:81)
        at org.gradle.api.internal.project.taskfactory.TaskFactory$1.call(TaskFactory.java:119)
@javabrett
Copy link

Duplicates #420. Fixed in gretty-gradle-plugin#3 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants