andylamax
06/08/2022, 3:00 AMAnton Lakotka [JB]
06/08/2022, 8:07 AMandylamax
06/08/2022, 8:38 AMTask :authenticator-core:compileCommonMainKotlinMetadata
. . .
> Task :authenticator-core:compileCommonMainKotlinMetadata FAILED
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (3, 8): Unresolved reference: bitframe
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (4, 8): Unresolved reference: bitframe
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (5, 8): Unresolved reference: bitframe
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (6, 8): Unresolved reference: later
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (9, 22): Unresolved reference: RequestBody
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (9, 47): Unresolved reference: RegisterUserParams
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (9, 69): Unresolved reference: Later
e: /media/andylamax/Auxilliary/Workspace/PiCortex/authenticator/core/src/commonMain/kotlin/authenticator/UsersServiceCore.kt: (9, 75): Unresolved reference: SignInResult
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':authenticator-core:compileCommonMainKotlinMetadata'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 18s
242 actionable tasks: 9 executed, 233 up-to-date
Anton Lakotka [JB]
06/08/2022, 8:58 AMcommonMain
cant see some declarations. Are you sure that they must be accessible?
The reason why compileKotlinJvm
and compileKotlinJs
work is because they see such dependencies from their platform variants.
It is still unclear why it fails.andylamax
06/08/2022, 8:59 AMcompileKotlinMetadata
builds fine as wellandylamax
06/08/2022, 9:00 AMAnton Lakotka [JB]
06/08/2022, 9:00 AMkotlin.mpp.enableCompatibilityMetadataVariant=true
?andylamax
06/08/2022, 9:02 AMAnton Lakotka [JB]
06/08/2022, 9:04 AMcompileKotlinMetadata
builds fine but compileCommonMainKotlinMetadata
don't. With such property, it can occur.
So back to your situation. Can you make a sample project that reproduces your issue?
Because It is hard to say what is wrong based on the information you gave.andylamax
06/08/2022, 9:05 AMAnton Lakotka [JB]
06/08/2022, 9:09 AMcommonMain
can't be compiled. So I need more context 🤷andylamax
06/08/2022, 9:19 AMmkrussel
06/08/2022, 12:02 PMmaven-publish
plugin is applied.andylamax
06/08/2022, 12:27 PMmaven-publish
actually works. Thanks alot @mkrusselandylamax
06/08/2022, 12:27 PMmkrussel
06/08/2022, 12:34 PMios
function but instead called each iOS target manually. I also then added the folders iosMain
and iosTest
to the created target based source sets.
I don't do that when not publishing because it confuses Android Studio with directories belonging to multiple source sets. The warning is "Duplicate Source Sets Detected".Anton Lakotka [JB]
06/08/2022, 12:35 PMmkrussel
06/08/2022, 12:35 PMAnton Lakotka [JB]
06/08/2022, 12:37 PMandylamax
06/08/2022, 12:38 PMandylamax
06/08/2022, 12:38 PMandylamax
06/08/2022, 12:38 PMmkrussel
06/08/2022, 12:40 PMAnton Lakotka [JB]
06/08/2022, 12:40 PM