Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ language: groovy
rvm:
- 1.8.8
install:
- gradle build
- ./gradlew build
before_script:
- gradle test
- ./gradlew test
- export VERSION=${TRAVIS_TAG}.${TRAVIS_COMMIT:0:7}
script:
- gradle -PpluginVersion=${VERSION}
- ./gradlew -PpluginVersion=${VERSION}
jdk:
- oraclejdk8
- oraclejdk7
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ This plugin is protected under the [Eclipse Public 1.0 License](http://www.eclip
The packaged zip is located in the releases folder. No special steps are required for installation.
See Installing plug-ins in UrbanCode Deploy. Download this zip file if you wish to skip the
manual build step. Otherwise, download the entire Slack-UCD and
run the "ant" command in the top level folder. This should compile the code and create
a new distributable zip within the releases folder. Use this command if you wish to make
run the "gradlew build" command in the top level folder. This should compile the code and create
a new distributable zip within the build/distributions folder. Use this command if you wish to make
your own changes to the plugin.

### History
Expand Down Expand Up @@ -43,15 +43,16 @@ This plugin is protected under the [Eclipse Public 1.0 License](http://www.eclip
Version 2
- Community GitHub Release

### How to build the plugin from eclipse client:
### How to build the plugin from Eclipse client:

1. Expand the Groovy project that you checked-out from example template.
2. Open build.xml file and execute it as an Ant Build operation (Run As -> Ant Build)
3. The built plugin is located at releases/Slack-UCD-vdev.zip
2. Open the `build.gradle` file and execute it as a Gradle Build operation (Run As -> Gradle Build)
3. The built plugin is located at `build/distributions/Slack-UCD-vdev.zip`

### How to build the plugin from command line:

1. Navigate to the base folder of the project through command line.
2. Make sure that there is build.xml file there, and then execute 'ant' command.
3. The built plugin is located at releases/Slack-UCD-vdev.zip
Note: Edit the Build.xml to change the version 'dev' to a release number.
1. Navigate to the base folder of the project through the command line.
2. Make sure that the `build.gradle` file is there, then execute `gradlew build`
* To create a release version, append `-PpluginVersion=VERSION` where `VERSION` is the version you want (e.g. `5.0`)
3. The built plugin is located at `build/distributions/Slack-UCD-vdev.zip`
* If you added the `PpluginVersion` flag, the file will have your version at the end (e.g. `Slack-UCD-v5.0.zip`)
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,5 @@ String stripVersion(String fileNameWithVersion) {
int end = fileNameWithVersion.lastIndexOf("-"); //assumes that: name-version.ext. Will not work with name-version-SNAPSHOT.ext
return fileNameWithVersion.substring(0, end) + ext
}

build.finalizedBy distPlugin
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
172 changes: 172 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.