Commit Graph

1792 Commits

Author SHA1 Message Date
Alexandre Archambault 8b6969384c Set version to 1.0.2-SNAPSHOT 2018-02-03 18:11:52 +01:00
Alexandre Archambault d36cf0c57b Updates for 1.0.1 2018-02-03 18:11:16 +01:00
Alexandre Archambault 88a842d233 Setting version to 1.0.1 2018-02-03 17:18:02 +01:00
Leonard Ehrenfried e18c4fa76c [sbt-shared] Use sbt.util.Logger instead of sbt.Logger (#764)
* Use sbt.util.Logger instead of sbt.Logger

* Bump sbt-compat, adds backport for sbt.util.Logger
2018-02-02 18:52:54 +01:00
Leonard Ehrenfried a8bdff26c5 Use released version of sbt-compat (#763) 2018-02-02 13:46:57 +01:00
Alexandre Archambault 82c0b5bf6d
Have the launcher fetch its jar from Central
Rather than Sonatype releases - the former is usually faster
2018-02-02 00:03:41 +01:00
Alexandre Archambault 886b4647d9 Update release process 2018-02-01 23:59:46 +01:00
Alexandre Archambault 05f4e76897 Set version to 1.0.1-SNAPSHOT 2018-02-01 23:57:24 +01:00
Alexandre Archambault 695c677269 Updates for 1.0.1-M1 2018-02-01 23:57:24 +01:00
Alexandre Archambault 72cdbeb70e Setting version to 1.0.1-M1 2018-02-01 23:11:19 +01:00
Yi Cheng f6ceba5b44
Add json report version and documentation (#749)
* Add version number to the json report
* Add documentation and borrow Pants' export versioning guideline: afa6a286f1/src/python/pants/backend/project_info/tasks/export.py (L49-L59)
2018-02-01 10:44:05 -08:00
Alexandre Archambault 212b5fe298
Merge pull request #762 from coursier/topic/bootstrap-artifact-types
Ensure POM files aren't added to classpath by bootstraps
2018-02-01 17:32:35 +01:00
Alexandre Archambault 8c72303ae9 Ensure POM files aren't added to classpath by bootstraps
They were when using the "isolated" classloader thing (that
https://github.com/jupyter-scala/ammonium and
https://github.com/jupyter-scala/jupyter-scala should probably be the only user of…)
2018-02-01 16:18:47 +01:00
Jon Pretty 359ebf9fe5 Added simple ZSH completions, and updated README with install details (#756)
These completions were generated by copy/pasting details from the
version 1.0.0 '--help' output, and had a small amount of human input.
The completions are by no means perfect, and there is no intelligent
completion of parameter values (except `--mode`, which was trivial).

I hope that completions prove to be useful, and can form a basis that
other users of coursier can build upon, to improve the interactivity of
the command-line client.
2018-01-31 15:29:58 +01:00
Leonard Ehrenfried 387078aa87 Import correct resolver from librarymanagement #746 2018-01-31 15:26:21 +01:00
Alexandre Archambault 954841eb93
Merge pull request #761 from coursier/topic/tweak-manual-profile-activation
Allow to deactivate Maven profiles from the CLI
2018-01-31 10:09:40 +01:00
Alexandre Archambault 14bc756b5b Allow to deactivate Maven profiles from the CLI
And add extra tests for profile deactivation
2018-01-30 17:26:07 +01:00
Alexandre Archambault 1ddfbed8a8
Merge pull request #758 from coursier/topic/move-readme
Move tut-processed README.md under doc/readme
2018-01-29 21:35:58 +01:00
Yi Cheng 849d128b90 Specify classifier on module level on CLI (#735) 2018-01-29 21:02:49 +01:00
Alexandre Archambault 5a82ba903e Move tut-processed README.md under doc/readme 2018-01-29 20:45:28 +01:00
Nick Howard 796ec19493 gitignore. Add pants files to gitignore (#751) 2018-01-25 13:01:09 -08:00
Yi Cheng 7a38d1de40
Temporarily disable nexus test to unblock master (#753)
To get around #752
2018-01-24 14:55:06 -08:00
Alexandre Archambault ef5eb90c49
Merge pull request #747 from coursier/topic/remove-deprecated-cli-options
Remove deprecated "source repository" stuff
2018-01-22 01:23:23 +01:00
Alexandre Archambault 5992c1d2d7 Remove deprecated "source repository" stuff 2018-01-21 22:28:05 +01:00
Bohdan Yavorskyi 2d5f7c3eb4 mixing urls and jars in bootstrap (#742) 2018-01-21 21:55:46 +01:00
Dale Wijnand 70fa5f13cb Update, extract & override scala versions for plugins (#730)
* Update, extract & override scala versions for plugins

* Only override crossScalaVersions in sbt-plugins

That way (hopefully) the current CI setup using ++ doesn't break. See #730
2018-01-10 17:24:16 +01:00
Dale Wijnand 1bb7742d71 Replace most of SbtCompatibility with sbt-compat (#731) 2018-01-10 15:38:48 +01:00
Alexandre Archambault 39c7708297
Merge pull request #729 from dwijnand/remove-build-load-warning
Enable reflective class in the hackaround of tweakedScriptedTask
2018-01-09 17:22:16 +01:00
Dale Wijnand 7953cc4d67
Enable reflective class in the hackaround of tweakedScriptedTask 2018-01-09 14:49:57 +00:00
Alexandre Archambault b8ca5438c9
Merge pull request #732 from coursier/topic/fix-java-6-test
Fix Java 6 test
2018-01-09 15:43:14 +01:00
Alexandre Archambault f414cf96b1 Fix Java 6 test 2018-01-09 14:32:14 +01:00
Marc Prud'hommeaux 0c6e2ae64c Added sqlline example (#727)
Added sqlline example
2018-01-03 10:08:05 +01:00
Martynas Mickevičius 085002957d Mention Archlinux package in the AUR (#726)
Mention Archlinux package in the AUR
2018-01-02 12:20:49 +01:00
Yi Cheng 5da2210d7f
Performance improvements for cli json report and minor refactoring (#724)
Major change:
* Identified hotspot in `JsonElem.hashCode` because it hashes children recursively. Hence simplified hashing scheme, reducing CPU time on `JsonReport.apply()` from 64.7 sec to 2.5 sec

Other minor changes:
* Make `JsonRequirement` use immutable classes
* Simplify `JsonRequirement` composition
2018-01-01 11:55:43 -08:00
Alexandre Archambault c8fa4638bc
Merge pull request #722 from coursier/topic/remove-sbt-launcher
Remove remaining sbt launcher stuff
2017-12-28 13:23:45 +01:00
Alexandre Archambault 0bbdcb8446 Remove remaining sbt launcher stuff 2017-12-28 11:47:04 +01:00
Alexandre Archambault c896e3867f
Merge pull request #721 from coursier/topic/remove-sbt-launcher
Remove sbt-launcher project
2017-12-28 11:45:01 +01:00
Alexandre Archambault 0002798221 Remove sbt-launcher project
Now lives in its own repo at https://github.com/coursier/sbt-launcher
2017-12-28 10:19:05 +01:00
Alexandre Archambault 52fadd5efe
Merge pull request #629 from coursier/topic/sbt-1.0
Switch build to sbt 1.0.4
2017-12-27 17:56:44 +01:00
Alexandre Archambault d3360d640d Workaround for method not found for sbt 0.13 scripted tests 2017-12-27 16:38:21 +01:00
Alexandre Archambault 948361e429 More refined, and manual, activation of scripted
Allows to do a `sbt ++2.11.11 test:compile`, without the sbt plugin
modules or scripted being an issue.
2017-12-27 16:38:21 +01:00
Alexandre Archambault 6f37e95be6 Switch to sbt 1.0.4 2017-12-27 16:38:21 +01:00
Alexandre Archambault 9df9c617be
Merge pull request #720 from coursier/topic/remove-http-server
Remove http-server module
2017-12-27 09:07:58 +01:00
Alexandre Archambault e97eaa18b5 Remove http-server module
Now has its own repo at https://github.com/coursier/http-server

Same Maven coordinates as before, `io.get-coursier:http-server_2.12`
2017-12-27 02:18:35 +01:00
Alexandre Archambault 0cba087fa0
Merge pull request #719 from coursier/topic/remove-echo
Remove echo project
2017-12-27 01:08:55 +01:00
Alexandre Archambault 3199d3ad54 Remove echo project
It now lives in its own repository at https://github.com/coursier/echo

Same Maven coordinates as before, io.get-coursier:echo
2017-12-26 23:56:02 +01:00
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
Alexandre Archambault b21042a42a
Merge pull request #715 from coursier/topic/fix-build-1.0
Update version numbers in CI scripts after 1.0.0 release
2017-12-18 12:44:40 +01:00
Alexandre Archambault 1c134dc2a6 Update test fixtures if snapshot version changes 2017-12-18 12:00:10 +01:00
Alexandre Archambault 00fd13e786 Update version numbers in CI scripts after 1.0.0 release 2017-12-18 12:00:03 +01:00