My project structure looks like bellow:
-Main dir
- .gradle-wrapper
| - gradle-wrapper.jar
| - gradle-wrapper.properties
|
- projects
- library
- library-consumer
Inside library
and library-consumer
I have both build.gradle
with:
wrapper {
jarFile = "${project.projectDir}/../../.gradle-wrapper/gradle-wrapper.jar"
gradleVersion = '4.8.1'
}
Also, in project library-consumer
I have in build.gradle
dependency to library
project as
compile project(':library')
In library-consumer
's settings.gradle
I have included library
like said here:
include ':library'
project(':library').projectDir = new File("../library")
Then I receive following error while trying gradle build
:
Could not find method wrapper() for arguments [build_7cibagmqy9u5sctvqdtah2a8p$_run_closure1@134371ea] on project ':library' of type org.gradle.api.Project.
Any sugestion/solution? Both projects has included changed path to wrapper like bellow:
set CLASSPATH=%APP_HOME%\..\..\.gradle-wrapper\gradle-wrapper.jar
library
builds without problem.