Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/simple-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ env:
MAVEN_ARGS: "-e -B --settings .github/mvn-settings.xml -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3"
jobs:
build:
name: Build and test on Java 11
name: Build and test on Java 17
runs-on: ubuntu-latest
# Ignore dependabot PRs; we'll batch dependency upgrades manually in a single PR before we test them.
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Set up Java 11
- name: Set up Java 17
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # 4.7.0
with:
java-version: 11
java-version: 17
distribution: temurin
- name: Get year/month for cache key
id: get-date
Expand All @@ -71,7 +71,7 @@ jobs:
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # 4.6.1
if: failure()
with:
name: test-reports-java11
name: test-reports-java17
path: './**/*-reports/'
- name: Docker cleanup
if: always()
Expand Down
2 changes: 1 addition & 1 deletion ci/release/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pipeline {
string(credentialsId: 'release.gpg.passphrase', variable: 'JRELEASER_GPG_PASSPHRASE'),
usernamePassword(credentialsId: 'central.sonatype.com', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')]) {
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'jenkins.in.relation.to', 'hibernate-ci.frs.sourceforge.net']) {
sh 'cat $HOME/.ssh/config'
dir('.release/scripts') {
sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git .'
Expand Down
35 changes: 35 additions & 0 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,39 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<properties>
<documentation.staging.dir>${rootProject.directory}/target/staging-deploy/</documentation.staging.dir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>${basedir}/src/main/assembly/docs.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<finalName>documentation</finalName>
<tarLongFileMode>posix</tarLongFileMode>
<outputDirectory>${documentation.staging.dir}</outputDirectory>
</configuration>
<executions>
<execution>
<id>stage-documentation</id>
<phase>install</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
28 changes: 28 additions & 0 deletions distribution/src/main/assembly/docs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
SPDX-License-Identifier: Apache-2.0
Copyright Red Hat Inc. and Hibernate Authors
-->

<assembly>
<id>docs</id>
<formats>
<format>dir</format>
</formats>

<baseDirectory>.</baseDirectory>

<fileSets>
<!-- Include documentation -->
<fileSet>
<directory>target/site/apidocs</directory>
<outputDirectory>api</outputDirectory>
</fileSet>
<fileSet>
<directory>../documentation/target/dist</directory>
<outputDirectory>.</outputDirectory>
</fileSet>

</fileSets>

</assembly>