Skip to content

Commit

Permalink
updated project to CUBA 6.9 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariodavid authored Feb 2, 2019
1 parent 7fb7740 commit 4e26f08
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 42 deletions.
24 changes: 14 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
language: groovy
jdk:
- oraclejdk8
- openjdk8
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
before_install:
- chmod +x ./gradlew

- chmod +x ./gradlew
script:
- ./gradlew --no-daemon assemble

script:
- ./gradlew --no-daemon check
- "./gradlew --no-daemon check"
deploy:
provider: script
script: "./gradlew clean assemble bintrayUpload --debug"
on:
tags: true
env:
global:
- secure: UNwJTEHomlqu4qFYGEagPMTNjPZ1BDG4TVtHgWpEPos/BxTLQRlOEDGzrrQS+OUxsecBHthgxRwBBfZr4POQiaNygrMjTVwT53HVhE45bNXPQG6sgwgzYW1ABpWhUbNVSeUyXeJQTTZX9QLqwBlap7HZV/fgZYGieunXtEhsh524NrpnbZyr42ikhhQjdiAPzY4P59eEgSe2qdFqNFKQCX4J0uqjmuUDznskLsozCI5FZ4/z7BhcnOoczD3fMPZsdjWnn6C2WcXr5hzz0A+FqBOaMNkCyGqk6OAcuHMtR+8gByayhAZpzAKLPv6Tx7CGX4pmr9dClyfzJ7AozqyFCpcoEBw/n7QtAQhOu4NG04KvADjSdqowlvO+vvqAXC1FI+lzFHEEL5gGxxqBwf3aqGEDNzF8wbcRM42450VxCq3RNZW3Xns+GW/Whu7wJP2HZh0ygPdI9VlNtweLeV5rLcdw+Qv1JGEqpLNKMnfpm46BdEdOHQpNtNLyrxfzasVeo2LnJ3oDtpqMKt1KvBqKzUAqv/eNpDfgcU1mSNB7NhTN3+3ty9VAz8woce6LR5azWfYHlDZlnz1BRJjroqdnVVq8swhY6vzn9eibP/Jm9LfGqRRmTLOc8ZPseStjOY0HS88ct6BcwKGMAIGIMANVSHLeOVM69+Uhq/y4Owqc8a8=
- secure: e9440gJtpLNkO+72IW2t6a1EaQ96uJBjnP2phdLSSAX21ysKJIHuJkPxQ0fMCb3hlV3DkSV0itV1m80XrHib0kS9sMoRGRlq6VVjp2Xo6dMLcZx2ZEuZXi+CifXBQo0ZRqrsoiytPqpET2WUwY1jEhRcrrVtoZQQHXE+YUleOy6XIb8bfNM4Lsbx/HgMI+3F03Tm2VtKVl9WHi6EH2Ae67kjJjxfNd56J5HqC8o3aq+ajjAIeIpjN5uNhf0pnpQtleL59NRb0PQNBmpFMbg0V5xRiUNJz6kqX4ypApW8nNhvb0CqtzDJA/7HThVKhdmwG0pU4LjdtBj9lo+EANHtP85+jPfsO2hGEbqsHEh0V2KyobDdLVqmEfooitdA3LfJ58De9KEC4EMaPa7eybakuKNnxZDja84tnif95ExK/2Okn2zac3yaxQGD1KbHQNRPk2gddZUBKYws+ez2QFfEi7fr63U28Xo8w3XJFAYoUFEwkH7noUB2p9VARDKnYolRarLED9Za5XSgGzAsNCXKKm9R1d+Rxtk7nhbNyosxkYKn+bB3kFXaTjidJoYyMesxMey79/MHdnxQkmP2WPseAFQNqplu+kV8c3wn8mb1vzglt90oFbreBGSvTjmK+zioHUs5p9crry7lHOadQl512fEg1ia3SJiCgM/OLTeJHMc=
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ For more information on this topic see: http://ui-patterns.com/patterns/Wizard
## Installation


1. `wizard` is available in the [CUBA marketplace](https://www.cuba-platform.com/marketplace)
1. `wizard` is available in the [CUBA marketplace](https://www.cuba-platform.com/marketplace/wizard)
2. Select a version of the add-on which is compatible with the platform version used in your project:

| Platform Version | Add-on Version |
| ---------------- | -------------- |
| 6.9.x | 0.2.x |
| 6.8.x | 0.1.x |


Expand Down
9 changes: 3 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ To create a release of this application component do the following:

1. commit & push your changes to Github
2. wait for travis to be build
3. switch isSnapshot in build.gradle to false (make sure it is currently 0.3.1, isSnapshot = true)
4. commit & push your changes to Github
5. ./tag-release.sh 0.3.1 (which creates a git tag and pushes it to Github)
6. Update the title "version 0.3.1" and description of the tag in the Github UI
7. ./upload-to-repository.sh <<MY_REPO_USERNAME>> <<MY_REPO_PASSWORD>> (optional <<MY_REPO_URL>> as third parameter, otherwise will use bintray)

3a. `./gradlew release -Prelease.useAutomaticVersion=true` to update to next patch version (0.3.2)
3b. `./gradlew release -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=0.4.0 -Prelease.newVersion=0.4.1-SNAPSHOT` to update to next minor version (0.4.0)
4. Update the title "version 0.3.1" and description of the tag in the Github UI
20 changes: 11 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

buildscript {
ext.cubaVersion = '6.8.9'
ext.cubaVersion = '6.9.8'
repositories {

mavenCentral()
maven {
url 'https://repo.cuba-platform.com/content/groups/work'
credentials {
Expand All @@ -19,14 +19,19 @@ buildscript {
}
}


plugins {
id 'net.researchgate.release' version '2.1.2'
}

def modulePrefix = 'wizard'

def globalModule = project(":${modulePrefix}-global")
def coreModule = project(":${modulePrefix}-core")
def guiModule = project(":${modulePrefix}-gui")
def webModule = project(":${modulePrefix}-web")

def servletApi = 'org.apache.tomcat:tomcat-servlet-api:8.0.26'
def servletApi = 'javax.servlet:javax.servlet-api:3.1.0'


apply(plugin: 'idea')
Expand All @@ -35,8 +40,8 @@ apply(plugin: 'cuba')
cuba {
artifact {
group = 'de.diedavids.cuba.wizard'
version = "0.1.0"
isSnapshot = false
version = project.properties['version'].replaceAll('-SNAPSHOT', '')
isSnapshot = project.properties['version'].contains('-SNAPSHOT')
}
tomcat {
dir = "$project.rootDir/deploy/tomcat"
Expand Down Expand Up @@ -245,9 +250,6 @@ configure(webModule) {
}





task undeploy(type: Delete, dependsOn: ":${modulePrefix}-web:cleanConf") {
delete("$cuba.tomcat.dir/shared")
delete("$cuba.tomcat.dir/webapps/${modulePrefix}-core")
Expand All @@ -269,4 +271,4 @@ task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}

apply from: 'extra.gradle'

1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=0.2.0-SNAPSHOT
11 changes: 0 additions & 11 deletions tag-release.sh

This file was deleted.

5 changes: 0 additions & 5 deletions upload-to-repository.sh

This file was deleted.

0 comments on commit 4e26f08

Please sign in to comment.