Skip to content

Make KSP dependency optional to avoid Google Maven Repo #2779

@A248

Description

@A248

I understand that dagger 2.38 now requires adding the Google maven repository. I'm wondering if there's a way to avoid the requirement that users add this repository to their build files.

Adding third-party maven repositories to the build is often discouraged, especially for artifacts which themselves publish to central. As noted:

At present, this won't preclude your project from being included, but we do strongly encourage making sure all your dependencies are included in the Central Repository
https://maven.apache.org/repository/guide-central-repository-upload.html

Based on what I read in #2349 , KSP is used for processing annotations in Kotlin source code. For Java-based applications, I would assume KSP isn't needed. At the very least, I'd expect that the dependency on KSP could be made optional with some slight refactoring.

Is it possible to use dagger-compiler without KSP so users don't need the Google Maven Repo?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions