Hi,
I would like to use the new native plugins for our cpp build.
I’ve uploaded the artifact to the repo like:
apply plugin: 'maven-publish'
group = 'my.company'
version = '1.0'
publishing {
repositories {
maven {
url = 'http://repo.url'
}
}
publications {
myPublication(MavenPublication) {
artifact('/path/to/file.so')
}
}
}
But when consuming it:
apply plugin: 'cpp-library'
repositories {
maven {
url = 'http://repo.url'
}
}
library {
dependencies {
implementation 'my.company:dependency:1.0'
}
}
I get the error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all artifacts for configuration ':project:cppCompileDebug'.
> Could not resolve my.company:dependency:1.0.
Required by:
project :project
> Unable to find a matching configuration of my.company:dependency:1.0:
- Configuration 'compile':
- Required org.gradle.native.debuggable 'true' but no value provided.
- Required org.gradle.native.optimized 'false' but no value provided.
- Required org.gradle.usage 'cplusplus-api' and found incompatible value 'java-api'.
- Configuration 'runtime':
- Required org.gradle.native.debuggable 'true' but no value provided.
- Required org.gradle.native.optimized 'false' but no value provided.
- Required org.gradle.usage 'cplusplus-api' and found incompatible value 'java-runtime'.
How can I create the missing Gradle Module Metadata file?
Thanks,
Mate