-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from gpc/calnet-oss-grails5
Calnet oss grails5 Thank you @bkoehm
- Loading branch information
Showing
17 changed files
with
459 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: gradle | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [ published ] | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
GIT_USER_NAME: ${{ secrets.GIT_USER_NAME }} | ||
GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Get latest release version number | ||
id: get_version | ||
uses: battila7/get-version-action@v2 | ||
- name: Run pre-release | ||
uses: micronaut-projects/github-actions/pre-release@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish to Sonatype OSSRH | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} | ||
SECRING_FILE: ${{ secrets.SECRING_FILE }} | ||
RELEASE_VERSION: ${{ steps.get_version.outputs.version-without-v }} | ||
run: | | ||
echo "${SECRING_FILE}" | base64 -d > "${GITHUB_WORKSPACE}/secring.gpg" | ||
echo "Publishing Artifacts for $RELEASE_VERSION" | ||
(set -x; ./gradlew -Pversion="${RELEASE_VERSION}" -Psigning.secretKeyRingFile="${GITHUB_WORKSPACE}/secring.gpg" publishToSonatype closeAndReleaseSonatypeStagingRepository --no-daemon) | ||
- name: Bump patch version by one | ||
uses: actions-ecosystem/action-bump-semver@v1 | ||
id: bump_semver | ||
with: | ||
current_version: ${{steps.get_version.outputs.version-without-v }} | ||
level: patch | ||
- name: Set version in gradle.properties | ||
env: | ||
NEXT_VERSION: ${{ steps.bump_semver.outputs.new_version }} | ||
run: | | ||
echo "Preparing next snapshot" | ||
./gradlew snapshotVersion -Pversion="${NEXT_VERSION}" | ||
- name: Commit & Push changes | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
author_name: ${{ secrets.GIT_USER_NAME }} | ||
author_email: $${ secrets.GIT_USER_EMAIL }} | ||
message: 'Set version to next SNAPSHOT' | ||
- name: Run post-release | ||
if: success() | ||
uses: micronaut-projects/github-actions/post-release@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: '00 06 * * 1' | ||
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue looks like it is stale and therefor it is in risk of being closed with no further action.' | ||
stale-pr-message: 'This pull request looks like it is stale and therefor it is in risk of being closed with no further action.' | ||
stale-issue-label: 'no-issue-activity' | ||
stale-pr-label: 'no-pr-activity' | ||
days-before-stale: 365 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Greenmail Plugin for Grails 3 | ||
Greenmail Plugin for Grails 5 | ||
============================= | ||
|
||
This is a fork of grails greenmail plugin for grails 3. | ||
This is a fork of grails greenmail plugin for grails 5. | ||
|
||
INSTALL | ||
------- | ||
|
@@ -10,8 +10,8 @@ Add a dependency for the plugin in `build.gradle`: | |
|
||
``` | ||
dependencies { | ||
compile 'org.grails.plugins:greenmail:2.0.0.RC2' | ||
dependencies { | ||
compile 'io.github.gpc:greenmail:5.0.0' | ||
} | ||
``` | ||
|
@@ -109,4 +109,3 @@ This is a fully functional plugin, though there are some features that I think w | |
|
||
* Messages sent by the Grails Mail plugin have duplicate "TO:" fields in the raw message and in the address list, for instance if the recipient is [email protected], then that email address is listed twice when you retrieve the address list for RecipientType.TO (e.g. GreenMailUtil.getAddressList(message.getRecipients(javax.mail.Message.RecipientType.TO)) | ||
* Ability to view HTML email messages as they appear in a mail client rather than as RAW message. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,158 @@ | ||
buildscript { | ||
ext { | ||
grailsVersion = project.grailsVersion | ||
} | ||
repositories { | ||
mavenLocal() | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
dependencies { | ||
classpath "org.grails:grails-gradle-plugin:$grailsVersion" | ||
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion" | ||
classpath 'io.github.gradle-nexus:publish-plugin:1.0.0' | ||
} | ||
} | ||
|
||
version "2.0.0.RC3" | ||
group "org.grails.plugins" | ||
|
||
apply plugin:"eclipse" | ||
apply plugin:"idea" | ||
apply plugin:"org.grails.grails-plugin" | ||
apply plugin:"org.grails.grails-plugin-publish" | ||
apply plugin:"org.grails.grails-gsp" | ||
apply plugin: 'org.grails.grails-plugin' | ||
apply plugin: 'org.grails.grails-gsp' | ||
apply plugin: 'java-library' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
apply plugin: 'io.github.gradle-nexus.publish-plugin' | ||
|
||
ext { | ||
grailsVersion = project.grailsVersion | ||
gradleWrapperVersion = project.gradleWrapperVersion | ||
} | ||
group 'io.github.gpc' | ||
|
||
sourceCompatibility = 1.7 | ||
targetCompatibility = 1.7 | ||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom "org.grails:grails-bom:$grailsVersion" | ||
dependencies { | ||
console "org.grails:grails-console" | ||
compileOnly 'org.grails:grails-core' | ||
compileOnly 'org.grails:grails-dependencies' | ||
compileOnly "org.grails:grails-logging" | ||
compileOnly "org.grails:grails-plugin-services" | ||
compileOnly "org.grails:grails-plugin-url-mappings" | ||
compileOnly "org.grails.plugins:gsp" | ||
profile "org.grails.profiles:web-plugin" | ||
testImplementation "io.micronaut:micronaut-inject-groovy" | ||
testImplementation "org.grails:grails-web-testing-support" | ||
|
||
implementation "com.icegreen:greenmail:2.0.0" | ||
implementation 'jakarta.mail:jakarta.mail-api:2.0.1' | ||
api "com.icegreen:greenmail:2.0.0" | ||
} | ||
|
||
bootRun { | ||
ignoreExitValue true | ||
jvmArgs( | ||
'-Dspring.output.ansi.enabled=always', | ||
'-noverify', | ||
'-XX:TieredStopAtLevel=1', | ||
'-Xmx1024m') | ||
sourceResources sourceSets.main | ||
String springProfilesActive = 'spring.profiles.active' | ||
systemProperty springProfilesActive, System.getProperty(springProfilesActive) | ||
} | ||
|
||
tasks.withType(Test).configureEach { | ||
useJUnitPlatform() | ||
} | ||
bootJar.enabled = false | ||
|
||
tasks.register('sourceJar', Jar) { | ||
from { ["LICENSE.txt"] } | ||
from sourceSets.main.allSource | ||
archiveClassifier = "sources" | ||
} | ||
|
||
artifacts { | ||
archives jar, sourceJar | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
artifactId project.name | ||
version project.version | ||
groupId project.group | ||
from components.java | ||
artifact sourceJar | ||
pom.withXml { | ||
asNode().children().last() + { | ||
resolveStrategy = Closure.DELEGATE_FIRST | ||
name 'GreenMail Plugin' | ||
description 'Grails GreenMail Plugin' | ||
url 'https://github.com/gpc/greenmail' | ||
scm { | ||
url 'https://github.com/gpc/greenmail' | ||
connection 'scm:[email protected]:gpc/greenmail.git' | ||
developerConnection 'scm:[email protected]:gpc/greenmail.git' | ||
} | ||
issueManagement { | ||
system 'Github Issues' | ||
url 'https://github.com/gpc/greenmail/issues' | ||
} | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'gpc' | ||
name 'Grails Plugin Collective' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
applyMavenExclusions false | ||
} | ||
|
||
dependencies { | ||
compile "org.springframework.boot:spring-boot-starter-logging" | ||
compile "org.springframework.boot:spring-boot-autoconfigure" | ||
compile "org.grails:grails-core" | ||
compile "org.springframework.boot:spring-boot-starter-actuator" | ||
compile "org.springframework.boot:spring-boot-starter-tomcat" | ||
compile "org.grails:grails-dependencies" | ||
compile "org.grails:grails-web-boot" | ||
profile "org.grails.profiles:web-plugin" | ||
testCompile "org.grails:grails-plugin-testing" | ||
ext."signing.keyId" = project.findProperty('signing.keyId') ?: System.getenv('SIGNING_KEY_ID') | ||
ext."signing.password" = project.findProperty('signing.password') ?: System.getenv('SIGNING_PASSPHRASE') | ||
ext."signing.secretKeyRingFile" = project.findProperty('signing.secretKeyRingFile') ?: (System.getenv('SIGNING_PASSPHRASE') ?: "${System.getProperty('user.home')}/.gnupg/secring.gpg") | ||
|
||
console "org.grails:grails-console" | ||
ext.isReleaseVersion = !version.endsWith("SNAPSHOT") | ||
|
||
afterEvaluate { | ||
signing { | ||
required { isReleaseVersion } | ||
sign publishing.publications.maven | ||
} | ||
} | ||
|
||
tasks.withType(Sign).configureEach { | ||
onlyIf { isReleaseVersion } | ||
} | ||
|
||
compile "com.icegreen:greenmail:1.5.3" | ||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
def ossUser = System.getenv('SONATYPE_USERNAME') ?: project.findProperty('sonatypeOss2Username') ?: '' | ||
def ossPass = System.getenv('SONATYPE_PASSWORD') ?: project.findProperty("sonatypeOss2Password") ?: '' | ||
def ossStagingProfileId = System.getenv('SONATYPE_STAGING_PROFILE_ID') ?: project.findProperty('sonatypeOssStagingProfileIdJms') ?: '' | ||
|
||
nexusUrl = uri('https://s01.oss.sonatype.org/service/local/') | ||
snapshotRepositoryUrl = uri('https://s01.oss.sonatype.org/content/repositories/snapshots/') | ||
username = ossUser | ||
password = ossPass | ||
stagingProfileId = ossStagingProfileId | ||
} | ||
} | ||
} | ||
|
||
grailsPublish { | ||
userOrg = "grails" | ||
githubSlug = 'gpc/greenmail' | ||
license { | ||
name = 'Apache-2.0' | ||
tasks.register('snapshotVersion') { | ||
doLast { | ||
if (!project.version.endsWith('-SNAPSHOT')) { | ||
ant.propertyfile(file: "gradle.properties") { | ||
entry(key: "version", value: "${project.version}-SNAPSHOT") | ||
} | ||
} | ||
} | ||
title = "GreenMail Plugin" | ||
desc = "Grails GreenMail Plugin" | ||
developers = [gpc: "Grails Plugin Collective"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
grailsVersion=3.1.12 | ||
gradleWrapperVersion=2.13 | ||
version=5.0.0 | ||
grailsVersion=5.2.5 | ||
grailsGradlePluginVersion=5.2.4 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Fri Nov 27 23:09:32 CET 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip |
Oops, something went wrong.