-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into matchSupport
- Loading branch information
Showing
31 changed files
with
560 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore for release | ||
categories: | ||
- title: Breaking Changes 🚨 | ||
labels: | ||
- breaking change | ||
- title: Exciting New Features 🎉 | ||
labels: | ||
- new feature | ||
- title: Improvements 🌱 | ||
labels: | ||
- improvement | ||
- title: Bug Fixes 🛠 | ||
labels: | ||
- bug | ||
- title: Other Changes 📚 | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Remove Label | ||
on: | ||
pull_request_target: | ||
types: [labeled] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
Remove-Label: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') | ||
name: Remove label | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Remove 'safe to test' | ||
uses: actions-ecosystem/action-remove-labels@v1 | ||
with: | ||
labels: "safe to test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
# Triggers the workflow on labeled PRs only. | ||
pull_request_target: | ||
types: [ labeled ] | ||
# Ensures that only the latest commit is running for each PR at a time. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
Tests: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push' | ||
name: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu, windows, macOS ] | ||
include: | ||
- os: windows | ||
gradlewSuffix: .bat | ||
runs-on: ${{ matrix.os }}-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.x | ||
cache: false | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Artifactory | ||
run: | | ||
go install github.com/jfrog/jfrog-testing-infra/local-rt-setup@latest | ||
~/go/bin/local-rt-setup | ||
env: | ||
RTLIC: ${{secrets.RTLIC}} | ||
GOPROXY: direct | ||
|
||
- name: Install Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "8" | ||
distribution: "temurin" | ||
|
||
- name: Run tests | ||
run: ./gradlew${{ matrix.gradlewSuffix }} clean test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
api/src/main/java/org/jfrog/artifactory/client/ArtifactoryResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
package org.jfrog.artifactory.client; | ||
|
||
import org.apache.http.Header; | ||
import org.apache.http.StatusLine; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* ArtifactoryResponse object returned from {@link Artifactory#restCall(ArtifactoryRequest)}. | ||
* acts as a wrapper for {@link org.apache.http.HttpResponse} but removes the need to handle response stream. | ||
*/ | ||
public interface ArtifactoryResponse { | ||
|
||
Header[] getAllHeaders(); | ||
|
||
StatusLine getStatusLine(); | ||
public interface ArtifactoryResponse extends BaseArtifactoryResponse { | ||
|
||
String getRawBody(); | ||
|
||
<T> T parseBody(Class<T> toType) throws IOException; | ||
|
||
boolean isSuccessResponse(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
api/src/main/java/org/jfrog/artifactory/client/ArtifactoryStreamingResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.jfrog.artifactory.client; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
|
||
/** | ||
* ArtifactoryStreamingResponse object returned from {@link Artifactory#streamingRestCall(ArtifactoryRequest)}. | ||
* acts as a wrapper for {@link org.apache.http.HttpResponse}. | ||
*/ | ||
public interface ArtifactoryStreamingResponse extends BaseArtifactoryResponse, AutoCloseable { | ||
InputStream getInputStream() throws IOException; | ||
} |
13 changes: 13 additions & 0 deletions
13
api/src/main/java/org/jfrog/artifactory/client/BaseArtifactoryResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.jfrog.artifactory.client; | ||
import org.apache.http.Header; | ||
import org.apache.http.StatusLine; | ||
|
||
public interface BaseArtifactoryResponse { | ||
|
||
Header[] getAllHeaders(); | ||
|
||
StatusLine getStatusLine(); | ||
|
||
boolean isSuccessResponse(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
.../java/org/jfrog/artifactory/client/model/repository/settings/CargoRepositorySettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.jfrog.artifactory.client.model.repository.settings; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public interface CargoRepositorySettings extends RepositorySettings { | ||
String getGitRegistryUrl(); | ||
Boolean isCargoInternalIndex(); | ||
Boolean isCargoAnonymousAccess(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
currentVersion=2.13.x-SNAPSHOT | ||
currentVersion=2.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...es/src/main/groovy/org/jfrog/artifactory/client/impl/AbstractArtifactoryResponseImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.jfrog.artifactory.client.impl; | ||
|
||
import org.apache.http.Header; | ||
import org.apache.http.HttpResponse; | ||
import org.apache.http.StatusLine; | ||
|
||
public abstract class AbstractArtifactoryResponseImpl { | ||
|
||
private final HttpResponse httpResponse; | ||
|
||
public AbstractArtifactoryResponseImpl(HttpResponse httpResponse) { | ||
this.httpResponse = httpResponse; | ||
} | ||
|
||
public HttpResponse getHttpResponse() { | ||
return httpResponse; | ||
} | ||
|
||
public Header[] getAllHeaders() { | ||
return this.httpResponse.getAllHeaders(); | ||
} | ||
|
||
public StatusLine getStatusLine() { | ||
return this.httpResponse.getStatusLine(); | ||
} | ||
|
||
} |
Oops, something went wrong.