diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d2a2a1a8..b2556af1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -49,7 +49,7 @@ jobs: - name: Setup Java JDK uses: actions/setup-java@v2 with: - java-version: 17 + java-version: 11 distribution: 'zulu' # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). @@ -68,4 +68,4 @@ jobs: ./gradlew -PdockerRepo=salesforce/ -x test build --info - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 \ No newline at end of file + uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 07eb57a1..7d9564a3 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -13,7 +13,7 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'zulu' - java-version: 17 + java-version: 11 - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Log into registry @@ -43,4 +43,4 @@ jobs: # with: # image-name: salesforce/carbonj:${{ env.GRADLE_PROJECT_VERSION }} # severity-threshold: CRITICAL - # run-quality-checks: false \ No newline at end of file + # run-quality-checks: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 242f0781..56369715 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: - name: Set up JDK 1.11 uses: actions/setup-java@v2 with: - java-version: 17 + java-version: 11 distribution: 'zulu' - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -27,4 +27,4 @@ jobs: - name: Release with Gradle env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./gradlew -PdockerRepo=salesforce/ clean build -Prelease.useAutomaticVersion=true -x test :carbonj.service:release --info --stacktrace \ No newline at end of file + run: ./gradlew -PdockerRepo=salesforce/ clean build -Prelease.useAutomaticVersion=true -x test :carbonj.service:release --info --stacktrace diff --git a/build.gradle b/build.gradle index 4a5440c3..47f8be09 100644 --- a/build.gradle +++ b/build.gradle @@ -43,8 +43,8 @@ allprojects { subprojects { apply plugin: 'java' - sourceCompatibility = 17 - targetCompatibility = 17 + sourceCompatibility = 11 + targetCompatibility = 11 tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } @@ -68,4 +68,4 @@ subprojects { } -} \ No newline at end of file +} diff --git a/carbonj.service/Dockerfile b/carbonj.service/Dockerfile index 72f1444e..08b32005 100644 --- a/carbonj.service/Dockerfile +++ b/carbonj.service/Dockerfile @@ -28,7 +28,7 @@ RUN yum install -y gcc-c++ gcc make libtool automake autoconf make python3-devel RUN rpm --import http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems && \ yum install -y https://cdn.azul.com/zulu/bin/zulu-repo-1.0.0-1.noarch.rpm && \ yum update -y && \ - yum install -y zulu17-jdk \ + yum install -y zulu11 \ python3 \ perl-URI-Encode \ perl-Data-Dumper && \ @@ -102,4 +102,4 @@ RUN chmod +x /sbin/tini ENTRYPOINT ["/sbin/tini", "--"] # Run your program under Tini -CMD ["/app/bin/entrypoint.sh"] \ No newline at end of file +CMD ["/app/bin/entrypoint.sh"] diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/admin/CarbonjAdmin.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/admin/CarbonjAdmin.java index 4477c11a..39cdd020 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/admin/CarbonjAdmin.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/admin/CarbonjAdmin.java @@ -31,8 +31,8 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; -import jakarta.servlet.ServletInputStream; -import jakarta.servlet.http.HttpServletRequest; +import javax.servlet.ServletInputStream; +import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.io.Writer; import java.nio.charset.Charset; @@ -991,4 +991,4 @@ private DataPoint toDataPoint( Metric m, String line ) p.setMetricId( m.id ); return p; } -} \ No newline at end of file +} diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteMetricSearchServlet.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteMetricSearchServlet.java index 00f3537d..13538b77 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteMetricSearchServlet.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteMetricSearchServlet.java @@ -10,11 +10,11 @@ import java.util.ArrayList; import java.util.List; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import com.demandware.carbonj.service.events.EventsLogger; import com.demandware.carbonj.service.db.TimeSeriesStore; @@ -125,4 +125,4 @@ protected void doGet( HttpServletRequest req, HttpServletResponse res ) } -} \ No newline at end of file +} diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataServlet.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataServlet.java index c308b971..f56753bf 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataServlet.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataServlet.java @@ -9,11 +9,11 @@ import java.io.IOException; import java.util.List; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import com.demandware.carbonj.service.events.EventsLogger; import com.demandware.carbonj.service.db.TimeSeriesStore; @@ -152,4 +152,4 @@ protected void doGet( HttpServletRequest req, HttpServletResponse res ) } } -} \ No newline at end of file +} diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataTestServlet.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataTestServlet.java index 0cdcacea..76d624d7 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataTestServlet.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/GraphiteSeriesDataTestServlet.java @@ -17,11 +17,11 @@ import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -164,4 +164,4 @@ public void setUntil( long until ) this.until = until; } } -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties index ab048a77..3c1e9cd2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,4 +2,4 @@ version=1.1.40-SNAPSHOT org.gradle.jvmargs=--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED org.gradle.daemon=true ccGradlePluginVersion=3.0.3 -springbootVersion=3.0.2 +springbootVersion=2.7.14