Skip to content

Commit

Permalink
Updated readme for version 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jk1 committed Feb 6, 2015
1 parent 5c83d08 commit 8aedadd
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,28 @@ dependencies {
// archive traversal is available with '!' symbol
compile tc('bt345:0.10.195:kotlin-compiler-0.10.195.zip!/kotlinc/build.txt')
}
```
TeamCity dependency description consist of the following components: build type id, build number aka version, and artifact path. Artifact path should be relative to build artifacts root in TC build.

// use TeamCity version aliases to declare snapshot-like dependencies
###Changing dependencies

Plugin supports TeamCity's build version placeholders:

```groovy
dependencies {
compile tc('bt351:lastFinished:plugin-verifier.jar')
compile tc('bt345:lastPinned:internal/kotlin-test-data.zip')
compile tc('bt337:lastSuccessful:odata4j.zip')
}
```
TeamCity dependency description consist of the following components: build type id, build number aka version, and artifact path. Artifact path should be relative to build artifacts root in TC build.
these dependencies are handles as Gradle's 'changing dependencies'. That means Gradle will discard cached version every 24 hours and try to download the files once again. One can control caching period as follows:

```groovy
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
```

###Pinning the build

Expand Down

0 comments on commit 8aedadd

Please sign in to comment.