Skip to content

Commit fb7cab1

Browse files
authored
released 0.2.0 (#4)
1 parent 5726642 commit fb7cab1

File tree

4 files changed

+69
-33
lines changed

4 files changed

+69
-33
lines changed

CHANGELOG.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [0.1.0] - 2017-09-29
7+
## [0.2.0] - 2018-05-09
88

99
### Added
10-
- execution of health checks on a regular basis
11-
- health check configurations
12-
- custom health checks with groovy scripts
13-
- initial checks for first time installation things
10+
- configurable timers for refresh period of unread messages
11+
- mark messages as read once they are opened
12+
13+
## [0.1.0] - 2018-02-07
14+
15+
### Added
16+
- user messages
17+
- programmatic access to user messages
18+
- messages with entity references
1419

1520

1621
### Dependencies
17-
- CUBA 6.6.x
22+
- CUBA 6.8.x

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,21 @@ This CUBA component gives users a mailbox for user to user and system to user me
1212
1. Add the following maven repository `https://dl.bintray.com/mariodavid/cuba-components` to the build.gradle of your CUBA application:
1313

1414

15-
buildscript {
16-
17-
//...
18-
19-
repositories {
20-
21-
// ...
22-
15+
16+
buildscript {
17+
repositories {
2318
maven {
24-
url "https://dl.bintray.com/mariodavid/cuba-components"
19+
url "https://dl.bintray.com/mariodavid/cuba-components"
2520
}
26-
}
27-
28-
// ...
29-
}
21+
}
22+
}
23+
3024

3125
2. Select a version of the add-on which is compatible with the platform version used in your project:
3226

3327
| Platform Version | Add-on Version |
3428
| ---------------- | -------------- |
35-
| 6.8.x | 0.1.x |
29+
| 6.8.x | 0.1.x - 0.2.x |
3630

3731
The latest version is: [ ![Download](https://api.bintray.com/packages/mariodavid/cuba-components/cuba-component-user-inbox/images/download.svg) ](https://bintray.com/mariodavid/cuba-components/cuba-component-user-inbox/_latestVersion)
3832

@@ -42,6 +36,11 @@ Add custom application component to your project:
4236
* Artifact name: `user-inbox-global`
4337
* Version: *add-on version*
4438

39+
```groovy
40+
dependencies {
41+
appComponent("de.diedavids.cuba.userinbox:user-inbox-global:*addon-version*")
42+
}
43+
```
4544

4645

4746
## Using the inbox as a user

build.gradle

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ buildscript {
1313
dependencies {
1414
classpath "com.haulmont.gradle:cuba-plugin:$cubaVersion"
1515

16+
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0"
1617

1718
classpath 'net.saliman:gradle-cobertura-plugin:2.5.0'
1819
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2"
@@ -41,7 +42,7 @@ cuba {
4142
artifact {
4243
group = 'de.diedavids.cuba.userinbox'
4344
version = '0.2.0'
44-
isSnapshot = true
45+
isSnapshot = false
4546
}
4647
tomcat {
4748
dir = "$project.rootDir/deploy/tomcat"
@@ -61,6 +62,48 @@ cuba {
6162
}
6263
}
6364

65+
66+
subprojects {
67+
apply plugin: 'com.jfrog.bintray'
68+
69+
bintray {
70+
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('UPLOAD_REPOSITORY_USERNAME')
71+
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('UPLOAD_REPOSITORY_PASSWORD')
72+
73+
configurations = ['archives']
74+
75+
publish = true
76+
77+
override = false
78+
79+
// metadata
80+
pkg {
81+
repo = 'cuba-components'
82+
name = 'cuba-component-user-inbox'
83+
desc = 'CUBA component that gives users a mailbox for user2user and system2user messages'
84+
userOrg = 'mariodavid'
85+
86+
websiteUrl = 'https://github.com/mariodavid/cuba-component-user-inbox'
87+
issueTrackerUrl = 'https://github.com/mariodavid/cuba-component-user-inbox/issues'
88+
vcsUrl = 'https://github.com/mariodavid/cuba-component-user-inbox.git'
89+
90+
licenses = ["Apache-2.0"]
91+
92+
labels = ['user-inbox', 'user-messaging', 'cuba-patform', 'cuba-component']
93+
githubRepo = 'mariodavid/cuba-component-user-inbox'
94+
githubReleaseNotesFile = 'CHANGELOG.md'
95+
96+
version {
97+
name = "${cuba.artifact.version}"
98+
desc = ''
99+
released = new Date()
100+
vcsTag = "${cuba.artifact.version}"
101+
}
102+
}
103+
}
104+
}
105+
106+
64107
dependencies {
65108
appComponent("com.haulmont.cuba:cuba-global:$cubaVersion")
66109

upload-to-repository.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
#!/usr/bin/env bash
22

3-
if [[ -z "$1" || -z "$2" ]]
4-
then
5-
echo "Define username, password and repository URL as parameters. Usage: ./upload-to-repository.sh myUser myPassword https://api.bintray.com/maven/balvi/..."
63

7-
else
8-
if [[ -z "$3" ]]
9-
then
10-
./gradlew -DuploadRepositoryUsername=$1 -DuploadRepositoryPassword=$2 uploadArchives
11-
else
12-
./gradlew -DuploadRepositoryUsername=$1 -DuploadRepositoryPassword=$2 -DuploadRepositoryRelease=$3 uploadArchives
4+
./gradlew clean assemble bintrayUpload
135

14-
fi
15-
16-
fi

0 commit comments

Comments
 (0)