2018-09-28 17:55:42 +02:00
|
|
|
language: scala
|
|
|
|
|
scala: 2.12.7
|
|
|
|
|
os: linux
|
|
|
|
|
jdk: oraclejdk8
|
2018-10-17 14:18:03 +02:00
|
|
|
before_install:
|
|
|
|
|
- git fetch --tags
|
2015-12-14 21:11:14 +01:00
|
|
|
script:
|
2017-02-27 16:15:15 +01:00
|
|
|
- scripts/travis.sh
|
2018-10-17 14:18:03 +02:00
|
|
|
stages:
|
|
|
|
|
- name: test
|
|
|
|
|
- name: release
|
|
|
|
|
if: (branch = master AND type = push) OR (tag IS present)
|
|
|
|
|
jobs:
|
2015-12-14 21:11:14 +01:00
|
|
|
include:
|
2018-10-17 14:18:04 +02:00
|
|
|
- env: SBT_COURSIER=1 SBT_COURSIER_TEST_GROUP=1
|
|
|
|
|
- env: SBT_COURSIER=1 SBT_COURSIER_TEST_GROUP=2
|
2018-09-28 17:55:42 +02:00
|
|
|
- env: SBT_SHADING=1
|
2018-09-28 18:31:16 +02:00
|
|
|
- env: SBT_PGP_COURSIER=1
|
2018-11-20 10:31:34 +01:00
|
|
|
- env: LM_COURSIER=1
|
2018-10-17 14:18:03 +02:00
|
|
|
- stage: release
|
|
|
|
|
script: sbt ci-release
|
2016-02-20 16:01:46 +01:00
|
|
|
branches:
|
|
|
|
|
only:
|
|
|
|
|
- master
|
2017-01-30 22:57:24 +01:00
|
|
|
cache:
|
|
|
|
|
directories:
|
|
|
|
|
- $HOME/.ivy2/cache
|
|
|
|
|
- $HOME/.sbt
|
Add json report to fetch and local exclusion option (#692)
This patch introduces changes for cli with json output #659. Format as follows:
```
{
"conflict_resolution": {
"org:name:version" (requested): "org:name:version" (reconciled)
},
"dependencies": [
{
"coord": "orgA:nameA:versionA",
"files": [
[
<classifier>,
<path>
]
],
"dependencies": [ // coodinates for its transitive dependencies
<orgX:nameX:versionX>,
<orgY:nameY:versionY>,
]
},
{
"coord": "orgB:nameB:versionB",
"files": [
[
<classifier>,
<path>
]
],
"dependencies": [ // coodinates for its transitive dependencies
<orgX:nameX:versionX>,
<orgZ:nameZ:versionZ>,
]
},
]
}
```
For example:
```
fetch -t org.apache.avro:trevni-avro:1.8.2 org.slf4j:slf4j-api:1.7.6 --json-output-file x.out
Result:
├─ org.apache.avro:trevni-avro:1.8.2
│ ├─ org.apache.avro:trevni-core:1.8.2
│ │ ├─ org.apache.commons:commons-compress:1.8.1
│ │ ├─ org.slf4j:slf4j-api:1.7.7
│ │ └─ org.xerial.snappy:snappy-java:1.1.1.3
│ └─ org.slf4j:slf4j-api:1.7.7
└─ org.slf4j:slf4j-api:1.7.6 -> 1.7.7
```
would produce the following json file:
```
$ jq < x.out
{
"conflict_resolution": {
"org.slf4j:slf4j-api:1.7.6": "org.slf4j:slf4j-api:1.7.7"
},
"dependencies": [
{
"coord": "org.apache.avro:trevni-core:1.8.2",
"files": [
[
"",
"/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/avro/trevni-core/1.8.2/trevni-core-1.8.2.jar"
]
],
"dependencies": [
"org.slf4j:slf4j-api:1.7.7",
"org.xerial.snappy:snappy-java:1.1.1.3",
"org.apache.commons:commons-compress:1.8.1"
]
},
{
"coord": "org.apache.avro:trevni-avro:1.8.2",
"files": [
[
"",
"/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/avro/trevni-avro/1.8.2/trevni-avro-1.8.2.jar"
]
],
"dependencies": [
"org.apache.avro:trevni-core:1.8.2",
"org.slf4j:slf4j-api:1.7.7",
"org.xerial.snappy:snappy-java:1.1.1.3",
"org.apache.commons:commons-compress:1.8.1"
]
},
{
"coord": "org.slf4j:slf4j-api:1.7.7",
"files": [
[
"",
"/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar"
]
],
"dependencies": []
},
{
"coord": "org.apache.commons:commons-compress:1.8.1",
"files": [
[
"",
"/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar"
]
],
"dependencies": []
},
{
"coord": "org.xerial.snappy:snappy-java:1.1.1.3",
"files": [
[
"",
"/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.1.3/snappy-java-1.1.1.3.jar"
]
],
"dependencies": []
}
]
}
```
2017-12-26 19:46:35 +01:00
|
|
|
- $HOME/.cache
|