You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ie...@apache.org on 2020/07/02 13:49:10 UTC

[james-project] branch JAMES-3260-gradle-poc updated (d315c92 -> c30e31d)

This is an automated email from the ASF dual-hosted git repository.

ieugen pushed a change to branch JAMES-3260-gradle-poc
in repository https://gitbox.apache.org/repos/asf/james-project.git.


    from d315c92  JAMES-3225 #comment Force utf-8 file encoding on builds.a.o
     new c02a2de  JAMES-3225 #comment Enabled build scans and added email notifications on build
     new c30e31d  JAMES-3273 #comment Building a binary distribution for server-app module

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Jenkinsfile             | 29 ++++++++++++++++++++++--
 server/app/build.gradle | 60 +++++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 83 insertions(+), 6 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[james-project] 02/02: JAMES-3273 #comment Building a binary distribution for server-app module

Posted by ie...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ieugen pushed a commit to branch JAMES-3260-gradle-poc
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit c30e31dc5b1b84e5b94704d41a1dbe74c84baf9d
Author: Eugen Stan <ie...@apache.org>
AuthorDate: Thu Jul 2 16:48:49 2020 +0300

    JAMES-3273 #comment Building a binary distribution for server-app module
---
 server/app/build.gradle | 60 +++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 56 insertions(+), 4 deletions(-)

diff --git a/server/app/build.gradle b/server/app/build.gradle
index 83b2e12..95d5f0c 100644
--- a/server/app/build.gradle
+++ b/server/app/build.gradle
@@ -1,6 +1,11 @@
 /*
  * This file was generated by the Gradle 'init' task.
  */
+
+plugins {
+    id 'application'
+}
+
 configurations {
     tests
 }
@@ -21,9 +26,6 @@ dependencies {
     implementation project(':metrics:metrics-logger')
     implementation project(':protocols:protocols-managesieve')
 
-    implementation 'commons-daemon:commons-daemon:1.2.0'
-    implementation 'org.slf4j:slf4j-api:1.7.27'
-
     implementation project(':apache-james-mailbox:apache-james-mailbox-jpa')
     implementation project(':apache-james-mailbox:apache-james-mailbox-lucene')
     implementation project(':apache-james-mailbox:apache-james-mailbox-memory')
@@ -52,11 +54,13 @@ dependencies {
     implementation project(':james-server:james-server-util')
     implementation project(':protocols:protocols-imap')
 
+    implementation 'commons-daemon:commons-daemon:1.2.0'
     implementation 'org.apache.camel:camel-core:2.24.1'
     implementation 'org.apache.camel:camel-spring:2.24.1'
     implementation 'org.apache.derby:derby:10.14.2.0'
-    implementation 'org.apache.xbean:xbean-spring:4.9'
     implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.13.1'
+    implementation 'org.apache.xbean:xbean-spring:4.9'
+    implementation 'org.slf4j:slf4j-api:1.7.27'
     implementation 'org.slf4j:jcl-over-slf4j:1.7.27'
 
     implementation 'org.springframework:spring-core:4.3.25.RELEASE'
@@ -83,6 +87,54 @@ test {
 
 description = 'Apache James :: Server :: App'
 
+application {
+    mainClass = 'org.apache.james.app.spring.JamesAppSpringMain'
+}
+
+distributions {
+    main {
+        contents {
+            from("${projectDir}") {
+                include 'README*'
+            }
+            from("${projectDir}/src/main/licensing/app") {
+                include 'notice-for-binary.txt', 'license-for-binary.txt'
+                into ''
+                setFileMode 0644
+                rename { String filename ->
+                    if (filename.equalsIgnoreCase('notice-for-binary.txt')) {
+                        return 'NOTICE'
+                    }
+                    if (filename.equalsIgnoreCase('license-for-binary.txt')) {
+                        return 'LICENSE'
+                    }
+                }
+            }
+
+            from("${projectDir}/src/main/resources") {
+                setFileMode 0600
+                into 'conf'
+            }
+            // create empty dirs
+            into('') {
+                setDirMode 0755
+                File.createTempDir().with { absolutePath ->
+                    def tmpLog = new File(absolutePath, 'logs')
+                    println tmpLog.absolutePath
+                    tmpLog.mkdirs()
+                    from(absolutePath) {
+                        includeEmptyDirs = true
+                    }
+                }
+            }
+
+            from("${projectDir}/src/main/app/var") {
+                into 'var'
+            }
+        }
+    }
+}
+
 tasks.register('testsJar', Jar) {
     archiveClassifier = 'tests'
     from(sourceSets.test.output)


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[james-project] 01/02: JAMES-3225 #comment Enabled build scans and added email notifications on build

Posted by ie...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ieugen pushed a commit to branch JAMES-3260-gradle-poc
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit c02a2dea3be0a484f81547ab2b5d0b653e6979ab
Author: Eugen Stan <ie...@apache.org>
AuthorDate: Thu Jul 2 13:14:08 2020 +0300

    JAMES-3225 #comment Enabled build scans and added email notifications on build
    
    Signed-off-by: Eugen Stan <ie...@apache.org>
---
 Jenkinsfile | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2fca524..4a139ab 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -50,14 +50,13 @@ pipeline {
     stages {
         stage('Build') {
             steps {
-                sh "./gradlew clean :apache-mailet:apache-mailet-standard:test --debug --stacktrace --scan"
                 sh "./gradlew clean build -x test"
             }
         }
 
         stage('Run tests') {
             steps {
-                sh "./gradlew build test"
+                sh "./gradlew build test --scan"
             }
         }
     }
@@ -67,6 +66,18 @@ pipeline {
         // If this build failed, send an email to the list.
         failure {
             echo "Failed "
+            script {
+                emailext(
+                        subject: "[BUILD-UNSTABLE]: Job '${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]'",
+                        body: """
+BUILD-UNSTABLE: Job '${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]':
+ 
+Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]</a>"
+""",
+                        to: "server-dev@james.apache.org",
+                        recipientProviders: [[$class: 'DevelopersRecipientProvider']]
+                )
+            }
         }
 
         // If this build didn't fail, but there were failing tests, send an email to the list.
@@ -77,6 +88,20 @@ pipeline {
         // Send an email, if the last build was not successful and this one is.
         success {
             echo "Success "
+            script {
+                if ((currentBuild.previousBuild != null) && (currentBuild.previousBuild.result != 'SUCCESS')) {
+                    emailext (
+                            subject: "[BUILD-STABLE]: Job '${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]'",
+                            body: """
+BUILD-STABLE: Job '${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]':
+ 
+Is back to normal.
+""",
+                            to: "server-dev@james.apache.org",
+                            recipientProviders: [[$class: 'DevelopersRecipientProvider']]
+                    )
+                }
+            }
         }
 
         always {


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org