Commit Graph

34 Commits

Author SHA1 Message Date
Yi Cheng a4258f48ce
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 10:46:35 -08:00
Yi Cheng 1296459de3 Add Pants build tool (#709) 2017-12-11 17:50:04 +01:00
Alexandre Archambault 7ac3038d2e Switch to scala 2.12.4 2017-11-01 16:20:47 +01:00
Alexandre Archambault 24fa04d814 Update scala-native setup on Travis CI 2017-09-20 16:58:41 +02:00
Alexandre Archambault dd34d03f61 Try fixing scala-native things on CI 2017-09-10 19:02:31 +02:00
Alexandre Archambault 7d69815f64 Allow to generate native bootstraps 2017-07-08 14:32:16 +02:00
Alexandre Archambault dbd602d5a8 Really run Travis tests in Mac env
The sudo:required seems to make it switch to Linux
2017-06-06 18:01:28 +02:00
Alexandre Archambault f5ef7d8179 Add non-reg tests for Nexus proxies
Ensure everything work fine again with those (things went bad at
1.0.0-RC1, because of the use of directory listings, that may not be
exhaustive in proxies - or may be just empty, e.g. currently with nexus 3)
2017-05-31 21:19:27 +02:00
Alexandre Archambault 4daf132da7 Run sbt plugins tests in separate Travis runs 2017-05-04 15:25:49 +02:00
Alexandre Archambault b65fdf3c7b Switch to scala 2.11.11 2017-04-26 14:11:38 +02:00
Alexandre Archambault c59c7d45ca Refactor travis.sh 2017-02-27 16:18:41 +01:00
Alexandre Archambault bf92539b53 Actually, let's cache ~/.coursier on CI 2017-02-27 16:02:47 +01:00
Alexandre Archambault 164e044977 Remove deprecated env var on CI 2017-02-27 16:02:47 +01:00
Alexandre Archambault 7de033a68f Move all scripts under scripts/ 2017-02-27 16:01:02 +01:00
Alexandre Archambault e94dbc7e68 Switch to scala 2.12.1 2017-01-31 16:22:16 +01:00
Alexandre Archambault 4b3923d3e5 Add shading plugin 2017-01-31 15:46:49 +01:00
Alexandre Archambault fe529fb9f4 Switch to Java 6 2016-11-27 17:37:39 +01:00
Alexandre Archambault fc9f1e6816
Switch to 2.12.0 final 2016-11-02 20:47:31 +01:00
Alexandre Archambault 4b14215c33
Prepare build.sbt for 2.12, keep updating dependencies 2016-10-22 22:25:01 +02:00
Alexandre Archambault 4cff20b205
Move CI related scripts to .ci directory 2016-05-09 19:25:37 +02:00
Alexandre Archambault 29f8d49c83 Switch to scala 2.11.8, SBT scala-js 0.6.7 2016-03-14 16:20:20 +01:00
Erik LaBianca 38bd8a1067 Extract npm dependencies to package.json file and use it for travis
- Allows developers to init simply using `npm install`
2016-02-22 15:19:50 -05:00
Alexandre Archambault 1bf84ee3fa Run CI only on PRs and master branch 2016-02-20 16:01:46 +01:00
Alexandre Archambault a9b205e741 Remove JDK 7 CI jobs 2016-01-26 18:16:55 +01:00
Alexandre Archambault d248969f48 Enable plugin in our own build 2016-01-02 18:15:28 +01:00
Alexandre Archambault f61f71016e Let Travis publish 2.10 artifacts too 2016-01-02 13:35:34 +01:00
Alexandre Archambault 7258868eb6 Run CI on OS X
Based on PR #715 of sbt-native-packager
2015-12-19 15:26:46 +01:00
Alexandre Archambault 51cc215b88 Fix in Travis config 2015-11-21 14:23:06 +01:00
Alexandre Archambault ba94c4cb93 Switch to scala 2.10.6 2015-11-21 14:23:06 +01:00
Alexandre Archambault 2435f15376 Update build 2015-07-07 20:43:18 +02:00
Alexandre Archambault b1a3f578ac Pushing to gh-pages from Travis 2015-06-18 01:36:30 +02:00
Alexandre Archambault 92450b1876 Fix in travis script
No artifacts of coursier were pushed to sonatype because of that
2015-06-17 15:02:52 +02:00
Alexandre Archambault e53ee3ebc4 Travis config 2015-06-16 20:35:32 +02:00
Alexandre Archambault 5e25748d83 Initial commit 2015-06-16 20:32:17 +02:00