Skip to content

Commit

Permalink
refactor: add jdk8 compile check
Browse files Browse the repository at this point in the history
Signed-off-by: moxiaoying <[email protected]>
  • Loading branch information
CennyMo committed Feb 15, 2025
1 parent 34f0294 commit ebde091
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/java8_compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2024 OpenFacade Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: java8 compile
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
java8_compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: compile
run: mvn -B clean package -Dmaven.test.skip=true
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class InnerHttpClient {

public InnerHttpClient(Configuration conf) {
HttpClientConfig.Builder clientConfigBuilder = new HttpClientConfig.Builder();
clientConfigBuilder.engine(HttpClientEngine.JAVA);
clientConfigBuilder.engine(HttpClientEngine.Java);
if (conf.tlsEnabled) {
TlsConfig.Builder tlsConfigBuilder = new TlsConfig.Builder();
io.github.protocol.pulsar.admin.api.TlsConfig tlsConfig = conf.tlsConfig;
Expand Down

0 comments on commit ebde091

Please sign in to comment.