|
1 | 1 | # clarity
|
2 | 2 |
|
3 |
| -Comically fast, almost complete Dota 2 "demo" (aka "replay") parser written in java. |
| 3 | +Comically fast, almost complete Dota 2 "demo" (aka "replay") parser written in java. |
| 4 | + |
| 5 | +### Note |
| 6 | + |
| 7 | +This is the README for version 1 of the library, so you might wanna check out |
| 8 | +[version 2](https://github.com/skadistats/clarity). |
| 9 | + |
| 10 | +### Upgrading from an earlier 1.x |
| 11 | +The protobuf-classes used by clarity have been factored out into a separate project, to make reuse among |
| 12 | +v1 and v2 possible. While doing that I also moved them to another package, so when you want to move to 1.2 |
| 13 | +you might have to adjust a lot of imports. A global search and replace from `com.dota2.proto.` to |
| 14 | +`skadistats.clarity.wire.proto.` on your whole project should do the trick. |
4 | 15 |
|
5 | 16 | # Replay Data
|
6 | 17 |
|
@@ -63,37 +74,7 @@ To use the stable version, add the following dependency in your pom.xml, and you
|
63 | 74 | <dependency>
|
64 | 75 | <groupId>com.skadistats</groupId>
|
65 | 76 | <artifactId>clarity</artifactId>
|
66 |
| - <version>1.1</version> |
67 |
| -</dependency> |
68 |
| -``` |
69 |
| - |
70 |
| -There is also the possibility to use the bleeding edge, which I try to keep in sync with the Git-Repo. |
71 |
| -However, this latest snapshot is not available in Maven Central, so you got to add a pointer to the |
72 |
| -repository to your pom.xml (see the [pom.xml of clarity-examples](https://github.com/skadistats/clarity-examples/blob/v1/pom.xml), which already does that) |
73 |
| - |
74 |
| -To add the snapshot repository, add the following: |
75 |
| -```XML |
76 |
| -<repositories> |
77 |
| - <repository> |
78 |
| - <id>sonatype.oss.snapshots</id> |
79 |
| - <name>Sonatype OSS Snapshot Repository</name> |
80 |
| - <url>http://oss.sonatype.org/content/repositories/snapshots</url> |
81 |
| - <releases> |
82 |
| - <enabled>false</enabled> |
83 |
| - </releases> |
84 |
| - <snapshots> |
85 |
| - <enabled>true</enabled> |
86 |
| - </snapshots> |
87 |
| - </repository> |
88 |
| -</repositories> |
89 |
| -``` |
90 |
| - |
91 |
| -and then fetch the dependency with: |
92 |
| -```XML |
93 |
| -<dependency> |
94 |
| - <groupId>com.skadistats</groupId> |
95 |
| - <artifactId>clarity</artifactId> |
96 |
| - <version>1.2-SNAPSHOT</version> |
| 77 | + <version>1.2</version> |
97 | 78 | </dependency>
|
98 | 79 | ```
|
99 | 80 |
|
|
0 commit comments