Compare commits
10 Commits
v0.4.0
...
744abd47ff
| Author | SHA1 | Date | |
|---|---|---|---|
| 744abd47ff | |||
| 9f301337b6 | |||
| 0a401b164c | |||
| 7b08820d1a | |||
| 83995ba5fa | |||
| d586567fd6 | |||
| 3505aee124 | |||
| ee3dcda8ea | |||
| c01946fc05 | |||
| 09cb00db19 |
@@ -25,11 +25,12 @@ runs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Publish Test Report
|
- name: Publish Test Report
|
||||||
uses: dorny/test-reporter@v2
|
uses: dorny/test-reporter@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ inputs.token }}
|
|
||||||
name: ${{ inputs.report-name }}
|
name: ${{ inputs.report-name }}
|
||||||
path: "*"
|
path: "*"
|
||||||
reporter: java-junit
|
reporter: java-junit
|
||||||
only-summary: true
|
only-summary: true
|
||||||
working-directory: "junit-short"
|
working-directory: "junit-short"
|
||||||
|
use-actions-summary: true
|
||||||
|
token: ${{ inputs.token }}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: "Setup Maven with GitHub Packages"
|
name: "Setup Maven with GitHub Packages"
|
||||||
|
|
||||||
description: "Sets up JDK, caches Maven dependencies, and configures GitHub Packages for Maven repositories."
|
description: "Sets up JDK and caches Maven dependencies."
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
java-version:
|
java-version:
|
||||||
@@ -15,13 +15,13 @@ runs:
|
|||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
with:
|
||||||
distribution: ${{ inputs.java-distribution }}
|
distribution: ${{ inputs.java-distribution }}
|
||||||
java-version: ${{ inputs.java-version }}
|
java-version: ${{ inputs.java-version }}
|
||||||
|
uses: actions/setup-java@v5
|
||||||
|
|
||||||
- name: Cache Maven Repository
|
- name: Cache Maven Repository
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
|||||||
@@ -17,21 +17,15 @@ jobs:
|
|||||||
build-and-analyse:
|
build-and-analyse:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
|
|
||||||
- name: Setup Java and Maven
|
- name: Setup Java and Maven
|
||||||
uses: ./.github/actions/setup-java-maven
|
uses: ./.github/actions/setup-java-maven
|
||||||
|
|
||||||
- name: Build and analyze with SonarCloud
|
- name: Build and test
|
||||||
env:
|
run: mvn -B verify
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
CF_API_TOKEN: ${{ secrets.API_TOKEN }}
|
|
||||||
run: |
|
|
||||||
echo "Running SonarCloud analysis..."
|
|
||||||
mvn -B -DtestClasspath=src/test/ verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=th-schwarz_CloudflareDNS-java
|
|
||||||
|
|
||||||
- name: Publish Test Report
|
- name: Publish Test Report
|
||||||
uses: ./.github/actions/publish-report/
|
uses: ./.github/actions/publish-report/
|
||||||
|
|||||||
@@ -1,22 +1,12 @@
|
|||||||
# CloudflareDNS-java
|
# CloudflareDNS-java
|
||||||
|
|
||||||
[](https://ci.codeberg.org/repos/16522)
|
|
||||||
|
|
||||||
[](https://sonarcloud.io/summary/new_code?id=th-schwarz_CloudflareDNS-java)
|
|
||||||
[](https://sonarcloud.io/summary/new_code?id=th-schwarz_CloudflareDNS-java)
|
|
||||||
[](https://sonarcloud.io/summary/new_code?id=th-schwarz_CloudflareDNS-java)
|
|
||||||
[](https://sonarcloud.io/summary/new_code?id=th-schwarz_CloudflareDNS-java)
|
|
||||||
[](https://sonarcloud.io/summary/new_code?id=th-schwarz_CloudflareDNS-java)
|
|
||||||
|
|
||||||
[](https://codeberg.org/th-schwarz/CloudflareDNS-java)
|
|
||||||
|
|
||||||
## Preface
|
## Preface
|
||||||
|
|
||||||
This project provides a java client for minimalistic access to the Cloudflare API version 4, which is mainly used for
|
This project provides a java client for minimalistic access to the Cloudflare API version 4, which is mainly used for
|
||||||
managing DNS settings such as creating, updating and deleting DNS records.
|
managing DNS settings such as creating, updating and deleting DNS records.
|
||||||
|
|
||||||
If you encounter any bugs or find missing features, feel free to report them on
|
If you encounter any bugs or find missing features, feel free to report them on
|
||||||
the [Codeberg Issues page](https://codeberg.org/th-schwarz/CloudflareDNS-java/issues).
|
the [Gitea Issues page](https://git.mein-gateway.de/thischwa/CloudflareDNS-java/issues).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -28,29 +18,12 @@ This guide comes without any warranty. Use at your own risk. The author is not r
|
|||||||
|
|
||||||
## Get It
|
## Get It
|
||||||
|
|
||||||
The project has its own maven repository. It can be added to the `pom.xml`:
|
The project has its own maven repository. Follow the instructions on the latest [package](https://git.mein-gateway.de/thischwa/-/packages) to add the repository to your project.
|
||||||
|
|
||||||
```xml
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>gitea</id>
|
|
||||||
<url>https://codeberg.org/api/packages/th-schwarz/maven</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
```
|
|
||||||
|
|
||||||
The dependency is:
|
|
||||||
```xml
|
|
||||||
<dependency>
|
|
||||||
<groupId>codes.thischwa</groupId>
|
|
||||||
<artifactId>cloudflaredns</artifactId>
|
|
||||||
<version>[version]</version>
|
|
||||||
</dependency>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
- 0.4.0-SNAPSHOT:
|
- 0.4.0:
|
||||||
|
- fixed some paging issues
|
||||||
- **Breaking Change**: renamed `client.zone().record()` to `client.zone().getRecord()`
|
- **Breaking Change**: renamed `client.zone().record()` to `client.zone().getRecord()`
|
||||||
- Code quality improvements: Increasing test coverage
|
- Code quality improvements: Increasing test coverage
|
||||||
- 0.3.0:
|
- 0.3.0:
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
|
|
||||||
<groupId>codes.thischwa</groupId>
|
<groupId>codes.thischwa</groupId>
|
||||||
<artifactId>cloudflaredns</artifactId>
|
<artifactId>cloudflaredns</artifactId>
|
||||||
<version>0.4.0</version>
|
<version>0.5.0-SNAPSHOT</version>
|
||||||
<name>CloudflareDNS-java</name>
|
<name>CloudflareDNS-java</name>
|
||||||
<inceptionYear>2025</inceptionYear>
|
<inceptionYear>2025</inceptionYear>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
<url>https://codeberg.org/th-schwarz/CloudflareDNS-java/issues</url>
|
<url>https://git.mein-gateway.de/thischwa/CloudflareDNS-java/issues</url>
|
||||||
<system>Codeberg Issues</system>
|
<system>Gitea Issues</system>
|
||||||
</issueManagement>
|
</issueManagement>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -42,36 +42,27 @@
|
|||||||
<junit5.version>5.14.2</junit5.version>
|
<junit5.version>5.14.2</junit5.version>
|
||||||
<mockito-junit5.version>5.21.0</mockito-junit5.version>
|
<mockito-junit5.version>5.21.0</mockito-junit5.version>
|
||||||
|
|
||||||
<!-- sonarqube -->
|
|
||||||
<sonar.organization>th-schwarz</sonar.organization>
|
|
||||||
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
|
|
||||||
<sonar.sourceEncoding>${file.encoding}</sonar.sourceEncoding>
|
|
||||||
<sonar.projectKey>th-schwarz_CloudflareDNS-java</sonar.projectKey>
|
|
||||||
<sonar.projectName>CloudflareDNS-java</sonar.projectName>
|
|
||||||
<sonar.branch.name>develop</sonar.branch.name>
|
|
||||||
<sonar.test.exclusions>src/test/java/**/*</sonar.test.exclusions>
|
|
||||||
|
|
||||||
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
|
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<developerConnection>scm:git:git@codeberg.org:th-schwarz/CloudflareDNS-java.git</developerConnection>
|
<developerConnection>scm:git:https://git.mein-gateway.de/thischwa/CloudflareDNS-java.git</developerConnection>
|
||||||
<connection>scm:git:git@codeberg.org:th-schwarz/CloudflareDNS-java.git</connection>
|
<connection>scm:git:https://git.mein-gateway.de/thischwa/CloudflareDNS-java.git</connection>
|
||||||
<url>https://codeberg.org/th-schwarz/CloudflareDNS-java</url>
|
<url>https://git.mein-gateway.de/thischwa/CloudflareDNS-java</url>
|
||||||
<tag>v0.4.0</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>codeberg-cloudflaredns</id>
|
<id>mygitea</id>
|
||||||
<url>https://codeberg.org/api/packages/th-schwarz/maven</url>
|
<url>https://git.mein-gateway.de/api/packages/thischwa/maven</url>
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
</repository>
|
</repository>
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>codeberg-cloudflaredns</id>
|
<id>mygitea</id>
|
||||||
<url>https://codeberg.org/api/packages/th-schwarz/maven</url>
|
<url>https://git.mein-gateway.de/api/packages/thischwa/maven</url>
|
||||||
<snapshots>
|
<snapshots>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
@@ -115,7 +106,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains</groupId>
|
<groupId>org.jetbrains</groupId>
|
||||||
<artifactId>annotations</artifactId>
|
<artifactId>annotations</artifactId>
|
||||||
<version>24.0.0</version>
|
<version>24.0.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user