Skip to content

Commit

Permalink
W-13897522: Revert JDK17 and Spring Boot 3
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzxu committed Aug 9, 2023
1 parent f73e04d commit ff67d36
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -68,4 +68,4 @@ jobs:
./gradlew -PdockerRepo=salesforce/ -x test build --info
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v1
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -43,4 +43,4 @@ jobs:
# with:
# image-name: salesforce/carbonj:${{ env.GRADLE_PROJECT_VERSION }}
# severity-threshold: CRITICAL
# run-quality-checks: false
# run-quality-checks: false
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
run: ./gradlew -PdockerRepo=salesforce/ clean build -Prelease.useAutomaticVersion=true -x test :carbonj.service:release --info --stacktrace
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ allprojects {
subprojects {
apply plugin: 'java'

sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 11
targetCompatibility = 11
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand All @@ -68,4 +68,4 @@ subprojects {
}


}
}
4 changes: 2 additions & 2 deletions carbonj.service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -102,4 +102,4 @@ RUN chmod +x /sbin/tini
ENTRYPOINT ["/sbin/tini", "--"]

# Run your program under Tini
CMD ["/app/bin/entrypoint.sh"]
CMD ["/app/bin/entrypoint.sh"]
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -991,4 +991,4 @@ private DataPoint toDataPoint( Metric m, String line )
p.setMetricId( m.id );
return p;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -125,4 +125,4 @@ protected void doGet( HttpServletRequest req, HttpServletResponse res )

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -152,4 +152,4 @@ protected void doGet( HttpServletRequest req, HttpServletResponse res )
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -164,4 +164,4 @@ public void setUntil( long until )
this.until = until;
}
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ff67d36

Please sign in to comment.