Skip to content

Commit ea896cc

Browse files
authored
Fix/rename (#21)
* Rename `cosmian_java_lib` to `cloudproof-java`
1 parent baab494 commit ea896cc

15 files changed

Lines changed: 57 additions & 26 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
release:
10+
name: release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Release
15+
uses: softprops/action-gh-release@v1

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ target/
22
dependency-reduced-pom.xml
33
hs_err_*.log
44
.bloop/
5-
project/
5+
project/
6+
.settings/org.*

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ build:
2020
- redis:latest
2121
script:
2222
- mvn package
23+
- mvn dependency:copy-dependencies
24+
- git archive --verbose --format=zip --output=${CI_PROJECT_NAME}.zip HEAD
2325
artifacts:
2426
paths:
2527
- target/*.jar
28+
- target/dependency/*.jar
29+
- ${CI_PROJECT_NAME}.zip
2630
expire_in: 3 mos
2731

2832
publish:

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"name": "Launch BinaryHeap",
1616
"request": "launch",
1717
"mainClass": "com.cosmian.rest.abe.policy.BinaryHeap",
18-
"projectName": "cosmian_java_lib"
18+
"projectName": "cloudproof_java"
1919
}
2020
]
21-
}
21+
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
---
6+
## [0.11.1]
7+
### Added
8+
### Changed
9+
- Rename `cosmian_java_lib` to `cloudproof_java`
10+
### Fixed
11+
### Removed
12+
513
---
614
## [0.11.0]
715
### Added

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
# Cosmian Java Lib
1+
# Cloudproof Java Library
22

3-
![workflow](https://github.com/Cosmian/cosmian_java_lib/actions/workflows/maven.yml/badge.svg)
3+
![workflow](https://github.com/Cosmian/cloudproof_java/actions/workflows/maven.yml/badge.svg)
44

5-
The library provides a Java friendly API to the [Cosmian Ubiquitous Encryption platform](https://cosmian.com),
6-
the CloudProof product in particular.
5+
The Cloudproof Java library provides a Java friendly API to the [Cosmian Cloudproof Encryption product](https://docs.cosmian.com/cloudproof_encryption/use_cases_benefits/).
76

7+
In summary, Cloudproof Encryption product secures data repositories in the cloud with attributes-based access control encryption and encrypted search.
88

99
## Getting started
1010

1111

12-
Please [check the online documentation](https://docs.cosmian.com/cloudproof_encryption/use_cases_benefits/) for details
13-
on using the CloudProof APIs
12+
Please [check the online documentation](https://docs.cosmian.com/cloudproof_encryption/use_cases_benefits/) for details on using the CloudProof APIs
1413

1514

1615
In addition, please have a look at the following tests for implementation examples:
@@ -20,7 +19,7 @@ In addition, please have a look at the following tests for implementation exampl
2019
- [TestGpsw](./src/test/java/com/cosmian/TestAbe.java) for using the ABE GPSW scheme with Cosmian KMS
2120
- [TestFfiGpsw](./src/test/java/com/cosmian/TestFfiAbe.java) for using the ABE GPSW scheme with the local native library
2221
- [TestKmip](./src/test/java/com/cosmian/TestKmip.java) for using the KMIP 2.1 interface with the Cosmian KMS
23-
- [TestFfiFindex](./src/test/java/com/cosmian/TestFfiAbe.java) for using the SSE Findex scheme with the local native library
22+
- [TestFfiFindex](./src/test/java/com/cosmian/TestFfiFindex.java) for using the SSE Findex scheme with the local native library
2423

2524

2625
## Using in Java projects
@@ -30,8 +29,8 @@ This library free software and is available on Maven Central
3029
```xml
3130
<dependency>
3231
<groupId>com.cosmian</groupId>
33-
<artifactId>cosmian_java_lib</artifactId>
34-
<version>0.11.0</version>
32+
<artifactId>cloudproof_java</artifactId>
33+
<version>0.11.1</version>
3534
</dependency>
3635
```
3736

@@ -59,9 +58,13 @@ KMS Server | Java Lib | GPSW lib | CoverCrypt lib | Findex
5958

6059
## Update native libraries
6160

62-
The Cosmian Java lib uses JNA to access functions of the 2 native shared libraries `CoverCrypt` and `ABE GPSW`.
61+
The Cloudproof Java lib uses JNA to access functions of 3 native shared libraries:
62+
- `CoverCrypt`
63+
- `ABE GPSW`
64+
- `Findex`
6365

64-
On Linux, those 2 libraries must be found in 1 of these folders:
66+
67+
On Linux, those libraries must be found in 1 of these folders:
6568
- src/resources/linux-x86-64
6669
- src/test/resources/linux-x86-64
6770

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.cosmian</groupId>
5-
<artifactId>cosmian_java_lib</artifactId>
6-
<version>0.11.0</version>
5+
<artifactId>cloudproof_java</artifactId>
6+
<version>0.11.1</version>
77

8-
<name>cosmian_java_lib</name>
9-
<description>The Cosmian Java Lib provides local encryption/decyption and access to the Cosmian public platform APIs</description>
10-
<url>https://github.com/Cosmian/cosmian_java_lib</url>
8+
<name>cloudproof_java</name>
9+
<description>The Cloudproof Java Lib secures data repositories in the cloud with attributes-based access control encryption and encrypted search</description>
10+
<url>https://github.com/Cosmian/cloudproof_java</url>
1111
<licenses>
1212
<license>
1313
<name>MIT</name>
@@ -16,9 +16,9 @@
1616
</license>
1717
</licenses>
1818
<scm>
19-
<url>https://github.com/Cosmian/cosmian_java_lib</url>
20-
<connection>scm:git:https://github.com/Cosmian/cosmian_java_lib.git</connection>
21-
<developerConnection>scm:git:git@github.com:Cosmian/cosmian_java_lib.git</developerConnection>
19+
<url>https://github.com/Cosmian/cloudproof_java</url>
20+
<connection>scm:git:https://github.com/Cosmian/cloudproof_java.git</connection>
21+
<developerConnection>scm:git:git@github.com:Cosmian/cloudproof_java.git</developerConnection>
2222
</scm>
2323
<developers>
2424
<developer>

src/test/java/com/cosmian/TestFfiCoverCrypt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
public class TestFfiCoverCrypt {
3939
static final Implementation abeImplementation = Implementation.CoverCrypt;
4040

41-
static final FfiWrapper INSTANCE = (FfiWrapper) Native.load("cover_crypt", FfiWrapper.class);
41+
static final FfiWrapper INSTANCE = (FfiWrapper) Native.load("cosmian_cover_crypt", FfiWrapper.class);
4242

4343
static final Ffi ffi = new Ffi(INSTANCE, new Specifications(abeImplementation));
4444

src/test/java/com/cosmian/TestFfiGpsw.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class TestFfiGpsw {
3939

4040
static final Implementation abeImplementation = Implementation.GPSW;
4141

42-
static final FfiWrapper INSTANCE = (FfiWrapper) Native.load("abe_gpsw", FfiWrapper.class);
42+
static final FfiWrapper INSTANCE = (FfiWrapper) Native.load("cosmian_abe_gpsw", FfiWrapper.class);
4343

4444
static final Ffi ffi = new Ffi(INSTANCE, new Specifications(abeImplementation));
4545

1.05 MB
Binary file not shown.

0 commit comments

Comments
 (0)