Skip to content

Commit b146335

Browse files
committed
Make project OSGi compatible
refs #36
1 parent fa7b7ce commit b146335

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* add `unsecureRandom()` constructor which creates random for e.g. tests or deterministic randoms
66
* adds overwrite method to Bytes (thx @JadePaukkunen)
7+
* make project OSGi compatible #36
78

89
## v1.0.0
910

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,35 @@ readOnlyBytes.byteBuffer();
616616
readOnlyBytes.inputStream();
617617
```
618618

619+
## Download
620+
621+
The artifacts are deployed to [jcenter](https://bintray.com/bintray/jcenter) and [Maven Central](https://search.maven.org/).
622+
623+
### Maven
624+
625+
Add the dependency of the [latest version](https://github.com/patrickfav/bytes/releases) to your `pom.xml`:
626+
627+
<dependency>
628+
<groupId>at.favre.lib</groupId>
629+
<artifactId>bytes</artifactId>
630+
<version>{latest-version}</version>
631+
</dependency>
632+
633+
### Gradle
634+
635+
Add to your `build.gradle` module dependencies:
636+
637+
implementation group: 'at.favre.lib', name: 'bytes', version: '{latest-version}'
638+
639+
### Local Jar Library
640+
641+
[Grab jar from latest release.](https://github.com/patrickfav/bytes/releases/latest)
642+
643+
### OSGi
644+
645+
The library should be prepared to be used with the OSGi framework with the help of the [bundle plugin](http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html).
646+
647+
619648
## Digital Signatures
620649

621650
### Signed Jar

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>at.favre.lib</groupId>
88
<artifactId>bytes</artifactId>
99
<version>1.1.0</version>
10-
<packaging>jar</packaging>
10+
<packaging>bundle</packaging>
1111

1212
<name>Bytes Utility Library</name>
1313
<description>Bytes is a utility library that makes it easy to create, parse, transform, validate and convert byte
@@ -37,6 +37,12 @@
3737

3838
<build>
3939
<plugins>
40+
<plugin>
41+
<groupId>org.apache.felix</groupId>
42+
<artifactId>maven-bundle-plugin</artifactId>
43+
<version>4.2.0</version>
44+
<extensions>true</extensions>
45+
</plugin>
4046
<plugin>
4147
<groupId>org.apache.maven.plugins</groupId>
4248
<artifactId>maven-checkstyle-plugin</artifactId>

0 commit comments

Comments
 (0)