Open vinz486 opened 4 years ago
Also, I have on gradle console:
Task :publishShadowPublicationToMavenRepository Multiple publications with coordinates 'xxx.dxl:dxl:2.0.45-SNAPSHOT' are published to repository 'maven'. The publications will overwrite each other!
This is the consumer gradle output: Could not apply requested plugin [id: 'xxx.dxl', version: '2.0.45-SNAPSHOT'] as it does not provide a plugin with id 'xxx.dxl'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).
Shadow Version
6.0.0
Gradle Version
6.4.1
Expected Behavior
Plugin on nexus
Actual Behavior
Plugin not found
Gradle Build Script(s)
plugins { id 'com.github.johnrengelman.shadow' version '6.0.0' id 'java-gradle-plugin' id 'groovy' id 'maven-publish' id 'idea' }
allprojects {
}
publishing {
} compileJava { options.compilerArgs += ['-Xlint:deprecation'] }
dependencies {
}
gradlePlugin { plugins { dxl { id = 'xxx.dxl' implementationClass = 'xxx.dxl.DxlPlugin' } } }
test { useJUnitPlatform() }
Hi, my goal is to include a submodule in my custom gradle plugin. I need to add only the submodule in the jar, not all the dependencies.
Plugin publication works fine, without Shadow.
When I add Shadow and configure the publication as stated in the guide:
publications { shadow(MavenPublication) { publication -> project.shadow.component(publication) } }
the plugin in not found anymore in the user project. Seem like gradle plugin metadata and id is lost.
How can I solve?
Thank you.