Skip to content

Commit

Permalink
Reproducible build ${project.build.outputTimestamp} is now based off …
Browse files Browse the repository at this point in the history
…${git.commit.time}

via git-commit-id-maven-plugin.

Builds now require Java 11 or newer.
  • Loading branch information
ao-apps committed Aug 17, 2023
1 parent b699d2f commit b62d1d0
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 26 deletions.
18 changes: 7 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
* along with semanticcms-file. If not, see <https://www.gnu.org/licenses/>.
*/

// JDK versions
def buildJdks = ['1.8', '11', '17', '20'] // Changes must be copied to matrix axes!
def testJdks = ['1.8', '11', '17', '20'] // Changes must be copied to matrix axes!

// Parent, Extensions, Plugins, Direct and BOM Dependencies
def upstreamProjects = [
// Parent
Expand Down Expand Up @@ -761,7 +757,7 @@ pipeline {
axes {
axis {
name 'jdk'
values '1.8', '11', '17', '20' // buildJdks
values '11', '17', '20' // buildJdks
}
}
stages {
Expand All @@ -770,7 +766,7 @@ pipeline {
dir(projectDir) {
withMaven(
maven: maven,
mavenOpts: "${(jdk == '1.8' || jdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${jdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${jdk}",
jdk: "jdk-$jdk"
) {
Expand Down Expand Up @@ -807,11 +803,11 @@ pipeline {
axes {
axis {
name 'jdk'
values '1.8', '11', '17', '20' // buildJdks
values '11', '17', '20' // buildJdks
}
axis {
name 'testJdk'
values '1.8', '11', '17', '20' // testJdks
values '11', '17', '20' // testJdks
}
}
stages {
Expand All @@ -825,7 +821,7 @@ pipeline {
dir(projectDir) {
withMaven(
maven: maven,
mavenOpts: "${(testJdk == '1.8' || testJdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${testJdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${jdk}",
jdk: "jdk-$testJdk"
) {
Expand Down Expand Up @@ -921,7 +917,7 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
sh moveSurefireReportsScript(deployJdk)
withMaven(
maven: maven,
mavenOpts: "${(deployJdk == '1.8' || deployJdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${deployJdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${deployJdk}",
jdk: "jdk-$deployJdk"
) {
Expand All @@ -942,7 +938,7 @@ void sonarQubeAnalysisSteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, ma
withSonarQubeEnv(installationName: 'AO SonarQube') {
withMaven(
maven: maven,
mavenOpts: "${(deployJdk == '1.8' || deployJdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${deployJdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${deployJdk}",
jdk: "jdk-$deployJdk"
) {
Expand Down
2 changes: 1 addition & 1 deletion all
Submodule all updated 4 files
+4 −4 Jenkinsfile
+4 −4 book/Jenkinsfile
+1 −2 book/pom.xml
+1 −2 pom.xml
2 changes: 1 addition & 1 deletion bom
Submodule bom updated 4 files
+4 −4 Jenkinsfile
+4 −4 book/Jenkinsfile
+1 −2 book/pom.xml
+1 −2 pom.xml
8 changes: 4 additions & 4 deletions book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ pipeline {
dir(projectDir) {
withMaven(
maven: maven,
mavenOpts: "${(jdk == '1.8' || jdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${jdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${jdk}",
jdk: "jdk-$jdk"
) {
Expand Down Expand Up @@ -835,7 +835,7 @@ pipeline {
dir(projectDir) {
withMaven(
maven: maven,
mavenOpts: "${(testJdk == '1.8' || testJdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${testJdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${jdk}",
jdk: "jdk-$testJdk"
) {
Expand Down Expand Up @@ -931,7 +931,7 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
sh moveSurefireReportsScript(deployJdk)
withMaven(
maven: maven,
mavenOpts: "${(deployJdk == '1.8' || deployJdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${deployJdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${deployJdk}",
jdk: "jdk-$deployJdk"
) {
Expand All @@ -952,7 +952,7 @@ void sonarQubeAnalysisSteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, ma
withSonarQubeEnv(installationName: 'AO SonarQube') {
withMaven(
maven: maven,
mavenOpts: "${(deployJdk == '1.8' || deployJdk == '11') ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenOpts: "${deployJdk == '11' ? mavenOpts : (mavenOpts + ' ' + mavenOptsJdk16)}",
mavenLocalRepo: ".m2/repository-jdk-${deployJdk}",
jdk: "jdk-$deployJdk"
) {
Expand Down
3 changes: 1 addition & 2 deletions book/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ along with semanticcms-file. If not, see <https://www.gnu.org/licenses/>.
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-parent</artifactId><version>1.18.0-POST-SNAPSHOT</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-parent</artifactId><version>1.19.0-SNAPSHOT</version>
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<groupId>com.semanticcms</groupId><artifactId>semanticcms-file-book</artifactId><version>1.8.1-POST-SNAPSHOT</version>
<packaging>bundle</packaging>

<properties>
<project.build.outputTimestamp>2023-02-08T21:06:04Z</project.build.outputTimestamp>
<module.name>com.semanticcms.file.book</module.name>
<!-- These values are copied from the project being documented -->
<documented.artifactId>semanticcms-file</documented.artifactId>
Expand Down
2 changes: 1 addition & 1 deletion model
Submodule model updated 4 files
+4 −4 Jenkinsfile
+4 −4 book/Jenkinsfile
+1 −2 book/pom.xml
+1 −2 pom.xml
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ along with semanticcms-file. If not, see <https://www.gnu.org/licenses/>.
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-parent</artifactId><version>1.18.0-POST-SNAPSHOT</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-parent</artifactId><version>1.19.0-SNAPSHOT</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

<groupId>com.semanticcms</groupId><artifactId>semanticcms-file</artifactId><version>1.8.1-POST-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<project.build.outputTimestamp>2023-02-08T21:06:04Z</project.build.outputTimestamp>
</properties>

<name>SemanticCMS File</name>
Expand Down
2 changes: 1 addition & 1 deletion servlet
Submodule servlet updated 4 files
+4 −4 Jenkinsfile
+4 −4 book/Jenkinsfile
+1 −2 book/pom.xml
+1 −2 pom.xml
2 changes: 1 addition & 1 deletion style
Submodule style updated 4 files
+4 −4 Jenkinsfile
+4 −4 book/Jenkinsfile
+1 −2 book/pom.xml
+1 −2 pom.xml
2 changes: 1 addition & 1 deletion taglib
Submodule taglib updated 4 files
+4 −4 Jenkinsfile
+4 −4 book/Jenkinsfile
+1 −2 book/pom.xml
+1 −2 pom.xml
2 changes: 1 addition & 1 deletion view
Submodule view updated 4 files
+4 −4 Jenkinsfile
+4 −4 book/Jenkinsfile
+1 −2 book/pom.xml
+1 −2 pom.xml

0 comments on commit b62d1d0

Please sign in to comment.