Skip to content

Commit 87d9be6

Browse files
committed
update README.md to ksp-1.4.20-dev-experimental-20210106
Also reflects that plugin-id has been changed from `symbol-processing` to `com.google.devtools.ksp` and overriding `resolutionStrategy` is no longer needed.
1 parent bea0d68 commit 87d9be6

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

README.md

+5-15
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ Here are some planned features that have not yet been implemented:
393393
<a name="try"></a>
394394
## Try it out!
395395

396-
Here's a sample processor that you can check out: https://github.com/google/ksp/releases/download/1.4.20-dev-experimental-20201222/playground-ksp-1.4.20-dev-experimental-20201222.zip
396+
Here's a sample processor that you can check out: https://github.com/google/ksp/releases/download/1.4.20-dev-experimental-20210107/playground-ksp-1.4.20-dev-experimental-20210107.zip
397397

398398
### Create a processor of your own
399399

@@ -429,7 +429,7 @@ Here's a sample processor that you can check out: https://github.com/google/ksp/
429429
}
430430
431431
dependencies {
432-
implementation("com.google.devtools.ksp:symbol-processing-api:1.4.20-dev-experimental-20201222")
432+
implementation("com.google.devtools.ksp:symbol-processing-api:1.4.20-dev-experimental-20210107")
433433
}
434434
```
435435

@@ -454,20 +454,10 @@ Here's a sample processor that you can check out: https://github.com/google/ksp/
454454
### Use your own processor in a project
455455

456456
* Create another module that contains a workload where you want to try out your processor.
457-
* In the project's `setting.gradle.kts`, override `resolutionStrategy` for the KSP plugin.
458-
This is necessary because KSP is still in preview and there is no plugin marker published yet.
457+
* In the project's `settings.gradle.kts`, add `google()` to `repositories` for the KSP plugin.
459458

460459
```
461460
pluginManagement {
462-
resolutionStrategy {
463-
eachPlugin {
464-
when (requested.id.id) {
465-
"symbol-processing" ->
466-
useModule("com.google.devtools.ksp:symbol-processing:${requested.version}")
467-
}
468-
}
469-
}
470-
471461
repositories {
472462
gradlePluginPortal()
473463
google()
@@ -476,15 +466,15 @@ Here's a sample processor that you can check out: https://github.com/google/ksp/
476466
```
477467

478468
* In the new module's `build.gradle.kts`, do the following:
479-
* Apply the `symbol-processing` plugin with the specified version.
469+
* Apply the `com.google.devtools.ksp` plugin with the specified version.
480470
* Add `ksp(<your processor>)` to the list of dependencies.
481471
* Run `./gradlew build`. You can find the generated code under
482472
`build/generated/source/ksp`.
483473
* Here's a `sample build.gradle.kts` to apply the KSP plugin to a workload.
484474

485475
```
486476
plugins {
487-
id("symbol-processing") version "1.4.20-dev-experimental-20201222"
477+
id("com.google.devtools.ksp") version "1.4.20-dev-experimental-20210107"
488478
kotlin("jvm")
489479
}
490480

0 commit comments

Comments
 (0)