gradle / gradle/guides

Fix class file for groovy.lang.GroovyObject not found

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
in:creating-multi-project-builds
Dominant language
Java
Stars
48
Forks
36
Avg merge
7h 37m
Merged PRs (30d)
8

Description

@rsalama commented on [Sun Dec 16 2018](https://github.com/gradle-guides/creating-multi-project-builds/issues/16)

In order to fix the following error;
```
> Task :greeter:compileJava FAILED
/home/rs/src/gradle/creating-multi-project-builds/greeter/src/main/java/greeter/Greeter.java:5: error: cannot access GroovyObject
final String output = GreetingFormatter.greeting(args[0]);
^
class file for groovy.lang.GroovyObject not found
1 error
```

Add
```
implementation("org.codehaus.groovy:groovy-all:2.5.4")
```
to the dependencies in build.gradle.kts

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.