--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To post to this group, send email to bazel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/e2163ff6-1447-4445-833a-c8ee68dceae5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
java_library(
name = "entityframework",
visibility = ["//visibility:public"],
plugins = [ # I think I don't actually need this one?
":EntityProcessor",
":EnumProcessor",
],
exported_plugins = [
":EntityProcessor",
":EnumProcessor",
]
)
java_plugin(
name = "EnumProcessor",
processor_class = "com.ekuefler.annotationprocessors.EnumProcessor",
srcs = SRCS,
deps = DEPS,
resources = RES,
)
java_plugin(
name = "EntityProcessor",
processor_class = "com.ekuefler.annotationprocessors.EntityProcessor",
srcs = SRCS,
deps = DEPS,
resources = RES,
)
java_library(
name = "Model",
srcs = glob(["**/src/main/java/**/*.java"]),
#plugins = [
# "//AnnotationProcessors:EntityProcessor",
# "//AnnotationProcessors:EnumProcessor",
#],
deps = [
"//AnnotationProcessors:entityframework",
"//external:guava",
],
)
@Entity
public abstract class Group {
public static GroupBuilder newBuilder() {
return new GroupBuilder();
}
public abstract String getName();
}
location: class Group
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CANK5_0r4Po2Dgt5gRZqeTuy5ggFOWPNTPsoDE0Db_VkTf8wu7A%40mail.gmail.com.
Liam,Can you provide more details about annotation processors, specifically on Auto-Value and Dagger2.We are using both libraries in our (very large) code-base. The annotated classes are part of the main app's code (it is not extracted into a standalone library).
I got my annotation processors to work, i'm just looking for details about _how_ it works.
For example, thr `bind` command, what is its purpose (I did not use it)?
What are the `exports`? Etc.
One of thr things that i'm confused about is that we used Dagger 2.1, and that did not work with Bazel (worked with Gradle), but Dagger 2.2 worked with both.