Skip to content

Commit 4470b9f

Browse files
authored
Revise dependency instructions for JitPack usage
Updated Maven and Gradle instructions to use JitPack and the latest version of JavaFastPFor.
1 parent 1d79fc2 commit 4470b9f

File tree

1 file changed

+44
-10
lines changed

1 file changed

+44
-10
lines changed

README.md

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,31 +72,65 @@ non-vectorized implementation. For an example usage, see
7272
examples/vector/Example.java. The feature requires JDK 19+ and is currently for
7373
advanced users.
7474

75-
Maven central repository
75+
JitPack
7676
------------------------
7777

78+
1. **Maven**
79+
7880
Using this code in your own project is easy with maven, just add
7981
the following code in your pom.xml file:
8082

8183
```xml
82-
<dependencies>
83-
<dependency>
84-
<groupId>me.lemire.integercompression</groupId>
85-
<artifactId>JavaFastPFOR</artifactId>
86-
<version>[0.2,)</version>
87-
</dependency>
88-
</dependencies>
84+
<dependency>
85+
<groupId>com.github.fast-pack</groupId>
86+
<artifactId>JavaFastPFor</artifactId>
87+
<version>JavaFastPFOR-0.3.0</version>
88+
</dependency>
89+
```
90+
91+
as well as jitpack as a repository...
92+
93+
```xml
94+
<repositories>
95+
<repository>
96+
<id>jitpack.io</id>
97+
<url>https://jitpack.io</url>
98+
</repository>
99+
</repositories>
89100
```
90101

91102
Naturally, you should replace "version" by the version
92103
you desire.
93104

94105

106+
2. **Gradle (groovy)**
107+
108+
109+
Then all you need is to edit your `build.gradle` file like so:
110+
95111

96-
You can also download JavaFastPFOR from the Maven central repository:
97-
http://repo1.maven.org/maven2/me/lemire/integercompression/JavaFastPFOR/
112+
```groovy
113+
plugins {
114+
id 'java'
115+
}
98116
99117
118+
repositories {
119+
mavenCentral()
120+
maven {
121+
url 'https://jitpack.io'
122+
}
123+
}
124+
125+
dependencies {
126+
implementation 'com.github.fast-pack:JavaFastPFor:JavaFastPFOR-0.3.0'
127+
}
128+
```
129+
130+
131+
Naturally, you should replace "version" by the version
132+
you desire.
133+
100134
Why?
101135
----
102136

0 commit comments

Comments
 (0)