-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from xenit-eu/master
Release 2.1.0
- Loading branch information
Showing
57 changed files
with
739 additions
and
453 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,64 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
ORG_GRADLE_PROJECT_alfresco_nexus_username: ${{ secrets.ALFRESCO_NEXUS_USERNAME }} | ||
ORG_GRADLE_PROJECT_alfresco_nexus_password: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Test | ||
run: ./gradlew test | ||
- name: Upload analysis to sonarcloud | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: ./gradlew sonarqube | ||
integration-test: | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.base_ref, 'master') || startswith(github.ref, 'refs/heads/release') }} | ||
strategy: | ||
matrix: | ||
flavour: [ "community", "enterprise" ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Test | ||
run: ./gradlew integrationTest -P${{ matrix.flavour }} | ||
env: | ||
ORG_GRADLE_PROJECT_xenit_docker_registry_url: ${{ secrets.XENIT_DOCKER_REGISTRY_URL }} | ||
ORG_GRADLE_PROJECT_xenit_docker_registry_username: ${{ secrets.XENIT_DOCKER_REGISTRY_USERNAME }} | ||
ORG_GRADLE_PROJECT_xenit_docker_registry_password: ${{ secrets.XENIT_DOCKER_REGISTRY_PASSWORD }} | ||
publish: | ||
needs: [test, integration-test] | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.ref, 'refs/heads/master') || startswith(github.ref, 'refs/heads/release') }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Publish | ||
env: | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }} | ||
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
run: ./gradlew publish -PsigningKeyId=CDE3528F |
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 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
7 changes: 7 additions & 0 deletions
7
alfresco-dynamic-extensions-repo/alfresco-dynamic-extensions-repo-70/module.properties
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,7 @@ | ||
module.id = ${project.parent.name} | ||
module.version = ${project.version.replace('-SNAPSHOT','')} | ||
module.title = Dynamic Extensions for Alfresco ${project.ext.simpleAlfrescoVersion} | ||
module.description = Dynamic Extensions for Alfresco module package | ||
|
||
module.repo.version.min=7.0.0 | ||
module.repo.version.max=7.0.99 |
14 changes: 14 additions & 0 deletions
14
...t/java/com/github/dynamicextensionsalfresco/webscripts/ExceptionHandlerAbstractClass.java
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,14 @@ | ||
package com.github.dynamicextensionsalfresco.webscripts; | ||
|
||
import com.github.dynamicextensionsalfresco.webscripts.annotations.ExceptionHandler; | ||
|
||
public abstract class ExceptionHandlerAbstractClass { | ||
|
||
IndexOutOfBoundsException indexOutOfBoundsException; | ||
|
||
@ExceptionHandler(IndexOutOfBoundsException.class) | ||
protected void handleIndexOutOfBoundsException(final IndexOutOfBoundsException e) { | ||
indexOutOfBoundsException = e; | ||
} | ||
|
||
} |
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
14 changes: 14 additions & 0 deletions
14
.../test/java/com/github/dynamicextensionsalfresco/webscripts/ExceptionHandlerInterface.java
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,14 @@ | ||
package com.github.dynamicextensionsalfresco.webscripts; | ||
|
||
import static org.junit.Assert.assertNotNull; | ||
|
||
import com.github.dynamicextensionsalfresco.webscripts.annotations.ExceptionHandler; | ||
|
||
public interface ExceptionHandlerInterface { | ||
|
||
@ExceptionHandler(UnsupportedOperationException.class) | ||
default void handleUnsupportedOperationException(final UnsupportedOperationException ignore) { | ||
assertNotNull(ignore); | ||
} | ||
|
||
} |
Oops, something went wrong.