Davide Giuseppe Farella
10/08/2020, 4:00 PMroot
( modules )
+ gradle
( plugins )
+ publish
- libraries ( plugin )
- plugins ( plugin )
The goal is to have
// root
plugins {
id("publish-libraries")
}
// gradle
plugins {
id("publish-plugins")
}
The problem is that if I apply publish-plugins
to gradle
project or one of its module , root does not find the plugins in gradle
😕
org.gradle.internal.exceptions.LocationAwareException: Build file '/Users/davide/Dev/Android/Workspace/xxx/build.gradle.kts' line: 28
Plugin [id: 'my-plugin'] was not found in any of the following sources:
( The gradle
project builds correctly though )gildor
10/09/2020, 3:19 AMDavide Giuseppe Farella
10/09/2020, 5:13 AM// a
includeBuild("b")
includeBuild("c")
// b
includeBuild("c")
Everything is fine if a
applies b
as pluging OR b
applies c
as pluging, but not both at the same time.
Basically what I'm trying now and I think it will fix it is to publish c
on Gradle Portal, but that's ugly, specially considering that c
should be for internal purposes onlygildor
10/09/2020, 6:01 AMDavide Giuseppe Farella
10/09/2020, 6:06 AM