Commit Graph

2022 Commits

Author SHA1 Message Date
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
Alexandre Archambault bee3a368c3 Add release notes for 1.0.0-RC14 and 1.0.0. 2017-12-14 22:55:58 +00:00
Alexandre Archambault 272aece8ba Setting version to 1.0.1-SNAPSHOT 2017-12-14 13:13:49 +00:00
Alexandre Archambault 384f7ecc47
Updates for 1.0.0 2017-12-14 12:50:01 +00:00
Alexandre Archambault b8aa0aadde Setting version to 1.0.0 2017-12-14 12:07:23 +00:00
Yi Cheng 7dd739e923
Merge pull request #713 from wisechengyi/patch-1
Fix typo in doc
2017-12-12 10:53:14 -08:00
Alexandre Archambault 196b530bae Setting version to 1.0.0-SNAPSHOT 2017-12-12 02:12:09 +01:00
Alexandre Archambault cbf3ff5558
Updates for 1.0.0-RC14 2017-12-12 02:05:09 +01:00
Alexandre Archambault b86b80c3d8 Setting version to 1.0.0-RC14 2017-12-12 01:39:52 +01:00
Yi Cheng 3c634d3fa8
Fix typo in doc 2017-12-11 09:22:33 -08:00
Alexandre Archambault 617fe5cc3d
Merge pull request #712 from coursier/topic/update-report-exclusions
Write exclusions and transitiveness in sbt update reports, add sbt-shared module
2017-12-11 17:50:27 +01:00
Yi Cheng 1296459de3 Add Pants build tool (#709) 2017-12-11 17:50:04 +01:00
Alexandre Archambault ee9c61393c Move FromSbt / ToSbt helpers to separate module 2017-12-11 10:07:04 +01:00
Alexandre Archambault 930ac74dd8
Merge pull request #711 from coursier/topic/proper-cache
Incur less IO via more careful use of Def.task / taskDyn
2017-12-11 01:29:05 +01:00
Alexandre Archambault 97a137b0bb Write exclusions and transitiveness in sbt update reports
Makes it unnecessary to add a jboss repository for plugins in some
cases, like when using sbt-assembly
2017-12-11 01:25:49 +01:00
Alexandre Archambault c384797744 Incur less IO via more careful use of Def.task / taskDyn
Previousy, even when the update report was found in the in-memory cache,
some IO was still incurred because of the coursierArtifacts key, which
was evaluated in all cases. This PR makes sure it is not evaluated when
the update report is found in cache.
2017-12-11 00:36:35 +01:00
Tobi Akomolede AKA Mocuto da7fd6585f Fix for: Coursier not resilient to changing local ivy cache directory #665 (#705)
* https://github.com/coursier/coursier/issues/665
2017-12-06 18:20:57 +01:00
Alexandre Archambault 4ea6b9673f
Merge pull request #708 from coursier/topic/bump-directories
Switch to latest directories master
2017-12-05 11:19:38 +01:00
Alexandre Archambault 09ecaa489f Switch to latest directories master 2017-12-04 17:48:10 +01:00
Alexandre Archambault a532d545a2
Merge pull request #706 from coursier/topic/fallback-version
More careful handling of extenstion / type with snapshot versioning
2017-12-04 17:46:21 +01:00
Alexandre Archambault 03f7cbb42d More careful handling of extenstion / type with snapshot versioning 2017-12-04 13:39:40 +01:00