File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,12 @@ A diff tool for maven artifacts written using the [Ktor](https://ktor.io) client
7
7
Execute this command in a sample directory:
8
8
9
9
``` bash
10
- ./gradlew run --args=" 1.6.8 2.2.2 <Optional repo url, default https://repo.maven.apache.org/maven2/io/ktor> "
10
+ ./gradlew run --args=" 1.6.8 2.2.2"
11
11
```
12
+
13
+ * ` 1.6.8 ` and ` 2.2.2 ` are the versions of the Maven artifact to compare.
14
+ * By default, the repository URL is https://repo.maven.apache.org/maven2/io/ktor .
15
+ If you want to use a repository other than the default, provide it explicitly as the third argument:
16
+ ``` bash
17
+ ./gradlew run --args=" 2.3.13 3.0.0 https://oss.sonatype.org/content/repositories/releases/io/ktor"
18
+ ```
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fun main(args: Array<String>) = runBlocking {
18
18
val firstVersion = args[0 ]
19
19
val secondVersion = args[1 ]
20
20
21
- val repo = if (args.size > 2 ) args[3 ] else DEFAULT_REPO
21
+ val repo = if (args.size > 2 ) args[2 ] else DEFAULT_REPO
22
22
23
23
println (" Fetching diff for $repo $firstVersion -> $secondVersion " )
24
24
You can’t perform that action at this time.
0 commit comments