Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
#122 Fix sql script release upload (#125)
Browse files Browse the repository at this point in the history
* #122 Fix uploading of sql scripts

* Increment version, upgrade dependencies

* Add language to release droid config
  • Loading branch information
kaklakariada authored Aug 11, 2022
1 parent 3efb2dd commit 0d78e96
Show file tree
Hide file tree
Showing 12 changed files with 250 additions and 149 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
strategy:
fail-fast: false
matrix:
docker_db_version: [ 7.0.18, 7.1.9 ]
docker_db_version: [ 7.0.19, 7.1.12 ]
env:
DEFAULT_DB_VERSION: "7.1.9"
DEFAULT_DB_VERSION: "7.1.12"
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -37,11 +37,12 @@ jobs:
restore-keys: ${{ runner.os }}-sonar
- name: Enable testcontainer reuse
run: echo 'testcontainers.reuse.enable=true' > "$HOME/.testcontainers.properties"
- name: Run tests and build with Maven
- name: Run tests and build with Maven and Exasol ${{ matrix.docker_db_version }}
run: |
mvn --batch-mode clean verify \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DtrimStackTrace=false
-DtrimStackTrace=false \
-Dcom.exasol.dockerdb.image=${{ matrix.docker_db_version }}
- name: Publish Test Report
uses: scacap/action-surefire-report@v1
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ jobs:
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.inputs.upload_url }}
asset_path: target/error_code_report.json
asset_path: target/error_code_report.json
- name: Upload SQL assets to the GitHub release draft
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.inputs.upload_url }}
asset_path: target/*.sql
1 change: 1 addition & 0 deletions .project-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ linkReplacements:
- "LICENSE-exasol-jdbc.txt|https://docs.exasol.com/db/latest/connect_exasol/drivers/jdbc.htm#License"
excludes:
- "E-PK-CORE-18: Outdated content: '.github/workflows/ci-build.yml'"
- "E-PK-CORE-18: Outdated content: '.github/workflows/release_droid_upload_github_release_assets.yml'"
- "E-PK-CORE-18: Outdated content: 'src/assembly/all-dependencies.xml'"
181 changes: 96 additions & 85 deletions dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,103 +6,114 @@
| Dependency | License |
| ------------------------------------------ | ---------------------- |
| [Exasol Database fundamentals for Java][0] | [MIT][1] |
| [Exasol Virtual Schema][2] | [MIT][1] |
| [Exasol Virtual Schema][2] | [MIT License][3] |
| [EXASolution JDBC Driver][4] | [EXAClient License][5] |
| [error-reporting-java][6] | [MIT][1] |
| [Project Lombok][8] | [The MIT License][9] |
| [Project Lombok][7] | [The MIT License][8] |

## Test Dependencies

| Dependency | License |
| ----------------------------------------------- | --------------------------------- |
| [Test containers for Exasol on Docker][10] | [MIT][1] |
| [Testcontainers :: JUnit Jupiter Extension][12] | [MIT][13] |
| [Hamcrest][14] | [BSD License 3][15] |
| [Matcher for SQL Result Sets][16] | [MIT][1] |
| [JUnit Jupiter (Aggregator)][18] | [Eclipse Public License v2.0][19] |
| [mockito-junit-jupiter][20] | [The MIT License][21] |
| [SLF4J JDK14 Binding][22] | [MIT License][23] |
| [Test Database Builder for Java][24] | [MIT License][25] |
| [EqualsVerifier | release normal jar][26] | [Apache License, Version 2.0][27] |
| [JaCoCo :: Agent][28] | [Eclipse Public License 2.0][29] |
| [udf-debugging-java][30] | [MIT][1] |
| [Test containers for Exasol on Docker][9] | [MIT][1] |
| [Testcontainers :: JUnit Jupiter Extension][10] | [MIT][11] |
| [Hamcrest][12] | [BSD License 3][13] |
| [Matcher for SQL Result Sets][14] | [MIT][1] |
| [JUnit Jupiter (Aggregator)][15] | [Eclipse Public License v2.0][16] |
| [JUnit Jupiter API][15] | [Eclipse Public License v2.0][16] |
| [mockito-junit-jupiter][17] | [The MIT License][18] |
| [SLF4J JDK14 Binding][19] | [MIT License][20] |
| [Test Database Builder for Java][21] | [MIT License][22] |
| [EqualsVerifier | release normal jar][23] | [Apache License, Version 2.0][24] |
| [JaCoCo :: Agent][25] | [Eclipse Public License 2.0][26] |
| [udf-debugging-java][27] | [MIT][1] |

## Plugin Dependencies

| Dependency | License |
| ------------------------------------------------------- | ---------------------------------------------- |
| [SonarQube Scanner for Maven][32] | [GNU LGPL 3][33] |
| [Project keeper maven plugin][34] | [The MIT License][35] |
| [Apache Maven Compiler Plugin][36] | [Apache License, Version 2.0][27] |
| [Apache Maven Enforcer Plugin][38] | [Apache License, Version 2.0][27] |
| [Maven Flatten Plugin][40] | [Apache Software Licenese][41] |
| [org.sonatype.ossindex.maven:ossindex-maven-plugin][42] | [ASL2][41] |
| [Reproducible Build Maven Plugin][44] | [Apache 2.0][41] |
| [Maven Surefire Plugin][46] | [Apache License, Version 2.0][27] |
| [Versions Maven Plugin][48] | [Apache License, Version 2.0][27] |
| [Apache Maven Assembly Plugin][50] | [Apache License, Version 2.0][27] |
| [Apache Maven JAR Plugin][52] | [Apache License, Version 2.0][27] |
| [Artifact reference checker and unifier][54] | [MIT][1] |
| [Apache Maven Dependency Plugin][56] | [Apache License, Version 2.0][27] |
| [Lombok Maven Plugin][58] | [The MIT License][1] |
| [Maven Failsafe Plugin][60] | [Apache License, Version 2.0][27] |
| [JaCoCo :: Maven Plugin][62] | [Eclipse Public License 2.0][29] |
| [error-code-crawler-maven-plugin][64] | [MIT][1] |
| [Maven Clean Plugin][66] | [The Apache Software License, Version 2.0][41] |
| [Maven Resources Plugin][68] | [The Apache Software License, Version 2.0][41] |
| [Maven Install Plugin][70] | [The Apache Software License, Version 2.0][41] |
| [Maven Deploy Plugin][72] | [The Apache Software License, Version 2.0][41] |
| [Maven Site Plugin 3][74] | [The Apache Software License, Version 2.0][41] |
| [SonarQube Scanner for Maven][28] | [GNU LGPL 3][29] |
| [Apache Maven Compiler Plugin][30] | [Apache License, Version 2.0][24] |
| [Apache Maven Enforcer Plugin][31] | [Apache License, Version 2.0][24] |
| [Maven Flatten Plugin][32] | [Apache Software Licenese][33] |
| [org.sonatype.ossindex.maven:ossindex-maven-plugin][34] | [ASL2][33] |
| [Maven Surefire Plugin][35] | [Apache License, Version 2.0][24] |
| [Versions Maven Plugin][36] | [Apache License, Version 2.0][24] |
| [Apache Maven Assembly Plugin][37] | [Apache License, Version 2.0][24] |
| [Apache Maven JAR Plugin][38] | [Apache License, Version 2.0][24] |
| [Artifact reference checker and unifier][39] | [MIT][1] |
| [Apache Maven Dependency Plugin][40] | [Apache License, Version 2.0][24] |
| [Lombok Maven Plugin][41] | [The MIT License][1] |
| [Project keeper maven plugin][42] | [The MIT License][43] |
| [Exec Maven Plugin][44] | [Apache License 2][33] |
| [OpenFastTrace Maven Plugin][45] | [GNU General Public License v3.0][46] |
| [Build Helper Maven Plugin][47] | [The MIT License][48] |
| [Maven Failsafe Plugin][49] | [Apache License, Version 2.0][24] |
| [JaCoCo :: Maven Plugin][50] | [Eclipse Public License 2.0][26] |
| [error-code-crawler-maven-plugin][51] | [MIT License][52] |
| [Reproducible Build Maven Plugin][53] | [Apache 2.0][33] |
| [Maven Clean Plugin][54] | [The Apache Software License, Version 2.0][33] |
| [Maven Resources Plugin][55] | [The Apache Software License, Version 2.0][33] |
| [Maven Install Plugin][56] | [The Apache Software License, Version 2.0][33] |
| [Maven Deploy Plugin][57] | [The Apache Software License, Version 2.0][33] |
| [Maven Site Plugin 3][58] | [The Apache Software License, Version 2.0][33] |

[28]: https://www.eclemma.org/jacoco/index.html
[6]: https://github.com/exasol/error-reporting-java
[41]: http://www.apache.org/licenses/LICENSE-2.0.txt
[8]: https://projectlombok.org
[46]: https://maven.apache.org/surefire/maven-surefire-plugin/
[66]: http://maven.apache.org/plugins/maven-clean-plugin/
[1]: https://opensource.org/licenses/MIT
[20]: https://github.com/mockito/mockito
[40]: https://www.mojohaus.org/flatten-maven-plugin/
[34]: https://github.com/exasol/project-keeper/
[48]: http://www.mojohaus.org/versions-maven-plugin/
[15]: http://opensource.org/licenses/BSD-3-Clause
[36]: https://maven.apache.org/plugins/maven-compiler-plugin/
[25]: https://github.com/exasol/test-db-builder-java/blob/main/LICENSE
[29]: https://www.eclipse.org/legal/epl-2.0/
[33]: http://www.gnu.org/licenses/lgpl.txt
[2]: https://github.com/exasol/exasol-virtual-schema
[62]: https://www.jacoco.org/jacoco/trunk/doc/maven.html
[21]: https://github.com/mockito/mockito/blob/main/LICENSE
[9]: https://projectlombok.org/LICENSE
[16]: https://github.com/exasol/hamcrest-resultset-matcher
[44]: http://zlika.github.io/reproducible-build-maven-plugin
[23]: http://www.opensource.org/licenses/mit-license.php
[32]: http://sonarsource.github.io/sonar-scanner-maven/
[30]: https://github.com/exasol/udf-debugging-java/
[18]: https://junit.org/junit5/
[14]: http://hamcrest.org/JavaHamcrest/
[22]: http://www.slf4j.org
[68]: http://maven.apache.org/plugins/maven-resources-plugin/
[54]: https://github.com/exasol/artifact-reference-checker-maven-plugin
[52]: https://maven.apache.org/plugins/maven-jar-plugin/
[0]: https://github.com/exasol/db-fundamentals-java
[24]: https://github.com/exasol/test-db-builder-java/
[60]: https://maven.apache.org/surefire/maven-failsafe-plugin/
[13]: http://opensource.org/licenses/MIT
[5]: https://docs.exasol.com/db/latest/connect_exasol/drivers/jdbc.htm#License
[10]: https://github.com/exasol/exasol-testcontainers
[35]: https://github.com/exasol/project-keeper/blob/main/LICENSE
[56]: https://maven.apache.org/plugins/maven-dependency-plugin/
[27]: https://www.apache.org/licenses/LICENSE-2.0.txt
[26]: https://www.jqno.nl/equalsverifier
[38]: https://maven.apache.org/enforcer/maven-enforcer-plugin/
[1]: https://opensource.org/licenses/MIT
[2]: https://github.com/exasol/exasol-virtual-schema/
[3]: https://github.com/exasol/exasol-virtual-schema/blob/main/LICENSE
[4]: http://www.exasol.com
[19]: https://www.eclipse.org/legal/epl-v20.html
[70]: http://maven.apache.org/plugins/maven-install-plugin/
[42]: https://sonatype.github.io/ossindex-maven/maven-plugin/
[12]: https://testcontainers.org
[58]: https://anthonywhitford.com/lombok.maven/lombok-maven-plugin/
[72]: http://maven.apache.org/plugins/maven-deploy-plugin/
[74]: http://maven.apache.org/plugins/maven-site-plugin/
[64]: https://github.com/exasol/error-code-crawler-maven-plugin
[50]: https://maven.apache.org/plugins/maven-assembly-plugin/
[5]: https://docs.exasol.com/db/latest/connect_exasol/drivers/jdbc.htm#License
[6]: https://github.com/exasol/error-reporting-java
[7]: https://projectlombok.org
[8]: https://projectlombok.org/LICENSE
[9]: https://github.com/exasol/exasol-testcontainers
[10]: https://testcontainers.org
[11]: http://opensource.org/licenses/MIT
[12]: http://hamcrest.org/JavaHamcrest/
[13]: http://opensource.org/licenses/BSD-3-Clause
[14]: https://github.com/exasol/hamcrest-resultset-matcher
[15]: https://junit.org/junit5/
[16]: https://www.eclipse.org/legal/epl-v20.html
[17]: https://github.com/mockito/mockito
[18]: https://github.com/mockito/mockito/blob/main/LICENSE
[19]: http://www.slf4j.org
[20]: http://www.opensource.org/licenses/mit-license.php
[21]: https://github.com/exasol/test-db-builder-java/
[22]: https://github.com/exasol/test-db-builder-java/blob/main/LICENSE
[23]: https://www.jqno.nl/equalsverifier
[24]: https://www.apache.org/licenses/LICENSE-2.0.txt
[25]: https://www.eclemma.org/jacoco/index.html
[26]: https://www.eclipse.org/legal/epl-2.0/
[27]: https://github.com/exasol/udf-debugging-java/
[28]: http://sonarsource.github.io/sonar-scanner-maven/
[29]: http://www.gnu.org/licenses/lgpl.txt
[30]: https://maven.apache.org/plugins/maven-compiler-plugin/
[31]: https://maven.apache.org/enforcer/maven-enforcer-plugin/
[32]: https://www.mojohaus.org/flatten-maven-plugin/
[33]: http://www.apache.org/licenses/LICENSE-2.0.txt
[34]: https://sonatype.github.io/ossindex-maven/maven-plugin/
[35]: https://maven.apache.org/surefire/maven-surefire-plugin/
[36]: http://www.mojohaus.org/versions-maven-plugin/
[37]: https://maven.apache.org/plugins/maven-assembly-plugin/
[38]: https://maven.apache.org/plugins/maven-jar-plugin/
[39]: https://github.com/exasol/artifact-reference-checker-maven-plugin
[40]: https://maven.apache.org/plugins/maven-dependency-plugin/
[41]: https://anthonywhitford.com/lombok.maven/lombok-maven-plugin/
[42]: https://github.com/exasol/project-keeper/
[43]: https://github.com/exasol/project-keeper/blob/main/LICENSE
[44]: http://www.mojohaus.org/exec-maven-plugin
[45]: https://github.com/itsallcode/openfasttrace-maven-plugin
[46]: https://www.gnu.org/licenses/gpl-3.0.html
[47]: http://www.mojohaus.org/build-helper-maven-plugin/
[48]: https://opensource.org/licenses/mit-license.php
[49]: https://maven.apache.org/surefire/maven-failsafe-plugin/
[50]: https://www.jacoco.org/jacoco/trunk/doc/maven.html
[51]: https://github.com/exasol/error-code-crawler-maven-plugin/
[52]: https://github.com/exasol/error-code-crawler-maven-plugin/blob/main/LICENSE
[53]: http://zlika.github.io/reproducible-build-maven-plugin
[54]: http://maven.apache.org/plugins/maven-clean-plugin/
[55]: http://maven.apache.org/plugins/maven-resources-plugin/
[56]: http://maven.apache.org/plugins/maven-install-plugin/
[57]: http://maven.apache.org/plugins/maven-deploy-plugin/
[58]: http://maven.apache.org/plugins/maven-site-plugin/
1 change: 1 addition & 0 deletions doc/changes/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changes

* [3.0.5](changes_3.0.5.md)
* [3.0.4](changes_3.0.4.md)
* [3.0.3](changes_3.0.3.md)
* [3.0.2](changes_3.0.2.md)
Expand Down
36 changes: 36 additions & 0 deletions doc/changes/changes_3.0.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Exasol Row Level Security 3.0.5, released 2022-08-11

Code name: Administration SQL scripts

## Summary

This release fixes uploading of the Administration SQL script to the GitHub release.

## Features

* #122: Fixed uploading of SQL script

## Dependency Updates

### Compile Dependency Updates

* Updated `com.exasol:exasol-virtual-schema:6.0.2` to `6.0.3`

### Test Dependency Updates

* Updated `com.exasol:test-db-builder-java:3.3.3` to `3.3.4`
* Updated `com.exasol:udf-debugging-java:0.6.2` to `0.6.4`
* Updated `nl.jqno.equalsverifier:equalsverifier:3.10` to `3.10.1`
* Added `org.junit.jupiter:junit-jupiter-api:5.9.0`
* Updated `org.junit.jupiter:junit-jupiter:5.8.2` to `5.9.0`
* Updated `org.testcontainers:junit-jupiter:1.17.2` to `1.17.3`

### Plugin Dependency Updates

* Updated `com.exasol:error-code-crawler-maven-plugin:1.1.1` to `1.1.2`
* Updated `com.exasol:project-keeper-maven-plugin:2.4.6` to `2.6.1`
* Updated `org.apache.maven.plugins:maven-compiler-plugin:3.8.1` to `3.10.1`
* Updated `org.apache.maven.plugins:maven-enforcer-plugin:3.0.0` to `3.1.0`
* Added `org.codehaus.mojo:build-helper-maven-plugin:3.2.0`
* Added `org.codehaus.mojo:exec-maven-plugin:3.0.0`
* Added `org.itsallcode:openfasttrace-maven-plugin:1.5.0`
2 changes: 1 addition & 1 deletion doc/user_guide/administration.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ The SQL statement below creates the adapter script, defines the Java class that
```sql
CREATE OR REPLACE JAVA ADAPTER SCRIPT RLS_SCHEMA.RLS_VS_ADAPTER AS
%scriptclass com.exasol.adapter.RequestDispatcher;
%jar /buckets/<BFS service>/<bucket>/row-level-security-dist-3.0.4.jar;
%jar /buckets/<BFS service>/<bucket>/row-level-security-dist-3.0.5.jar;
/
;
```
Expand Down
2 changes: 1 addition & 1 deletion doc/user_guide/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ CREATE SCHEMA RLS_VSADAPTER_SCHEMA;

CREATE OR REPLACE JAVA ADAPTER SCRIPT RLS_VSADAPTER_SCHEMA.RLS_VSADAPTER AS
%scriptclass com.exasol.adapter.RequestDispatcher;
%jar /buckets/bfsdefault/jars/row-level-security-dist-3.0.4.jar;
%jar /buckets/bfsdefault/jars/row-level-security-dist-3.0.5.jar;
/
;

Expand Down
Loading

0 comments on commit 0d78e96

Please sign in to comment.