Fixes for remote contracts (#1554)

* Make contractsDslDir return null if neither directory exists at task configuration time

* Fixup docs type and make the wording a little more clear

* Allow username to be null for ls-remote command.

* Rework git commit id discovery to handle multiple uri schemes as well as fixing the bug with the MapProperty becoming finalized on first read and then not being able to further edit it (eg: in order to add git.commit)
This commit is contained in:
Shannon Pamperl
2020-11-10 01:20:33 -06:00
committed by GitHub
parent 45abd4ab3e
commit eb66dca930
3 changed files with 70 additions and 40 deletions

View File

@@ -103,8 +103,8 @@ contracts {
To get started with writing contracts in Kotlin, you need to start with a (newly created) Kotlin Script file (`.kts`).
As with the Java DSL, you can put your contracts in any directory of your choice.
By default, the Maven plugin looks at `src/test/resources/contracts` and Gradle plugins look at the
`src/contractTest/resources/contracts` directory.
By default, the Maven plugin will look at the `src/test/resources/contracts` directory and Gradle plugin will
look at the `src/contractTest/resources/contracts` directory.
NOTE: Since 3.0.0, the Gradle plugin will also look at the legacy
directory `src/test/resources/contracts` for migration purposes. When contracts are found in this directory, a warning