-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RLN-16: update to work with Gradle 7 (#22)
* RLN-16: update to work with Gradle 7 * Update src/main/groovy/jp/co/soramitsu/devops/SoraPlugin.groovy Co-authored-by: Bogdan Mingela <[email protected]> * RLN-16: add RLN-46 to comments * replace travis ci with github actions Signed-off-by: Ahmed Elkashef <[email protected]> * add --info for debug * test run * Added explicit local publishing * Explicit test projects version * try to set version manually * remove test string * Add conditions for publish step * refactoring * Fix tag var * Check without tag * Fix tag * fix version obtain from system * fix publish * fix publish v2 * fix publish v3 * fix publish v5 * fix publish v6 * fix publish v6 * fix publish v7 * fix publish v 7.1 * fix publish v8 * fix projects version * return old projects version Co-authored-by: Bogdan Mingela <[email protected]> Co-authored-by: Ahmed Elkashef <[email protected]> Co-authored-by: Pavel Varfolomeev <[email protected]> Co-authored-by: Mingela <[email protected]>
- Loading branch information
1 parent
df46136
commit 85ecd50
Showing
26 changed files
with
130 additions
and
141 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,36 @@ | ||
name: test-deploy-gradle-sora-plugin | ||
on: [pull_request, create] | ||
jobs: | ||
test-deploy-plugin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out the repo under $GITHUB_WORKSPACE, so that workflow accesses it | ||
- uses: actions/checkout@v2 | ||
- name: Store gradle key & secret into gradle.properties | ||
env: | ||
GRADLE_KEY: ${{ secrets.GRADLE_KEY }} | ||
GRADLE_SECRET: ${{ secrets.GRADLE_SECRET }} | ||
run: | | ||
mkdir -p ~/.gradle/ | ||
echo gradle.publish.key=${GRADLE_KEY} >> ~/.gradle/gradle.properties | ||
echo gradle.publish.secret=${GRADLE_SECRET} >> ~/.gradle/gradle.properties | ||
- name: Check for new tag created # and set TAG_NAME | ||
if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }} | ||
run: | | ||
echo "plugin_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | ||
- name: Make scripts executable | ||
run: | | ||
chmod +x gradlew | ||
- name: Run Gradle Wrapper Daemon, Build, then Test | ||
run: | | ||
export TAG_NAME=${{ env.plugin_tag }} | ||
./gradlew --daemon | ||
./gradlew build -x test | ||
./gradlew publishToMavenLocal | ||
./gradlew test | ||
- name: Run Publish # if new tag created | ||
if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }} | ||
run: | | ||
export TAG_NAME=${{ env.plugin_tag }} | ||
./gradlew publishPlugins | ||
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# gradle-devops-helper | ||
|
||
Min supported gradle 4.8 | ||
Works with gradle 5+ | ||
Works with gradle 7 | ||
|
||
## Usage | ||
|
||
|
@@ -52,10 +52,10 @@ soramitsu { | |
tag = "custom-tag" | ||
# to enable dockerPush task, define registry credentials | ||
registry { | ||
url = 'https://nexus.iroha.tech:19001' | ||
username = 'bogdan' | ||
password = 'password' | ||
email = '[email protected]' # optional | ||
url = 'https://<host>:<port>' | ||
username = '<username>' | ||
password = '<password>' | ||
email = '<email>' # optional | ||
} | ||
# files that will be added to the docker image (optional) | ||
# host fs: docker image fs | ||
|
@@ -69,10 +69,10 @@ soramitsu { | |
|
||
Docker registry data can be defined from env vars. Env vars ALWAYS override any value from build.gradle: | ||
```bash | ||
DOCKER_REGISTRY_URL="https://nexus.iroha.tech:19001" | ||
DOCKER_REGISTRY_USERNAME="bogdan" | ||
DOCKER_REGISTRY_PASSWORD="password" | ||
DOCKER_REGISTRY_EMAIL="[email protected]" | ||
DOCKER_REGISTRY_URL="https://<host>:<port>" | ||
DOCKER_REGISTRY_USERNAME="<username>" | ||
DOCKER_REGISTRY_PASSWORD="<password>" | ||
DOCKER_REGISTRY_EMAIL="<email>" | ||
``` | ||
|
||
## Features | ||
|
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
2 changes: 1 addition & 1 deletion
2
projects/03-kotlin-app/gradle/wrapper/gradle-wrapper.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
2 changes: 1 addition & 1 deletion
2
projects/04-kotlin-lib/gradle/wrapper/gradle-wrapper.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
2 changes: 1 addition & 1 deletion
2
projects/05-java-spring-app/gradle/wrapper/gradle-wrapper.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.