Skip to content

Commit

Permalink
Merge branch 'master' into OkHttp-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Dec 31, 2024
2 parents 6f39d9a + fed29a2 commit a0fdb92
Show file tree
Hide file tree
Showing 410 changed files with 9,655 additions and 5,975 deletions.
19 changes: 19 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"image": "mcr.microsoft.com/devcontainers/java:21-bookworm",
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "17"
}
},
"customizations": {
"vscode": {
"settings": {
"java.server.launchMode": "Standard"
},
"extensions": [
"vscjava.vscode-java-pack",
"vscjava.vscode-gradle"
]
}
}
}
40 changes: 25 additions & 15 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,50 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:recommended",
":dependencyDashboard",
"schedule:weekly"
],
"labels": ["renovate"],
"labels": [
"renovate"
],
"ignoreDeps": [
"com.squareup.okhttp3:okhttp",
"com.squareup.okhttp3:okhttp-tls",
"com.squareup.okhttp3:mockwebserver"
],
"packageRules": [
{
"matchPackageNames": ["org.objenesis:objenesis"],
"groupName": "bnd",
"matchPackageNames": [
"/biz.*/"
]
},
{
"groupName": "graalvm",
"matchPackageNames": [
"/org.graalvm.*/"
]
},
{
"matchPackageNames": [
"org.objenesis:objenesis"
],
"allowedVersions": "<=2.6"
},
{
"matchPackageNames": ["org.eclipse.jetty:jetty-client"],
"matchPackageNames": [
"org.eclipse.jetty:jetty-client"
],
"allowedVersions": "<10.0",
"description": "JDK 11 requirement"
},
{
"matchPackageNames": ["org.junit-pioneer:junit-pioneer"],
"matchPackageNames": [
"org.junit-pioneer:junit-pioneer"
],
"allowedVersions": "<2.0.0",
"description": "JDK 11 requirement"
},
{
"matchPackageNames": ["gradle"],
"allowedVersions": "<8.0",
"description": "Recent release, not compatible with pinned AGP and Kotlin versions yet. Wait for AGP 8?"
},
{
"matchPackageNames": ["com.android.tools.build:gradle"],
"allowedVersions": "<7.4",
"description": "Recent release, no compatible Intellij stable release (2023.1)"
}
]
}
71 changes: 43 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Upload Artifacts
run: ./gradlew clean publish --stacktrace
Expand All @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/wrapper-validation@v4
- name: Validate Renovate
uses: rinchsan/[email protected]
with:
Expand Down Expand Up @@ -78,8 +78,17 @@ jobs:
distribution: 'zulu'
java-version: 17

- uses: graalvm/setup-graalvm@v1
with:
distribution: 'graalvm'
java-version: 21
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'gradle'
native-image-job-reports: true
components: 'native-image'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew check -PandroidBuild=true -PgraalBuild=true -x test -x test
Expand Down Expand Up @@ -108,14 +117,14 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dtest.java.version=11

- name: Publish Test Report
if: github.repository == 'square/okhttp' && github.ref == 'refs/heads/master'
uses: mikepenz/action-junit-report@v4
uses: mikepenz/action-junit-report@v5
with:
report_paths: '**/build/test-results/*/TEST-*.xml'
check_name: OpenJDK 11 Test Report
Expand Down Expand Up @@ -150,7 +159,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dtest.java.version=11
Expand Down Expand Up @@ -178,7 +187,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dtest.java.version=8
Expand Down Expand Up @@ -212,7 +221,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dtest.java.version=8 -Dokhttp.platform=jdk8alpn -Dalpn.boot.version=8.1.13.v20181017 -Dorg.gradle.java.installations.paths=/opt/hostedtoolcache/Java_Adopt_jdk/8.0.242-8.1/x64
Expand Down Expand Up @@ -240,7 +249,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dtest.java.version=8 -Dokhttp.platform=openjsse
Expand Down Expand Up @@ -268,7 +277,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dokhttp.platform=conscrypt
Expand Down Expand Up @@ -296,7 +305,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dokhttp.platform=bouncycastle
Expand Down Expand Up @@ -325,7 +334,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dokhttp.platform=corretto
Expand Down Expand Up @@ -354,7 +363,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dtest.java.version=17
Expand Down Expand Up @@ -389,7 +398,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dtest.java.version=21
Expand Down Expand Up @@ -418,7 +427,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Test
run: ./gradlew test
Expand Down Expand Up @@ -446,20 +455,26 @@ jobs:
distribution: 'zulu'
java-version: 17

- uses: graalvm/setup-graalvm@v1
with:
distribution: 'graalvm'
java-version: 21
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'gradle'
native-image-job-reports: true
components: 'native-image'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Build okcurl
run: ./gradlew okcurl:nativeImage
run: ./gradlew okcurl:nativeBuild

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Build ConsoleLauncher
run: ./gradlew -PgraalBuild=true native-image-tests:nativeImage

- name: Run Checks
run: ./native-image-tests/build/graal/ConsoleLauncher
- name: Run native-image tests
run: ./gradlew -PgraalBuild=true native-image-tests:nativeTest

testandroid:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -500,10 +515,10 @@ jobs:
sudo udevadm trigger --name-match=kvm
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Gradle cache
run: ./gradlew -PandroidBuild=true :okhttp-android:test
run: ./gradlew -PandroidBuild=true :android-test:test

- name: AVD cache
uses: actions/cache@v4
Expand All @@ -530,7 +545,7 @@ jobs:
with:
api-level: ${{ matrix.api-level }}
arch: ${{ matrix.api-level == '34' && 'x86_64' || 'x86' }}
script: ./gradlew -PandroidBuild=true :okhttp-android:connectedCheck :android-test:connectedCheck
script: ./gradlew -PandroidBuild=true :android-test:connectedCheck
env:
API_LEVEL: ${{ matrix.api-level }}

Expand Down Expand Up @@ -572,7 +587,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Checks
run: ./gradlew test -Dokhttp.platform=loom -Dtest.java.version=21 -PcontainerTests=true
Expand Down Expand Up @@ -616,7 +631,7 @@ jobs:
sudo udevadm trigger --name-match=kvm
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: AVD cache
uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: Run Container Tests
run: ./gradlew container-tests:test -PcontainerTests=true
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}
Loading

0 comments on commit a0fdb92

Please sign in to comment.