Miguel Fermin
12/11/2019, 9:46 PMapp
|
|_ LibA
|
|_ LibB (mpp)
Next thing I have in mind is trying to generate .jar libraries from Kotlin mpp and see if that works
Any ideas would be highly appreciated.Kris Wong
12/11/2019, 9:48 PMMiguel Fermin
12/11/2019, 9:50 PMdependencies {
...
implementation project(path: ':mpp-lib-release')
}
Kris Wong
12/11/2019, 10:01 PMMiguel Fermin
12/11/2019, 10:08 PMapi project(path: ':mpp-lib-release')
sync worked but still don't see the classes from the moduleKris Wong
12/11/2019, 10:11 PMapi
dependency, it's letting Gradle know that the module wants to transitively export that dependency to other modules, so that it's available to them at both runtime and compile time.Miguel Fermin
12/11/2019, 10:16 PMmkojadinovic
12/12/2019, 8:08 AMcom.jfrog.artifactory
plugin for publishing aar and pom file. Also, for Android library you have to do something like this:
project('logger') {
artifactoryPublish.dependsOn('build')
publishing {
publications {
aar(MavenPublication) {
groupId = 'com.wayfair.logger'
artifactId = 'android-logger'
version = '0.2-alpha'
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
pom.withXml {
def dependencies = asNode().appendNode('dependencies')
configurations.implementation.allDependencies.each {
def dependency = dependencies.appendNode('dependency')
dependency.appendNode('groupId', it.group)
dependency.appendNode('artifactId', it.name)
dependency.appendNode('version', it.version)
}
}
}
}
}
artifactoryPublish {
publications(publishing.publications.aar)
}
}
FYI: I also needed to add proguard ruleMiguel Fermin
12/12/2019, 12:13 PMKris Wong
12/12/2019, 2:14 PMmkojadinovic
12/17/2019, 9:28 AM