GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Verbose Graph should not include provided dependencies

Aperta
#1,537 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
p3
Lingua principale
Java
Stelle
163
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# hadoop-core:0.20.2 in beam-sdks-java-io-hcatalog dependency graph

https://gist.github.com/suztomo/e40eb79989d20317eb61784a9c8de654

```
(org.apache.hadoop:hadoop-core:0.20.2) org.apache.hadoop.hdfs.server.namenode.FSEditLog$EditLogFileInputStream's method isInProgress() is not implemented in the class;
referenced by 1 class file
org.apache.hadoop.hdfs.server.namenode.EditLogInputStream (org.apache.hadoop:hadoop-hdfs:2.6.0)
Cause:
Unknown
```

org.apache.hadoop:hadoop-core:0.20.2 is at:

```
org.apache.beam:beam-sdks-java-io-hcatalog:jar:2.19.0
/ org.apache.hive.hcatalog:hive-hcatalog-core:2.1.0 (provided)
/ org.apache.hive:hive-common:2.1.0 (compile)
/ org.apache.hive:hive-orc:2.1.0 (compile)
/ org.iq80.snappy:snappy:0.2 (compile)
/ org.apache.hadoop:hadoop-core:0.20.2 (provided)
```

This hadoop-core:0.20.2 should not have been used because Maven will not select this provided *transitive* dependency.

org.apache.hadoop:hadoop-hdfs:2.6.0 is at:

```
org.apache.beam:beam-sdks-java-io-hcatalog:jar:2.19.0
/ org.apache.hive.hcatalog:hive-hcatalog-core:2.1.0 (provided)
/ org.apache.hadoop:hadoop-hdfs:2.6.0 (compile)
```

# Auto-value's incap declaration

Auto-value declares incap-processor as provided ([link](https://search.maven.org/artifact/com.google.auto.value/auto-value/1.7.4/jar)). Interestingly this provided-scope declaration helps IDE-integration (incremental annotation processing support), as per https://github.com/tbroyer/gradle-incap-helper#usage.

```

net.ltgt.gradle.incap
incap-processor
0.2
provided

```

The auto-value users' projects will not have incap-processor artifacts at runtime.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.