Skip to content

Commit 0b11ec8

Browse files
Updates to readme (#163)
* adds kotlin setup info * update version
1 parent 51c420e commit 0b11ec8

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ workspace.
102102
Path to content hash json file. It's a map which maps
103103
relative file path from workspace path to its
104104
content hash. Files in this map will skip content
105-
hashing and use provided value
105+
hashing and use provided value
106106
-h, --help Show this help message and exit.
107107
-k, --[no-]keep_going This flag controls if `bazel query` will be executed
108108
with the `--keep_going` flag or not. Disabling this
@@ -153,9 +153,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")
153153
http_jar(
154154
name = "bazel_diff",
155155
urls = [
156-
"https://github.com/Tinder/bazel-diff/releases/download/4.0.5/bazel-diff_deploy.jar",
156+
"https://github.com/Tinder/bazel-diff/releases/download/4.3.0/bazel-diff_deploy.jar",
157157
],
158-
sha256 = "59f2a614f90b4c2a6c83f1e6146d8722dfaac3a1d8f42734dcbb6ccf373a1cbd",
159158
)
160159
```
161160

@@ -216,30 +215,33 @@ java -jar bazel-bin/src/main/java/com/bazel_diff/bazel-diff_deploy.jar # This JA
216215
Add the following to your `WORKSPACE` file to add the external repositories, replacing the `RELEASE_ARCHIVE_URL` with the archive url of the bazel-diff release you wish to depend on:
217216

218217
```bazel
219-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
218+
load("//:repositories.bzl", "bazel_diff_dependencies")
220219

221-
http_archive(
222-
name = "bazel_diff",
223-
urls = [
224-
"RELEASE_ARCHIVE_URL",
225-
],
226-
sha256 = "UPDATE_ME",
227-
strip_prefix = "UPDATE_ME"
228-
)
220+
bazel_diff_dependencies()
229221

230-
load("@bazel_diff//:repositories.bzl", "bazel_diff_dependencies")
222+
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
231223

232-
bazel_diff_dependencies()
224+
rules_proto_dependencies()
225+
226+
rules_proto_toolchains()
233227

234228
load("@rules_jvm_external//:defs.bzl", "maven_install")
235-
load("@bazel_diff//:artifacts.bzl", "BAZEL_DIFF_MAVEN_ARTIFACTS")
229+
load("//:artifacts.bzl", "BAZEL_DIFF_MAVEN_ARTIFACTS")
230+
load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
231+
232+
kotlin_repositories()
233+
234+
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
235+
236+
kt_register_toolchains()
236237

237238
maven_install(
238239
name = "bazel_diff_maven",
239240
artifacts = BAZEL_DIFF_MAVEN_ARTIFACTS,
241+
fetch_sources = True,
242+
generate_compat_repositories = True,
240243
repositories = [
241-
"http://uk.maven.org/maven2",
242-
"https://jcenter.bintray.com/",
244+
"https://repo1.maven.org/maven2/",
243245
],
244246
)
245247
```

0 commit comments

Comments
 (0)