-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8b0e2f6
Showing
21 changed files
with
1,169 additions
and
0 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,70 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 22 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '22' | ||
distribution: 'adopt' | ||
|
||
- name: Set up Maven | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '22' | ||
distribution: 'adopt' | ||
cache: 'maven' | ||
|
||
# - name: Install Maven 3.9.9 | ||
# run: | | ||
# wget https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz | ||
# tar -xzf apache-maven-3.9.9-bin.tar.gz | ||
# sudo mv apache-maven-3.9.9 /opt/maven | ||
# sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn | ||
|
||
- name: Verify POM | ||
run: mvn com.github.ekryd.sortpom:sortpom-maven-plugin:4.0.0:verify | ||
|
||
- name: Build with Maven | ||
run: mvn clean package dependency:copy-dependencies -DskipTests -DincludeScope=runtime | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Zip required files | ||
run: | | ||
mkdir -p target/archive | ||
cp target/dependency/*.jar target/archive/ | ||
cp target/trino-event-logger*.jar target/archive/ | ||
cd target/archive | ||
zip -r ../package.zip . | ||
- name: Upload ZIP file | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/package.zip | ||
asset_name: package.zip | ||
asset_content_type: application/zip |
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,39 @@ | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea/modules.xml | ||
.idea/jarRepositories.xml | ||
.idea/compiler.xml | ||
.idea/libraries/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store | ||
pom.xml.bak |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0"?> | ||
<modernizer> | ||
<violation> | ||
<name>java/lang/Class.newInstance:()Ljava/lang/Object;</name> | ||
<version>1.1</version> | ||
<comment>Prefer Class.getConstructor().newInstance()</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>java/lang/String."<init>":([B)V</name> | ||
<version>1.1</version> | ||
<comment>Prefer new String(byte[], Charset)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>java/lang/String.getBytes:()[B</name> | ||
<version>1.1</version> | ||
<comment>Prefer String.getBytes(Charset)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>java/lang/String.toLowerCase:()Ljava/lang/String;</name> | ||
<version>1.1</version> | ||
<comment>Prefer String.toLowerCase(java.util.Locale)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>com/google/common/primitives/Ints.checkedCast:(J)I</name> | ||
<version>1.8</version> | ||
<comment>Prefer Math.toIntExact(long)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>org/testng/Assert.assertEquals:(Ljava/lang/Iterable;Ljava/lang/Iterable;)V</name> | ||
<version>1.8</version> | ||
<comment>Use io.prestosql.testing.assertions.Assert.assertEquals due to TestNG #543</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>org/testng/Assert.assertEquals:(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/String;)V</name> | ||
<version>1.8</version> | ||
<comment>Use io.prestosql.testing.assertions.Assert.assertEquals due to TestNG #543</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>org/apache/hadoop/conf/Configuration."<init>":()V</name> | ||
<version>1.1</version> | ||
<comment>Prefer new Configuration(false)</comment> | ||
</violation> | ||
</modernizer> |
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,50 @@ | ||
<?xml version="1.0"?> | ||
<modernizer> | ||
<violation> | ||
<name>java/lang/Class.newInstance:()Ljava/lang/Object;</name> | ||
<version>1.1</version> | ||
<comment>Prefer Class.getConstructor().newInstance()</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>java/lang/String."<init>":([B)V</name> | ||
<version>1.1</version> | ||
<comment>Prefer new String(byte[], Charset)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>java/lang/String.getBytes:()[B</name> | ||
<version>1.1</version> | ||
<comment>Prefer String.getBytes(Charset)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>java/lang/String.toLowerCase:()Ljava/lang/String;</name> | ||
<version>1.1</version> | ||
<comment>Prefer String.toLowerCase(java.util.Locale)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>com/google/common/primitives/Ints.checkedCast:(J)I</name> | ||
<version>1.8</version> | ||
<comment>Prefer Math.toIntExact(long)</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>org/testng/Assert.assertEquals:(Ljava/lang/Iterable;Ljava/lang/Iterable;)V</name> | ||
<version>1.8</version> | ||
<comment>Use io.prestosql.testing.assertions.Assert.assertEquals due to TestNG #543</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>org/testng/Assert.assertEquals:(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/String;)V</name> | ||
<version>1.8</version> | ||
<comment>Use io.prestosql.testing.assertions.Assert.assertEquals due to TestNG #543</comment> | ||
</violation> | ||
|
||
<violation> | ||
<name>org/apache/hadoop/conf/Configuration."<init>":()V</name> | ||
<version>1.1</version> | ||
<comment>Prefer new Configuration(false)</comment> | ||
</violation> | ||
</modernizer> |
Oops, something went wrong.