Marc Knaup
02/01/2019, 3:40 PMapi()
and implementation()
etc. in dependencies {}
resolve and when not?
Line 9: api(project(":fluid-stdlib"))
^ Unresolved reference: api
Marc Knaup
02/01/2019, 3:43 PMkotlin-dsl
manually to the project (it's a subproject) then it works.
When I add kotlin-dsl
to the root project then it doesn't work in the subproject.
When I add it to both, I get:
Error resolving plugin [id: 'org.gradle.kotlin.kotlin-dsl', version: '1.1.3']
> Plugin request for plugin already on the classpath must not include a version
Marc Knaup
02/01/2019, 3:50 PMplugins {}
.Marc Knaup
02/01/2019, 4:00 PMjava-library
also does the trick.Marc Knaup
02/01/2019, 4:21 PMplugins {}
is needed in them?Marc Knaup
02/01/2019, 4:23 PMsubprojects {
apply<JavaLibraryPlugin>()
}
Simple solution, tricky to figure out 😮jlleitschuh
02/01/2019, 8:55 PMNikky
02/01/2019, 11:56 PMkotlin-dsl
} does a bit more than whats visible.. so you need to change it to plugins { id("org.gradle.kotlin.kotlin-dsl") }
so it does not override the versionNikky
02/01/2019, 11:57 PM