Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
phzietsman committed Sep 5, 2024
0 parents commit 8b0e2f6
Show file tree
Hide file tree
Showing 21 changed files with 1,169 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/release.yml
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
39 changes: 39 additions & 0 deletions .gitignore
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
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions .mvn/modernizer/violations-production-code-only.xml
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."&lt;init&gt;":([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."&lt;init&gt;":()V</name>
<version>1.1</version>
<comment>Prefer new Configuration(false)</comment>
</violation>
</modernizer>
50 changes: 50 additions & 0 deletions .mvn/modernizer/violations.xml
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."&lt;init&gt;":([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."&lt;init&gt;":()V</name>
<version>1.1</version>
<comment>Prefer new Configuration(false)</comment>
</violation>
</modernizer>
Loading

0 comments on commit 8b0e2f6

Please sign in to comment.