Skip to content

Commit e5fcfc1

Browse files
Merge pull request #533 from JordanMartinez/jitpackToReadme
Jitpack to readme
2 parents 4bc7299 + 27b8747 commit e5fcfc1

1 file changed

Lines changed: 57 additions & 11 deletions

File tree

README.md

Lines changed: 57 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RichTextFX
33

44
RichTextFX provides a memory-efficient text area for JavaFX that allows the developer to style ranges of text, display custom objects in-line (no more HTMLEditor), and override the default behavior only where necessary without overriding any other part of the behavior.
55

6-
It does not follow the MVC paradigm as this prevented access to view-specific API (e.g., getting the bounds of the caret/selection/characters, scrolling by some amount, .
6+
It does not follow the MVC paradigm as this prevented access to view-specific API (e.g., getting the bounds of the caret/selection/characters, scrolling by some amount, etc.).
77

88
It is intended as a base for rich-text editors and code editors with syntax highlighting. Since it is a base, a number of suggested features (specific syntax highlighters, search-and-replace, specific support for hyperlinks, etc.) will not be implemented directly in this project. Rather, developers can implement these on top of RichTextFX and submit their work as a PR to the `richtextfx-demos` package.
99

@@ -27,6 +27,7 @@ For a greater explanation of RichTextFX, its design principles, how it works, an
2727
* [Stable](#stable-release)
2828
* [Milestone](#milestone-release)
2929
* [Snapshot](#snapshot-releases)
30+
* [Custom via Jitpack](#custom-via-jitpack)
3031
* API Documentation (Javadoc)
3132
- [0.6.10](http://fxmisc.github.io/richtext/javadoc/0.6.10/org/fxmisc/richtext/package-summary.html)
3233
- [0.7-M5](http://fxmisc.github.io/richtext/javadoc/0.7-M5/org/fxmisc/richtext/package-summary.html)
@@ -37,15 +38,15 @@ For a greater explanation of RichTextFX, its design principles, how it works, an
3738
Who uses RichTextFX?
3839
--------------------
3940

40-
[Kappa IDE](https://bitbucket.org/TomasMikula/kappaide/)
41-
[Squirrel SQL client](http://www.squirrelsql.org/) (its JavaFX version)
42-
[mqtt-spy](http://kamilfb.github.io/mqtt-spy/)
43-
[Alt.Text](http://alttexting.com/)
44-
[Xanthic](https://github.com/jrguenther/Xanthic)
45-
[Arduino Harp](https://www.youtube.com/watch?v=rv5raLcsPNs)
46-
[Markdown Writer FX](https://github.com/JFormDesigner/markdown-writer-fx)
47-
[OmniEditor](https://github.com/giancosta86/OmniEditor), which is then used by [Chronos IDE](https://github.com/giancosta86/Chronos-IDE)
48-
[JuliarFuture](https://juliar.org)
41+
[Kappa IDE](https://bitbucket.org/TomasMikula/kappaide/)
42+
[Squirrel SQL client](http://www.squirrelsql.org/) (its JavaFX version)
43+
[mqtt-spy](http://kamilfb.github.io/mqtt-spy/)
44+
[Alt.Text](http://alttexting.com/)
45+
[Xanthic](https://github.com/jrguenther/Xanthic)
46+
[Arduino Harp](https://www.youtube.com/watch?v=rv5raLcsPNs)
47+
[Markdown Writer FX](https://github.com/JFormDesigner/markdown-writer-fx)
48+
[OmniEditor](https://github.com/giancosta86/OmniEditor), which is then used by [Chronos IDE](https://github.com/giancosta86/Chronos-IDE)
49+
[JuliarFuture](https://juliar.org)
4950

5051
If you use RichTextFX in an interesting project, I would like to know!
5152

@@ -296,7 +297,7 @@ Snapshot releases are deployed to Sonatype snapshot repository.
296297
```groovy
297298
repositories {
298299
maven {
299-
url 'https://oss.sonatype.org/content/repositories/snapshots/'
300+
url 'https://oss.sonatype.org/content/repositories/snapshots/'
300301
}
301302
}
302303
@@ -313,6 +314,51 @@ resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repos
313314
libraryDependencies += "org.fxmisc.richtext" % "richtextfx" % "1.0.0-SNAPSHOT"
314315
```
315316

317+
### Custom Via Jitpack
318+
319+
In the following examples, the version is either a commit (via its short hash) or a tag.
320+
321+
#### Maven
322+
323+
Add the repository
324+
````xml
325+
<repositories>
326+
<repository>
327+
<id>jitpack.io</id>
328+
<url>https://jitpack.io</url>
329+
</repository>
330+
</repositories>
331+
````
332+
333+
Add the dependency
334+
````xml
335+
<dependency>
336+
<groupId>com.github.TomasMikula</groupId>
337+
<artifactId>RichTextFX</artifactId>
338+
<version>commitOrTag</version>
339+
</dependency>
340+
````
341+
342+
#### Gradle example
343+
````groovy
344+
repositories {
345+
maven {
346+
url 'https://jitpack.io'
347+
}
348+
}
349+
350+
dependencies {
351+
compile "com.github.TomasMikula:RichTextFX:commitOrTag"
352+
}
353+
````
354+
355+
#### Sbt example
356+
357+
```scala
358+
resolvers += "jitpack" at "https://jitpack.io"
359+
360+
libraryDependencies += "com.github.TomasMikula" % "RichTextFX" % "commitOrTag"
361+
```
316362

317363
License
318364
-------

0 commit comments

Comments
 (0)