Skip to content

Commit

Permalink
Merge pull request #201 from jamezp/check-sha
Browse files Browse the repository at this point in the history
Use the download-maven-plugin for downloading the core profile TCK's.…
  • Loading branch information
jamezp authored Oct 31, 2024
2 parents 8d52dfe + 94105ac commit e247736
Showing 1 changed file with 98 additions and 42 deletions.
140 changes: 98 additions & 42 deletions core-profile/tck-setup/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,103 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.11.2</version>
<configuration>
<unpack>true</unpack>
<outputDirectory>${tck.dir}</outputDirectory>
</configuration>
<executions>
<execution>
<id>download-core-profile-tck</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<!-- TODO (jrp) this needs to be reverted once promoted from staging -->
<!-- <url>https://download.eclipse.org/jakartaee/coreprofile/jakartaee${version.jakarta.platform.core.profile.tck.version.short}/staged/eftl/jakarta-core-profile-tck-${version.jakarta.platform.core.profile.tck.version}.zip</url> -->
<url>https://eclipse.mirror.rafal.ca/ee4j/jakartaee-tck/jakartaee${version.jakarta.platform.core.profile.tck.version.short}/staged/eftl/jakarta-core-profile-tck-${version.jakarta.platform.core.profile.tck.version}.zip</url>
<outputFileName>jakarta-core-profile-tck-${version.jakarta.platform.core.profile.tck.version}.zip</outputFileName>
<sha256>5722bac4f1af78e93ede95feaa448aa0bc19934d0871415c25dd45ffa8c5d1a5</sha256>
</configuration>
</execution>
<execution>
<id>download-jakarta-annotations-tck</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://download.eclipse.org/jakartaee/annotations/${version.jakarta.annotations.tck.short}/jakarta-annotations-tck-${version.jakarta.annotations.tck}.zip</url>
<outputFileName>jakarta-annotations-tck-${version.jakarta.annotations.tck}.zip</outputFileName>
<sha256>9421c6ca66274d32dfb408848f75a42d57f120599fe0d8403c5c5c1141d5ac4d</sha256>
</configuration>
</execution>
<execution>
<id>download-jakarta-cdi-tck</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://download.eclipse.org/jakartaee/cdi/${version.jakarta.cdi.short}/cdi-tck-${version.jakarta.cdi.tck}-dist.zip</url>
<outputFileName>cdi-tck-${version.jakarta.cdi.tck}-dist.zip</outputFileName>
<sha256>446029ee1ce694d2a9ae8893d16be7afd7e1c0ed8705064b7095af174cf97ea0</sha256>
</configuration>
</execution>
<execution>
<id>download-jakarta-inject-tck</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://download.eclipse.org/jakartaee/dependency-injection/${version.jakarta.inject.tck.short}/jakarta.inject-tck-${version.jakarta.inject.tck}-bin.zip</url>
<outputFileName>jakarta.inject-tck-${version.jakarta.inject.tck}-bin.zip</outputFileName>
<sha256>23bce4317ca061c3de648566cdf65c74b57e1264d6891f366567955d6b834972</sha256>
</configuration>
</execution>
<execution>
<id>download-jakarta-json-binding-tck</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://download.eclipse.org/jakartaee/jsonb/${version.jakarta.json.binding.tck.short}/jakarta-jsonb-tck-${version.jakarta.json.binding.tck}.zip</url>
<outputFileName>jakarta-jsonb-tck-${version.jakarta.json.binding.tck}.zip</outputFileName>
<sha256>954fd9a3a67059ddeabe5f51462a6a3b542c94fc798094dd8c312a6a28ef2d0b</sha256>
</configuration>
</execution>
<execution>
<id>download-jakarta-json-processing-tck</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://download.eclipse.org/jakartaee/jsonp/${version.jakarta.json.tck.short}/jakarta-jsonp-tck-${version.jakarta.json.tck}.zip</url>
<outputFileName>jakarta-jsonp-tck-${version.jakarta.json.tck}.zip</outputFileName>
<sha256>949f203de84deffa8c7892b555918e42f1dd220ccb7b6800741ea58af62737c1</sha256>
</configuration>
</execution>
<execution>
<id>download-jakarta-rest-tck</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://download.eclipse.org/jakartaee/restful-ws/${version.jakarta.ws.rs.tck.short}/jakarta-restful-ws-tck-${version.jakarta.ws.rs.tck}.zip</url>
<outputFileName>jakarta-restful-ws-tck-${version.jakarta.ws.rs.tck}.zip</outputFileName>
<sha256>b6290c1b5b3d2fdd9cc700a999243492a7e27b94a9b6af1974ff4dc5bfbf98f2</sha256>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand All @@ -44,47 +141,6 @@
<configuration>
<target>
<mkdir dir="${tck.dir}"/>
<!-- download file -->
<!--<get src="https://download.eclipse.org/jakartaee/coreprofile/jakartaee${version.jakarta.platform.core.profile.tck.version.short}/staged/eftl/jakarta-core-profile-tck-${version.jakarta.platform.core.profile.tck.version}.zip"
dest="${tck.dir}/"
verbose="false"
usetimestamp="true"/> -->
<!-- TODO (jrp) this needs to be reverted once promoted from staging -->
<get src="https://eclipse.mirror.rafal.ca/ee4j/jakartaee-tck/jakartaee${version.jakarta.platform.core.profile.tck.version.short}/staged/eftl/jakarta-core-profile-tck-${version.jakarta.platform.core.profile.tck.version}.zip"
dest="${tck.dir}/jakarta-core-profile-tck-${version.jakarta.platform.core.profile.tck.version}.zip"
verbose="true"
usetimestamp="true"/>
<get src="https://download.eclipse.org/jakartaee/annotations/${version.jakarta.annotations.tck.short}/jakarta-annotations-tck-${version.jakarta.annotations.tck}.zip"
dest="${tck.dir}"
verbose="false"
usetimestamp="true"/>
<get src="https://download.eclipse.org/jakartaee/jsonp/${version.jakarta.json.tck.short}/jakarta-jsonp-tck-${version.jakarta.json.tck}.zip"
dest="${tck.dir}/"
verbose="false"
usetimestamp="true"/>
<get src="https://download.eclipse.org/jakartaee/jsonb/${version.jakarta.json.binding.tck.short}/jakarta-jsonb-tck-${version.jakarta.json.binding.tck}.zip"
dest="${tck.dir}/"
verbose="false"
usetimestamp="true"/>
<get src="https://download.eclipse.org/jakartaee/restful-ws/${version.jakarta.ws.rs.tck.short}/jakarta-restful-ws-tck-${version.jakarta.ws.rs.tck}.zip"
dest="${tck.dir}/"
verbose="false"
usetimestamp="true"/>
<get src="https://download.eclipse.org/jakartaee/cdi/${version.jakarta.cdi.short}/cdi-tck-${version.jakarta.cdi.tck}-dist.zip"
dest="${tck.dir}/"
verbose="false"
usetimestamp="true"/>
<get src="https://download.eclipse.org/jakartaee/dependency-injection/${version.jakarta.inject.tck.short}/jakarta.inject-tck-${version.jakarta.inject.tck}-bin.zip"
dest="${tck.dir}/"
verbose="false"
usetimestamp="true"/>
<unzip src="${tck.dir}/jakarta-annotations-tck-${version.jakarta.annotations.tck}.zip" dest="${tck.dir}/" />
<unzip src="${tck.dir}/jakarta-jsonp-tck-${version.jakarta.json.tck}.zip" dest="${tck.dir}/" />
<unzip src="${tck.dir}/jakarta-jsonb-tck-${version.jakarta.json.binding.tck}.zip" dest="${tck.dir}/" />
<unzip src="${tck.dir}/jakarta-restful-ws-tck-${version.jakarta.ws.rs.tck}.zip" dest="${tck.dir}/rest-tck" />
<unzip src="${tck.dir}/cdi-tck-${version.jakarta.cdi.tck}-dist.zip" dest="${tck.dir}/" />
<unzip src="${tck.dir}/jakarta.inject-tck-${version.jakarta.inject.tck}-bin.zip" dest="${tck.dir}/" />
<unzip src="${tck.dir}/jakarta-core-profile-tck-${version.jakarta.platform.core.profile.tck.version}.zip" dest="${tck.dir}/" />

<exec executable="/bin/bash" dir="${tck.dir}/annotations-tck/artifacts">
<arg value="artifact-install.sh"/>
Expand Down Expand Up @@ -216,7 +272,7 @@
<artifactId>jakarta-restful-ws-tck</artifactId>
<version>${version.jakarta.ws.rs.tck}</version>
<packaging>jar</packaging>
<file>${tck.dir}/rest-tck/restful-ws-tck/artifacts/jakarta-restful-ws-tck-${version.jakarta.ws.rs.tck}.jar</file>
<file>${tck.dir}/restful-ws-tck/artifacts/jakarta-restful-ws-tck-${version.jakarta.ws.rs.tck}.jar</file>
<generatePom>true</generatePom>
</configuration>
</execution>
Expand Down

0 comments on commit e247736

Please sign in to comment.