-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build system changed to maven and other refactoring
1. Android example moved to a different repo 2. Replication module deprecated and removed 3. NitriteMapper api changed 4. Version upgraded to 4.2.0-SNAPSHOT
- Loading branch information
Showing
542 changed files
with
11,281 additions
and
13,323 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
#open_collective: nitrite-database | ||
github: anidotnet | ||
github: anidotnet |
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 |
---|---|---|
@@ -1,17 +1,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gradle | ||
- package-ecosystem: maven | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
target-branch: develop | ||
ignore: | ||
- dependency-name: org.objenesis:objenesis | ||
versions: | ||
- "> 2.6" | ||
target-branch: main | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
target-branch: develop | ||
target-branch: main |
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 |
---|---|---|
@@ -1,77 +1,81 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: "Build" | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
- main | ||
- develop | ||
|
||
- release | ||
paths-ignore: | ||
- "README.md" | ||
pull_request: | ||
branches: | ||
- 4.x | ||
- main | ||
- develop | ||
- release | ||
paths-ignore: | ||
- "README.md" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
java: [ '11' ] | ||
java: ['11', '17'] | ||
os: ['ubuntu-latest'] | ||
env: | ||
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} | ||
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1" | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }} | ||
GITHUB_TOKEN: ${{ secrets.NITRITE_GH_TOKEN }} | ||
name: Build with Java ${{ matrix.Java }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK ${{ matrix.Java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.Java }} | ||
java-package: jdk | ||
architecture: x64 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew clean build | ||
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} | ||
name: Build with Java ${{ matrix.java }} on ${{ matrix.os }} | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Java | ||
- name: Set up JDK ${{ matrix.java }} on ${{ matrix.os }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
java-version: '11' | ||
java-package: jdk | ||
architecture: x64 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
cache: 'maven' | ||
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
- name: Prepare PGP Keys | ||
if: github.ref == 'refs/heads/develop' | ||
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/release' | ||
run: openssl aes-256-cbc -pass pass:$PGP_KEY_PASSWORD -in ./.ci/secring.gpg.enc -out $GITHUB_WORKSPACE/secring.gpg -d -md md5 | ||
env: | ||
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} | ||
|
||
- name: Publish packages to snapshot | ||
- name: Build with Maven | ||
run: mvn -B -ff -ntp clean install | ||
|
||
- name: Deploy Snapshot | ||
if: github.ref == 'refs/heads/develop' | ||
run: ./gradlew publish -Psigning.keyId=$PGP_KEY_ID -Psigning.password=$PGP_KEY_PASSWORD -Psigning.secretKeyRingFile=$GITHUB_WORKSPACE/secring.gpg | ||
run: mvn -B -ff -ntp deploy -DskipTests | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }} | ||
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} | ||
|
||
- name: Deploy Release | ||
if: github.ref == 'refs/heads/release' | ||
run: mvn -B -ff -ntp release:clean release:prepare release:perform -DskipTests | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }} | ||
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} | ||
GITHUB_TOKEN: ${{ secrets.NITRITE_GH_TOKEN }} | ||
|
||
- name: Publish Code Coverage | ||
if: github.ref == 'refs/heads/release' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: unittests | ||
name: codecov-umbrella |
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
This file was deleted.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
tasks: | ||
- init: ./gradlew clean build | ||
- init: mvn clean install |
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,10 @@ | ||
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED | ||
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED | ||
--add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED | ||
--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED | ||
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED | ||
--add-exports jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED | ||
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED | ||
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED | ||
--add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED | ||
--add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED |
This file was deleted.
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
Oops, something went wrong.