This upgrade lets us remove several hacks we needed to properly publish our artifacts on Maven.
46 lines
1.2 KiB
Groovy
46 lines
1.2 KiB
Groovy
android {
|
|
namespace 'com.google.android.filament.gltfio'
|
|
|
|
flavorDimensions "functionality"
|
|
productFlavors {
|
|
full {
|
|
dimension "functionality"
|
|
}
|
|
}
|
|
packagingOptions {
|
|
// No need to package up the following shared libs, which arise as a side effect of our
|
|
// externalNativeBuild dependencies. When clients pick and choose from project-level gradle
|
|
// dependencies, these shared libs already get pulled in, so we need to avoid the error:
|
|
// "More than one file was found with OS independent path ..."
|
|
jniLibs {
|
|
excludes += ['lib/*/libfilament-jni.so']
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
singleVariant("fullRelease") {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation deps.androidx.annotations
|
|
|
|
api project(':filament-android')
|
|
}
|
|
|
|
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
|
|
|
|
afterEvaluate { project ->
|
|
publishing {
|
|
publications {
|
|
fullRelease(MavenPublication) {
|
|
artifactId = POM_ARTIFACT_ID_FULL
|
|
from components.fullRelease
|
|
}
|
|
}
|
|
}
|
|
}
|