Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for project isolation #277

Open
NikolayMetchev opened this issue Nov 20, 2024 · 1 comment
Open

Add support for project isolation #277

NikolayMetchev opened this issue Nov 20, 2024 · 1 comment

Comments

@NikolayMetchev
Copy link

It would be good to get a head start on adding support for project isolation to this plugin.
Project isolation is documented here:
https://docs.gradle.org/current/userguide/isolated_projects.html

On my project I get the following problems currently:

- [error] Project `:services:auth:db:dao` cannot access `Project.group` functionality on another project `:utils:mapstruct:spi`
    - plugin 'io.github.schwarzit.lightsaber'
        - Exception at `schwarz.it.lightsaber.gradle.processors.ProcessorKt.isDaggerCompiler(Processor.kt:30)`
org.gradle.api.InvalidUserCodeException: Project ':services:auth:db:dao' cannot access 'Project.group' functionality on another project ':utils:mapstruct:spi'
	at org.gradle.api.internal.artifacts.dependencies.DefaultProjectDependency_Decorated.getGroup(Unknown Source)
	at schwarz.it.lightsaber.gradle.processors.ProcessorKt.isDaggerCompiler(Processor.kt:30)
	at schwarz.it.lightsaber.gradle.processors.ProcessorKt.access$isDaggerCompiler(Processor.kt:1)
	at schwarz.it.lightsaber.gradle.processors.ProcessorKt$withDaggerCompiler$4.invoke(Processor.kt:17)
	at schwarz.it.lightsaber.gradle.processors.ProcessorKt$withDaggerCompiler$4.invoke(Processor.kt:15)
	at schwarz.it.lightsaber.gradle.processors.ProcessorKt.withDaggerCompiler$lambda$0(Processor.kt:15)
	at java.base/java.lang.Thread.run(Thread.java:840)
@BraisGabin
Copy link
Collaborator

I can't reproduce that error. Could you provide a sample project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants