-
Notifications
You must be signed in to change notification settings - Fork 89
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
maven plugin - Reduce amount of created jandex indexes. #957
maven plugin - Reduce amount of created jandex indexes. #957
Conversation
ignoredArtifacts.add("org.graalvm.sdk:graal-sdk"); | ||
ignoredArtifacts.add("org.yaml:snakeyaml"); | ||
ignoredArtifacts.add("org.wildfly.common:wildfly-common"); | ||
ignoredArtifacts.add("com.fasterxml.jackson.core:jackson-core"); | ||
ignoredArtifacts.add("com.fasterxml.jackson.core:jackson-databind"); | ||
ignoredArtifacts.add("io.quarkus:quarkus-vertx-http"); | ||
ignoredArtifacts.add("io.smallrye:smallrye-open-api-core"); | ||
ignoredArtifacts.add("io.smallrye.reactive:smallrye-mutiny-vertx-core"); | ||
ignoredArtifacts.add("commons-io:commons-io"); | ||
ignoredArtifacts.add("io.smallrye.reactive:mutiny"); | ||
ignoredArtifacts.add("org.jboss.narayana.jta:narayana-jta"); | ||
ignoredArtifacts.add("org.glassfish.jaxb:jaxb-runtime"); | ||
ignoredArtifacts.add("com.github.ben-manes.caffeine:caffeine"); | ||
ignoredArtifacts.add("org.hibernate.validator:hibernate-validator"); | ||
ignoredArtifacts.add("io.smallrye.config:smallrye-config-core"); | ||
ignoredArtifacts.add("com.thoughtworks.xstream:xstream"); | ||
ignoredArtifacts.add("com.github.javaparser:javaparser-core"); | ||
ignoredArtifacts.add("org.jboss:jandex"); | ||
|
||
ignoredArtifacts.add("antlr"); | ||
ignoredArtifacts.add("io.netty"); | ||
ignoredArtifacts.add("org.drools"); | ||
ignoredArtifacts.add("net.bytebuddy"); | ||
ignoredArtifacts.add("io.vertx"); | ||
ignoredArtifacts.add("org.hibernate"); | ||
ignoredArtifacts.add("org.kie"); | ||
ignoredArtifacts.add("org.postgresql"); | ||
ignoredArtifacts.add("org.apache.httpcomponents"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quit sure about having to maintain a list of blacklisted artifacts.
It does reduces the total time by about 1s though, which makes this justifiable (imo). The effect scales, if the project has more modules, and/or more dependencies.
WDYT?
baf9bf2
to
043a09d
Compare
Hi @Postremus - Thanks for this. Please resolve confict |
This introduces a blacklist of artifacts, for which no jandex index is ever created, since they won't have impact on the generated scheme. Also, cache the indexes that are created using their gavct
5705d92
to
45610d8
Compare
@phillip-kruger done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks !
This introduces a blacklist of artifacts, for which no jandex index is ever created, since they won't have impact on the generated scheme.
Also, cache the indexes that are created using their gavct as key.
I tested this with a project with 2 modules, each module having 4 executions of the maven-plugin.
sroa-scanpackages.zip
I ran
mvn clean compile
3 times, taking the average reported by mvn as total time.2.1.15: 19.067s
only blacklist: 7.003s
only cache: 5.471s
blacklist and cache: 4.447s
closes #954