release-task: extract the method to generate package informations

package infomations: version, release-date