Skip to content

Commit

Permalink
Use Gradle on CI (#588)
Browse files Browse the repository at this point in the history
* Update CI builds to run with gradle

* Update README.md

Co-Authored-By: Yahor Berdnikau <Ky4eP9IBbIu@gmail.com>
  • Loading branch information
shashachu and Tapchicoma authored Oct 13, 2019
1 parent 4daebcd commit 69fefc8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
29 changes: 0 additions & 29 deletions .buildscript/deploy_snapshot.sh

This file was deleted.

11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ script:
- |
if [[ $TRAVIS_REPO_SLUG == "pinterest/ktlint" && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
# Gradle
./gradlew build
# Maven
./mvnw -Ddeploy=maven-central -DskipStaging=true -Dgpg.skip=true && ./mvnw -Ddeploy=github -Dgpg.skip=true -Dgithub.draft=true -Dgithub.description="https://github.com/pinterest/ktlint#access-to-the-latest-master-snapshot"
./gradlew clean uploadArchives --no-daemon --no-parallel
else
# Gradle
./gradlew build ktlint
# Maven
./gradlew build && ./mvnw clean verify
./gradlew clean build ktlint
fi
before_cache:
Expand All @@ -38,3 +34,6 @@ env:
- secure: sk+fF6EPGXCy85gm8cdKM0JXy3pMKRZSRaAE/gE+OWir9BjUj1clG3KZw5P/xPudiSMnNIRfluqxkLRCPWpawh/6Ixvs3falZAC9JVBu6OyHSjTXDp3zIr4Mv3NNMEefr775iRPzuf6iBUTTP2bZQ2P62CE3HOd83lB8Jm1QcDE7LIscMn96DGZt8BDi88fEjfSDCMcw87w+5zOM5prUoOlPp9dyxnskw9ncwmFLLrsJJJmcC0bvrTiE6Z1CduwNDOwYDDRgsEa6k2EEpBDrRSStDcXoF8zFTm79C5B81lkH2s+kylpp7XjOQPWQAs4+n/tQ0TIlvUG7YMyrtf/NVK+7oClQtVKAeWOD1sl+Z1Qs8h3+pk9xrTWFRgMYMSyjAbHAyaf7x+3Lv/uD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bkqF87K5Husk5QsK0mXr5dUGWwlzBEPMBqnOx8nc3PAvAieG6EOB/Zu4AibC51lpScK+C6/EM5+k8H40NUkG2IS8iEQip8T0X8dlSpwDjp+2NmnDAPjGzASLKUBD3OBOiguyUkCoUqZzJGqhZ8dPYgDiccLhxQa7sIlePlYWq+smeJVknLwi6VRi3FkJZOb+FeO5yRKzy2wYl9nrafU=
- secure: K26IQDYHTtFIdSmeaD91V12GHgJKV1k5Q+aXDmcJeuOYOCo66zpUkXRNFR4Kxr5Imw1VipGUvTHnHyRyjEGhR8JlTDCKanSWlDpknjsjuYf/+ndzmXzmgOTRRfc/L7RRnkOPMPAXp5IJ1fgbSQ3ClB9qRsCiiHVd1VAH1Jq2tTsMyuV2G4SgmEZaFAhcRFWp0z9jK5AHQNLYexbZ7fzSyDyvrk531pCAGZgZ4r8SYZaKSVHmBH3WP1mbYjJl9Z34x/Ty/6QIUpBDpP0ablZ9hws7GQQ2VIxzP0IRx0z98Sjh9GsxJHtqt94bYnfbZOa570AaRmtykGzVHqMh1PfyoMFl94wscPH9IWCXxYEngf9wwlyaPYPv0RRp3afGEjOZiVC5X+7yPphpj129/UBjbVXAFHAfodpvfZgV/p4GOGwl94Wh5pbqrbWfGbBZCYr+gkWZYw7YI57YBCX8gRLybIBm0Q2x7SBYENoLLQTzTM9agTgpgpIGcG8vjTg8zgSYKFs97iPt6PrUU1Wo7c9qzmGC+6jIoYAGceT7184n/CCagKjDiM90jes5MxY4NVts6sKBpuinjoxJuU/LIjJ+TnGBeeauHE1fL2NUYUKa6lVeYUYzHpSlHJI700yUPm1VsbSyX+gwsDTyt2myyab9jd8FxJ/McGYWqlVshH6n8Bs=

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ To run `ktlint` - right-click on `ktlint/src/main/kotlin/com/pinterest/ktlint/Ma
#### Access to the latest `master` snapshot

Whenever a commit is added to the `master` branch `0.0.0-SNAPSHOT` is automatically uploaded to [Sonatype's snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/com/pinterest/ktlint/).
Whenever a commit is added to the `master` branch a snapshot build is automatically uploaded to [Sonatype's snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/com/pinterest/ktlint/).
If you are eager to try upcoming changes (that might or might not be included in the next stable release) you can do
so by changing version of ktlint to `0.0.0-SNAPSHOT` + adding a repo:
so by changing version of ktlint to `<latest-version>-SNAPSHOT` + adding a repo:

##### Maven

Expand Down

0 comments on commit 69fefc8

Please # to comment.