mirror of
https://github.com/jlengrand/atrium.git
synced 2026-03-10 08:01:19 +00:00
remove last remaining bits of bintray/jcenter
and switch installation example to kotlin-dsl
This commit is contained in:
38
README.md
38
README.md
@@ -87,20 +87,16 @@ For instance, the [README of v0.17.0-RC1](https://github.com/robstoll/atrium/tre
|
||||
# Installation
|
||||
|
||||
## JVM
|
||||
Atrium is linked to [mavenCentral](https://search.maven.org/search?q=g:ch.tutteli.atrium),
|
||||
[jcenter](https://bintray.com/bintray/jcenter?filterByPkgName=atrium)
|
||||
but can also be retrieved directly from [bintray](https://bintray.com/robstoll/tutteli-jars/atrium).
|
||||
Atrium is published to [mavenCentral](https://search.maven.org/search?q=g:ch.tutteli.atrium).
|
||||
|
||||
*gradle*:
|
||||
```
|
||||
buildscript {
|
||||
ext { atrium_version='0.17.0-RC1' }
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
val atriumVersion by extra("0.17.0-RC1")
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-fluent-en_GB:$atrium_version"
|
||||
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB:$atriumVersion")
|
||||
}
|
||||
```
|
||||
We have defined a dependency to the bundle `atrium-fluent-en_GB` in the above example
|
||||
@@ -115,7 +111,7 @@ We currently provide the following extensions for the JVM platform:
|
||||
You can enable them as follows:
|
||||
```
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3:$atrium_version"
|
||||
testImplementation("ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3:$atriumVersion")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -125,21 +121,19 @@ Also take a look at [Third-party Extensions](#third-party-extensions) which migh
|
||||
<summary>click to see how the setup for the infix API looks like</summary>
|
||||
|
||||
```
|
||||
buildscript {
|
||||
ext { atrium_version='0.17.0-RC1' }
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
val atriumVersion by extra("0.17.0-RC1")
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-infix-en_GB:$atrium_version"
|
||||
testImplementation("ch.tutteli.atrium:atrium-infix-en_GB:$atriumVersion")
|
||||
}
|
||||
```
|
||||
|
||||
And for the aforementioned extensions:
|
||||
```
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-api-infix-en_GB-kotlin_1_3:$atrium_version"
|
||||
testImplementation("ch.tutteli.atrium:atrium-api-infix-en_GB-kotlin_1_3:$atriumVersion")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -157,14 +151,12 @@ That is all, you are all set. Jump to [Examples](#examples) which shows how to u
|
||||
## JS
|
||||
|
||||
```
|
||||
buildscript {
|
||||
ext { atrium_version='0.17.0-RC1' }
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
val atriumVersion by extra("0.17.0-RC1")
|
||||
dependencies {
|
||||
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB-js:$atrium_version")
|
||||
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB-js:$atriumVersion")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -191,7 +183,7 @@ We currently provide the following extensions for the JS platform:
|
||||
You can enable them as follows:
|
||||
```
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3-js:$atrium_version"
|
||||
testImplementation("ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3-js:$atriumVersion")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -199,21 +191,19 @@ dependencies {
|
||||
<summary>click to see how the setup for the infix API looks like</summary>
|
||||
|
||||
```
|
||||
buildscript {
|
||||
ext { atrium_version='0.17.0-RC1' }
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
val atriumVersion by extra("0.17.0-RC1")
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-infix-en_GB-js:$atrium_version"
|
||||
testImplementation("ch.tutteli.atrium:atrium-infix-en_GB-js:$atriumVersion")
|
||||
}
|
||||
```
|
||||
|
||||
and for the aforementioned extensions:
|
||||
```
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-api-infix-en_GB-kotlin_1_3-js:$atrium_version"
|
||||
testImplementation("ch.tutteli.atrium:atrium-api-infix-en_GB-kotlin_1_3-js:$atriumVersion")
|
||||
}
|
||||
```
|
||||
<hr/>
|
||||
@@ -2396,7 +2386,7 @@ In order to create an own expectation verb it is sufficient to:
|
||||
Taking the setup shown in the [Installation](#installation) section for the JVM platform, you would replace the `dependencies` block as follows:
|
||||
```gradle
|
||||
dependencies {
|
||||
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB:$atrium_version") {
|
||||
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB:$atriumVersion") {
|
||||
exclude group: 'ch.tutteli.atrium', module: 'atrium-verbs'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,6 @@ kotlinutils.kotlinVersion = kotlin_version
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
configurations {
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
description = 'Runs examples, includes the code and the output in README.md'
|
||||
|
||||
repositories {
|
||||
maven { url "https://dl.bintray.com/jetbrains/spek" }
|
||||
}
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
dependencies {
|
||||
implementation "org.junit.platform:junit-platform-console-standalone:$junitPlatformVersion"
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
|
||||
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
|
||||
|
||||
<activeProfiles>
|
||||
<activeProfile>jcenter</activeProfile>
|
||||
</activeProfiles>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>bintray</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
<id>bintray-robstoll-tutteli-jars</id>
|
||||
<name>bintray</name>
|
||||
<url>https://dl.bintray.com/robstoll/tutteli-jars</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>jcenter</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>jcenter</id>
|
||||
<url>https://jcenter.bintray.com/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
</settings>
|
||||
Reference in New Issue
Block a user