File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ public void initialize(
7373 legacyPlugin ->
7474 env .getMessager ()
7575 .printMessage (
76- // TODO(b/250036454): Use ERROR here instead.
77- Kind .WARNING ,
76+ Kind .ERROR ,
7877 "Cannot use legacy dagger.spi.BindingGraphPlugin while compiling with KSP: "
7978 + legacyPlugin .pluginName ()
8079 + ". Either compile with KAPT or migrate the plugin to implement "
Original file line number Diff line number Diff line change 2525/** Wrapper type for an element. */
2626@ AutoValue
2727public abstract class DaggerProcessingEnv {
28+ /** Represents a type of backend used for compilation. */
29+ public enum Backend { JAVAC , KSP }
30+
2831 public static DaggerProcessingEnv from (XProcessingEnv processingEnv ) {
2932 return new AutoValue_DaggerProcessingEnv (processingEnv );
3033 }
3134
3235 public abstract XProcessingEnv xprocessing ();
3336
37+ /** Returns the backend used in this compilation. */
38+ public Backend getBackend () {
39+ return Backend .valueOf (xprocessing ().getBackend ().name ());
40+ }
41+
3442 public ProcessingEnvironment java () {
3543 return toJavac (xprocessing ());
3644 }
You can’t perform that action at this time.
0 commit comments