Skip to content

Commit

Permalink
Release 0.6.1 ready (#121)
Browse files Browse the repository at this point in the history
release 0.6.1 with #100 #105 #108 #107 #111 #113 #115 #119
  • Loading branch information
vaadin-miki authored May 25, 2020
1 parent 3be3c49 commit 780e677
Show file tree
Hide file tree
Showing 15 changed files with 328 additions and 36 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/codequality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Code Quality

on:
pull_request:
branches: [master, development]
push:
branches: [master, development, java-8]

jobs:
code_scan:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 10
uses: actions/setup-java@v1
with:
java-version: 10
- name: Scan on SonarCloud.io
run: mvn verify sonar:sonar -Psonar --file superfields/pom.xml
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_IO_LOGIN_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/makerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Make Release

on:
push:
branches: [master]

jobs:
create-release:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v2
- id: variables
run: |
echo "::set-output name=version::`head -1 superfields/release-notes.md | cut -d' ' -f2`"
echo "::set-output name=title::`head -1 superfields/release-notes.md | sed -n -e 's/^.* - //p'`"
export NOTES=`cat superfields/release-notes.md | sed -e '0,/^# /d;/^# /,$d'`
export NOTES="${NOTES//'%'/'%25'}"
export NOTES="${NOTES//$'\n'/'%0A'}"
export NOTES="${NOTES//$'\r'/'%0D'}"
echo "::set-output name=notes::$NOTES"
- name: Create Release
uses: fleskesvor/create-release@feature/support-target-commitish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ steps.variables.outputs.version }}"
commitish: "master"
release_name: "${{ steps.variables.outputs.version }} - ${{ steps.variables.outputs.title }}"
body: |
${{ steps.variables.outputs.notes }}
draft: false
prerelease: false
9 changes: 5 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven
name: Build (Java 10)

on:
push:
branches: [ master ]
branches: [ master, development ]
pull_request:
branches: [ master ]
branches: [ master, development ]

jobs:
build:
package:

runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/mavenpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ on:
types: [created]

jobs:
build:
publish:

runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v2
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/releasebranch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release branch on milestone close

on:
milestone:
types: [closed]

jobs:
make-branch:
runs-on: ubuntu-latest
if: ${{ startsWith(github.event.milestone.title, '0.') || startsWith(github.event.milestone.title, '1.') || startsWith(github.event.milestone.title, '2.') || startsWith(github.event.milestone.title, '3.') || startsWith(github.event.milestone.title, '4.') || startsWith(github.event.milestone.title, '5.') || startsWith(github.event.milestone.title, '6.') || startsWith(github.event.milestone.title, '7.') || startsWith(github.event.milestone.title, '8.') || startsWith(github.event.milestone.title, '9.') }}
steps:
- id: version
run: |
set -x
echo "::set-output name=version::`echo '${{ github.event.milestone.title }}' | cut -d' ' -f1`"
- name: Push release branch
uses: UnforgivenPL/push-branch@v2
with:
repository: ${{ github.repository }}
token: ${{ secrets.ACTIONS_PAT }}
source: development
target: release-${{ steps.version.outputs.version }}
63 changes: 63 additions & 0 deletions .github/workflows/setversion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Version and Release Notes

on: create

jobs:
set-version:
if: ${{ (github.event.ref_type == 'branch') && startsWith(github.event.ref, 'release-') }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- name: Set up JDK 10
uses: actions/setup-java@v1
with:
java-version: 10
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- id: what-version
name: Determine version
run: |
set -x
export VERSION="`echo ${{ github.event.ref }} | sed -e s/release-//g`"
echo "::set-output name=version::$VERSION"
- name: Set version and update readme
run: |
set -x
export VERSION="${{ steps.what-version.outputs.version }}"
mvn versions:set -DnewVersion=$VERSION --file pom.xml
mvn versions:set -DnewVersion=$VERSION --file superfields/pom.xml
sed -i -e s/{VERSION}/$VERSION/g ./README.md
- name: Create milestone notes
uses: UnforgivenPL/milestone-notes@v1
with:
match-milestone: "^${{ steps.what-version.outputs.version }} "
repository: ${{ github.repository }}
labels: "enhancement, api, bug"
- name: Format milestone notes
run: |
sed -i -e "s/## enhancement/## New features and enhancements/g" milestone-notes.md
sed -i -e "s/## api/## Changes to API/g" milestone-notes.md
sed -i -e "s/## bug/## Bug fixes/g" milestone-notes.md
sed -i -e "s/^$/(nothing reported)/g" milestone-notes.md
- name: Update release notes
run: |
echo -e "\n" | cat milestone-notes.md - superfields/release-notes.md > superfields/release-notes.md.new
mv superfields/release-notes.md.new superfields/release-notes.md
- name: Remove milestone notes
run: rm milestone-notes.md
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4.1.6
with:
commit_message: "(bot) version and release notes updated to ${{ steps.what-version.outputs.version }}"
branch: ${{ github.event.ref }}
- name: Create PR
uses: UnforgivenPL/pull-request@v1
with:
source: ${{ github.event.ref }}
target: master
repository: ${{ github.repository }}
token: ${{ secrets.ACTIONS_PAT }}
pr-title: Release ${{ steps.what-version.outputs.version }} ready
pr-body: Automatically created release ${{ steps.what-version.outputs.version }}.
pr-assignees: ${{ github.actor }}
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Welcome to SuperFields!

## Overview

This is a collection of hopefully useful Vaadin 14 components, grouped into several sub-projects:
* `superfields` are various input components;
* `demo-v14` contains an app for Vaadin 14 that shows all components - [see the demo online](https://superfields.herokuapp.com/) on Heroku
Expand All @@ -18,7 +19,7 @@ This is the relevant dependency:
<dependency>
<groupId>org.vaadin.miki</groupId>
<artifactId>superfields</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
</dependency>
```

Expand All @@ -38,11 +39,13 @@ All releases are available:

### Java 8

Some versions compatible with Java 8 may be released only to the Vaadin Directory. The repository has a branch `java-8`. The most recent version that supports Java 8 is `0.6.0.java8`.
Some versions compatible with Java 8 are available in the Vaadin Directory. They are marked with `.java8` suffix in the version, e.g. `0.6.0.java8`. Their functionality is identical to the official release.

This repository has a branch `java-8` which contains the most recent release compatible with Java 8.

## Contribution guidelines

You are more than welcome to contribute. Feel free to make PRs, submit issues, etc.
You are more than welcome to contribute. Feel free to make PRs, submit issues, ideas etc.

## Small print

Expand Down
6 changes: 3 additions & 3 deletions demo-v14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<artifactId>superfields-parent</artifactId>
<groupId>org.vaadin.miki</groupId>
<version>0.6.0</version>
<version>0.6.1</version>
</parent>

<artifactId>superfields-demo-v14</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
<name>V14 demo app for SuperFields</name>
<description>Showcase application for V14 and SuperFields.</description>
<packaging>war</packaging>
Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.vaadin.miki</groupId>
<artifactId>superfields</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.vaadin.miki</groupId>
<artifactId>superfields-parent</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
<modules>
<module>superfields</module>
<module>demo-v14</module>
Expand Down
11 changes: 11 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

<settings>
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>

23 changes: 22 additions & 1 deletion superfields/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<artifactId>superfields</artifactId>
<name>SuperFields</name>
<description>Code for various V14+ fields and other components.</description>
<version>0.6.0</version>
<version>0.6.1</version>

<properties>
<maven.compiler.source>10</maven.compiler.source>
Expand Down Expand Up @@ -204,6 +204,27 @@
</build>

<profiles>
<!-- for automated sonarcloud checks with default settings -->
<profile>
<id>sonar</id>
<properties>
<sonar.projectKey>vaadin-miki_super-fields</sonar.projectKey>
<sonar.organization>vaadin-miki</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.7.0.1746</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<!-- for preparing a zip to Vaadin Directory (has to be done manually, currently) -->
<profile>
<id>directory</id>
<build>
Expand Down
73 changes: 73 additions & 0 deletions superfields/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 0.6.1 - Release process improvement
## New features and enhancements
* \#107 - [Generate release notes from a milestone](https://api.github.com/repos/vaadin-miki/super-fields/issues/107)
## Changes to API
(nothing reported)
## Bug fixes
* \#105 - [Removing date (time) picker and adding it back in the dom resets the display pattern](https://api.github.com/repos/vaadin-miki/super-fields/issues/105)

# 0.6 - ComponentObserver and UnloadObserver
## New features and enhancements
* \#66 - [A field that changes value on becoming shown and hidden](https://api.github.com/repos/vaadin-miki/super-fields/issues/66)
* \#69 - [ComponentObserver - reusing client-side IntersectionObserver as a server-side component](https://api.github.com/repos/vaadin-miki/super-fields/issues/69)
* \#75 - [Component for encapsulating beforeunload events](https://api.github.com/repos/vaadin-miki/super-fields/issues/75)
* \#80 - [Expand SuperTabs to work also with removing tab contents](https://api.github.com/repos/vaadin-miki/super-fields/issues/80)
* \#82 - [Allow overriding default container in SuperTabs](https://api.github.com/repos/vaadin-miki/super-fields/issues/82)
## Changes to API
* \#76 - [Make Vaadin dependencies not transitive](https://api.github.com/repos/vaadin-miki/super-fields/issues/76)
* \#85 - [Add WithItems also to ItemGrid](https://api.github.com/repos/vaadin-miki/super-fields/issues/85)
* \#86 - [Create WithValue to allow chaining setValue calls](https://api.github.com/repos/vaadin-miki/super-fields/issues/86)
* \#89 - [Expose DatePicker and TimePicker in SuperDateTimePicker](https://api.github.com/repos/vaadin-miki/super-fields/issues/89)
* \#92 - [Add WithIdMixin to all components](https://api.github.com/repos/vaadin-miki/super-fields/issues/92)
## Bug fixes
* \#81 - [Setting date display pattern does not work out-of-the-box](https://api.github.com/repos/vaadin-miki/super-fields/issues/81)
* \#83 - [SuperTabs should implement HasItems](https://api.github.com/repos/vaadin-miki/super-fields/issues/83)
* \#90 - [SuperTabs should be using removing handler by default](https://api.github.com/repos/vaadin-miki/super-fields/issues/90)
* \#93 - ["this.observer is undefined" after ObservedField is removed from dom and added again](https://api.github.com/repos/vaadin-miki/super-fields/issues/93)
* \#98 - [Vaadin production mode not included](https://api.github.com/repos/vaadin-miki/super-fields/issues/98)
# 0.5.1 - Fix maven dependencies
## New features and enhancements
(nothing reported)
## Changes to API
(nothing reported)
## Bug fixes
* \#70 - [Parent pom unavailable for Directory downloads](https://api.github.com/repos/vaadin-miki/super-fields/issues/70)
# 0.5 - LazyLoad
## New features and enhancements
* \#50 - [Investigate lazy loading for ItemGrid](https://api.github.com/repos/vaadin-miki/super-fields/issues/50)
* \#51 - [Custom date formatting for date components](https://api.github.com/repos/vaadin-miki/super-fields/issues/51)
## Changes to API
(nothing reported)
## Bug fixes
* \#56 - [Set width to full in number fields](https://api.github.com/repos/vaadin-miki/super-fields/issues/56)
# 0.4 - ItemGrid
## New features and enhancements
* \#34 - [Basic version of `ItemGrid`](https://api.github.com/repos/vaadin-miki/super-fields/issues/34)
## Changes to API
(nothing reported)
## Bug fixes
(nothing reported)
# 0.3 - SuperTabs
## New features and enhancements
* \#26 - [SuperTabs](https://api.github.com/repos/vaadin-miki/super-fields/issues/26)
## Changes to API
* \#30 - [Add .withXYZ methods to all fields](https://api.github.com/repos/vaadin-miki/super-fields/issues/30)
## Bug fixes
(nothing reported)
# 0.2 - Date components
## New features and enhancements
* \#12 - [SuperDatePicker](https://api.github.com/repos/vaadin-miki/super-fields/issues/12)
* \#20 - [SuperDateTimePicker](https://api.github.com/repos/vaadin-miki/super-fields/issues/20)
## Changes to API
(nothing reported)
## Bug fixes
(nothing reported)
# 0.1 - Number fields
## New features and enhancements
* \#2 - [SuperDoubleField](https://api.github.com/repos/vaadin-miki/super-fields/issues/2)
* \#4 - [SuperIntegerField and SuperLongField](https://api.github.com/repos/vaadin-miki/super-fields/issues/4)
* \#5 - [SuperBigDecimalField](https://api.github.com/repos/vaadin-miki/super-fields/issues/5)
## Changes to API
(nothing reported)
## Bug fixes
* \#10 - [Max integer length does not work if it is a multiplication of grouping size](https://api.github.com/repos/vaadin-miki/super-fields/issues/10)
Loading

0 comments on commit 780e677

Please sign in to comment.