Skip to content

Commit

Permalink
Switch to jakarta xml stuff for simpler Java 11+ compatibility
Browse files Browse the repository at this point in the history
The api remains identical, except the places where javax.xml stuff was exposed
	   They now use the jakarta.xml names
Bump all dependencies to latest versions, also build environment
Added Cyclode DX SBOM
  • Loading branch information
a-schild committed Sep 29, 2023
1 parent 13ebe52 commit 7a2c9c7
Show file tree
Hide file tree
Showing 16 changed files with 215 additions and 108 deletions.
12 changes: 12 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# Changelog for nextcloud api
## Version 13
- 2023-09-29
- Release 13.0.0
-- Switch to jakarta xml stuff for simpler Java 11+ compatibility
-- The api remains identical, except the places where javax.xml stuff was exposed
They now use the jakarta.xml names
-- Bump all dependencies to latest versions, also build environment
-- Added Cyclode DX SBOM

## Version 12
- 2023-09-29
- Release 12.0.5, added bearer authentication for non-webdav calls (Thanks to Arnout Engelen)
- 2022-11-29
Expand All @@ -18,6 +28,8 @@
- The getQuota() method now returns an Optional<Long>, to handle the case
when no quota is set at all (Allowing unlimited storage)
Thanks @kriszman for the patches

## Version 11
- 2021-10-13
- Prepare 11.7.0-SNAPSHOT
- Fix downloadFolder() when having special chars in folder name(s)
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ Java api library to access nextcloud features from java applications
- Management of groups
- Folder management (Without access control)
- List shares and create new file shares (No way to delete/update shares atm.)
- Tested against nextCloud 23.0.2 server version, but should also work with older nextCloud and ownCloud systems
- Tested against nextCloud 27.0.1 server version, but should also work with older nextCloud and ownCloud systems

## Usage
- Add this dependency to your pom.xml file
```
<dependency>
<groupId>com.github.a-schild</groupId>
<artifactId>nextcloud-java-api</artifactId>
<version>12.0.5</version>
<version>13.0.0</version>
</dependency>
```

- The 13.x versions are now using the jakarta.xml binding stuff, to prevent problems with Java 11+
No API changes have been made in v13, but at some places the XML stuff is exposed
Which made it necessary to bump the major version number
- Create a NextcloudConnector instance and provide your server settings and authentification
- Now you can use the methods exposed to access your nextcloud instance

Expand Down
2 changes: 1 addition & 1 deletion nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Any value defined here will override the pom.xml file value but is only applicab
-->
<netbeans.hint.license>gpl30</netbeans.hint.license>
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
<netbeans.hint.jdkPlatform>JDK_1.8</netbeans.hint.jdkPlatform>
<netbeans.hint.jdkPlatform>JDK_1.8_ZULU</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
Loading

0 comments on commit 7a2c9c7

Please sign in to comment.