Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3e192dd

Browse files
authoredMar 1, 2024··
Prepare for the 4.1.0.RC1 release (#562)
* Drop the unused eclipse ide sections in doc * add logging to weld embedded profile of tck runner * Fix the wildfly updater pom * Towards RC1, updated dist build docs and cleaned up the TCK reference guide * Rename the Configuration CdiLiteMode to CoreMode Fixes #561 * Allow the distribution license to be specified via license.file property * Remove unused lib dir * Update to cdi.api.version 4.1.0.RC1 --------- Signed-off-by: Scott M Stark <starksm64@gmail.com>
1 parent 56df9db commit 3e192dd

30 files changed

+172
-429
lines changed
 

‎api/src/main/java/org/jboss/cdi/tck/api/Configuration.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
* Porting package property names are the FQCN of the SPI class. Other property names (one for each non-porting package SPI
3030
* configuration option) are specified here.
3131
*
32-
* The TCK may also be configured programatically through this interface.
32+
* The TCK may also be configured programmatically through this interface.
3333
*
3434
* @author Pete Muir
3535
* @author Martin Kouba
3636
*/
3737
public interface Configuration {
3838

39-
public static final String CDI_LITE_MODE = "org.jboss.cdi.tck.cdiLiteMode";
39+
public static final String CDI_CORE_MODE = "org.jboss.cdi.tck.cdiCoreMode";
4040

4141
public static final String LIBRARY_DIRECTORY_PROPERTY_NAME = "org.jboss.cdi.tck.libraryDirectory";
4242

@@ -64,9 +64,9 @@ public interface Configuration {
6464
*
6565
* @return true if running in a CDI Lite environment
6666
*/
67-
public Boolean getCdiLiteMode();
67+
public Boolean getCoreMode();
6868

69-
public void setCdiLiteMode(Boolean cdiLiteMode);
69+
public void setCoreMode(Boolean cdiLiteMode);
7070

7171
/**
7272
* The implementation of {@link Beans} in use.

‎dist-build/HOW-TO-BUILD.adoc

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
= Jakarta CDI TCK dist-build
2-
This document describes how the dist-build functions to produce the CDI TCK distribution zip bundle.
2+
This document describes how the dist-build functions to produce the CDI TCK distribution zip bundle. In the description below, CDI_TCK_DIST refers to the root directory of the CDI TCK distribution zip after being unpacked. For example, for the 4.1.0 release it would be cdi-tck-4.1.0.
3+
4+
== Files in dist-build
5+
- The src/main/assembly/assembly.xml defines how the distribution zip is put together from contents in the CDI TCK repo, and the Weld artifacts
6+
- The src/test/* tree is copied to the CDI_TCK_DIST/weld/jboss-tck-runner/src/test and is related to running the TCK against Weld and WildFly/Weld.
7+
- artifact-install.pom is installed as CDI_TCK_DIST/artifacts/pom.xml along with the TCK artifacts and its dependencies to allow one to install the TCK into a local maven repository.
8+
- jboss-as-updater.pom is bundled as CDI_TCK_DIST/weld/jboss-as/pom.xml and can be used to update a bare WildFly installation with the Weld version and Jakarta API artifacts that correspond to the versions used by the TCK.
9+
- jboss-runner.pom is bundled as CDI_TCK_DIST/weld/jboss-tck-runner/pom.xml and contains the profiles used to run the TCK against, Weld in embedded and se modes as well as inside of the WildFly container.
10+
- pom.xml - defines the distribution dependencies and the maven-assembly-plugin configuration
11+
- README.adoc is the CDI_TCK_DIST top level readme file that describes the distribution contents
12+
13+
== Running the build
14+
To create the distribution, run the following from the project root:
15+
16+
[source, console]
17+
----
18+
mvn -Drelease install
19+
----
20+
21+
The distribution zip file will be found in the dist-build/target directory.

‎dist-build/README.adoc

+5-11
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
Jakarta Contexts and Dependency Injection (CDI) is a Jakarta standard for
44
dependency injection and contextual lifecycle management. This is the TCK for CDI.
55

6-
This distribution, as a whole, is licensed under the terms of the Apache Public
7-
License, while the final distribution used for compatibility testing is under the EFTL. The
8-
bundled LICENSE file will dictate which license applies to the TCK distribution.
6+
This distribution, as a whole, is licensed under the terms of the Apache Public License, while the final distribution used for compatibility testing is under the EFTL. The bundled LICENSE file will dictate which license applies to the TCK distribution.
97

108
This distribution consists of:
119

@@ -20,19 +18,15 @@ doc/
2018

2119
– A detailed reference guide for the current version of TCK in both pdf and html formats
2220

23-
lib/
24-
25-
– Maven project to get all TCK dependencies
26-
2721
weld/
2822

29-
– TCK runner for using Weld (the CDI RI) with JBoss AS
23+
subdirectory for the sample TCK runner for using Weld (the CDI ratifying compatible implementation) standalone and with WildFly
3024

31-
jboss-tck-runner/
25+
weld/jboss-tck-runner/
3226

33-
– maven-based TCK runner for WildFly
27+
– maven-based TCK runner for standalone Weld and with WildFly
3428

35-
lang-model-tck-runner/
29+
weld/lang-model-tck-runner/
3630

3731
- maven-based Language Model TCK runner for Weld and WildFly
3832

‎dist-build/jboss-as-updater.pom

+7-7
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@
6868
<dependency>
6969
<groupId>jakarta.enterprise</groupId>
7070
<artifactId>jakarta.enterprise.cdi-api</artifactId>
71-
<version>${cdi.tck.version}</version>
71+
<version>${cdi.api.version}</version>
7272
</dependency>
7373
<dependency>
7474
<groupId>jakarta.enterprise</groupId>
7575
<artifactId>jakarta.enterprise.cdi-el-api</artifactId>
76-
<version>${cdi.tck.version}</version>
76+
<version>${cdi.api.version}</version>
7777
</dependency>
7878
<dependency>
7979
<groupId>jakarta.enterprise</groupId>
8080
<artifactId>jakarta.enterprise.lang-model</artifactId>
81-
<version>${cdi.tck.version}</version>
81+
<version>${cdi.api.version}</version>
8282
</dependency>
8383
<dependency>
8484
<groupId>jakarta.interceptor</groupId>
@@ -233,7 +233,7 @@
233233

234234
Updating CDI module and Interceptors API module
235235

236-
CDI version: ${cdi.tck.version}
236+
CDI version: ${cdi.api.version}
237237
Interceptors version: ${interceptors.api.version}
238238

239239
JBOSS_HOME: ${jboss.home}
@@ -248,9 +248,9 @@
248248
<property name="module.dir" value="${jboss.home}/modules//system/layers/base/jakarta/enterprise/api" />
249249
<property name="module.interceptor.dir" value="${jboss.home}/modules//system/layers/base/jakarta/interceptor/api" />
250250

251-
<property name="cdi.api.file" value="jakarta.enterprise.cdi-api-${cdi.tck.version}.jar" />
252-
<property name="cdi.el.api.file" value="jakarta.enterprise.cdi-el-api-${cdi.tck.version}.jar" />
253-
<property name="cdi.lang.model.file" value="jakarta.enterprise.lang-model-${cdi.tck.version}.jar" />
251+
<property name="cdi.api.file" value="jakarta.enterprise.cdi-api-${cdi.api.version}.jar" />
252+
<property name="cdi.el.api.file" value="jakarta.enterprise.cdi-el-api-${cdi.api.version}.jar" />
253+
<property name="cdi.lang.model.file" value="jakarta.enterprise.lang-model-${cdi.api.version}.jar" />
254254
<property name="interceptor.api.file" value="jakarta.interceptor-api-${interceptors.api.version}.jar" />
255255

256256
<delete>

‎dist-build/jboss-runner.pom

+6-11
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@
319319
<groupId>org.wildfly.arquillian</groupId>
320320
<artifactId>wildfly-arquillian-common</artifactId>
321321
</dependency>
322+
<dependency>
323+
<groupId>org.jboss.logmanager</groupId>
324+
<artifactId>jboss-logmanager</artifactId>
325+
<version>3.0.4.Final</version>
326+
</dependency>
322327
</dependencies>
323328
<build>
324329
<resources>
@@ -336,12 +341,10 @@
336341
<systemPropertyVariables>
337342
<arquillian.launch>weld</arquillian.launch>
338343
<arquillian.xml>weld-embedded-arquillian.xml</arquillian.xml>
344+
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
339345
<!-- Specified system properties are not
340346
available during in-container test execution -->
341347
<org.jboss.cdi.tck.libraryDirectory>target/dependency/lib</org.jboss.cdi.tck.libraryDirectory>
342-
<org.jboss.cdi.tck.testDataSource>java:jboss/datasources/ExampleDS</org.jboss.cdi.tck.testDataSource>
343-
<!-- Travis CI build workaround -->
344-
<argLine>${travis.surefire.argLine}</argLine>
345348
</systemPropertyVariables>
346349
<suiteXmlFiles>
347350
<suiteXmlFile>target/suites/tck-core-suite.xml</suiteXmlFile>
@@ -472,10 +475,6 @@
472475
<version>${arquillian.version}</version>
473476
<scope>test</scope>
474477
</dependency>
475-
<dependency>
476-
<groupId>log4j</groupId>
477-
<artifactId>log4j</artifactId>
478-
</dependency>
479478
</dependencies>
480479
<build>
481480
<resources>
@@ -540,10 +539,6 @@
540539
<!-- Specified system properties are not
541540
available during in-container test execution -->
542541
<org.jboss.cdi.tck.libraryDirectory>target/dependency/lib</org.jboss.cdi.tck.libraryDirectory>
543-
<org.jboss.cdi.tck.testDataSource>java:jboss/datasources/ExampleDS</org.jboss.cdi.tck.testDataSource>
544-
<org.jboss.cdi.tck.testJmsConnectionFactory>java:/ConnectionFactory</org.jboss.cdi.tck.testJmsConnectionFactory>
545-
<org.jboss.cdi.tck.testJmsQueue>java:/queue/test</org.jboss.cdi.tck.testJmsQueue>
546-
<org.jboss.cdi.tck.testJmsTopic>java:/topic/test</org.jboss.cdi.tck.testJmsTopic>
547542
<jacoco.agent>${jacoco.agent}</jacoco.agent>
548543
<!-- Specifiy any garbage collection related args here -->
549544
<gc.args />

‎dist-build/lang-model-tck-runner/pom.xml

+3-33
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>An example pom for running the lang model against Weld and WildFly</description>
77
<groupId>org.jboss.weld</groupId>
88
<artifactId>lang-model-tck-runner</artifactId>
9-
<version>4.0.5-SNAPSHOT</version>
9+
<version>${cdi.tck.version}</version>
1010

1111
<properties>
1212
<maven.compiler.source>11</maven.compiler.source>
@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>jakarta.enterprise</groupId>
2121
<artifactId>cdi-tck-lang-model</artifactId>
22-
<version>${project.version}</version>
22+
<version>${cdi.api.version}</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>org.jboss.weld</groupId>
@@ -51,7 +51,7 @@
5151
<dependency>
5252
<groupId>org.wildfly.arquillian</groupId>
5353
<artifactId>wildfly-arquillian-container-managed</artifactId>
54-
<version>5.0.0.Alpha3</version>
54+
<version>5.0.1.Final</version>
5555
</dependency>
5656
<dependency>
5757
<groupId>org.jboss.arquillian.protocol</groupId>
@@ -83,7 +83,6 @@
8383
<dependency>
8484
<groupId>org.jboss.arquillian.junit</groupId>
8585
<artifactId>arquillian-junit-container</artifactId>
86-
<version>${arquillian.version}</version>
8786
<scope>test</scope>
8887
</dependency>
8988

@@ -170,9 +169,6 @@
170169
</dependencies>
171170
<build>
172171
<resources>
173-
<resource>
174-
<directory>src/test/resources</directory>
175-
</resource>
176172
<resource>
177173
<directory>src/test/wildfly</directory>
178174
</resource>
@@ -216,7 +212,6 @@
216212
</argLine>
217213
<properties>
218214
<property>
219-
<!-- Note a 7.4.0 issue results in NPEs and useless output if you go higher than 1 here -->
220215
<name>surefire.testng.verbose</name>
221216
<value>0</value>
222217
</property>
@@ -228,7 +223,6 @@
228223
<!-- Specified system properties are not
229224
available during in-container test execution -->
230225
<org.jboss.cdi.tck.libraryDirectory>target/dependency/lib</org.jboss.cdi.tck.libraryDirectory>
231-
<org.jboss.cdi.tck.testDataSource>java:jboss/datasources/ExampleDS</org.jboss.cdi.tck.testDataSource>
232226
</systemPropertyVariables>
233227
<systemProperties>
234228
<jacoco.agent>${jacoco.agent}</jacoco.agent>
@@ -241,30 +235,6 @@
241235
</systemProperties>
242236
</configuration>
243237
</plugin>
244-
<plugin>
245-
<groupId>org.apache.maven.plugins</groupId>
246-
<artifactId>maven-resources-plugin</artifactId>
247-
<executions>
248-
<execution>
249-
<id>copy-resources</id>
250-
<!-- perform this any time before the tests are executed -->
251-
<phase>validate</phase>
252-
<goals>
253-
<goal>copy-resources</goal>
254-
</goals>
255-
<configuration>
256-
<outputDirectory>${JBOSS_HOME}/standalone/configuration</outputDirectory>
257-
<resources>
258-
<resource>
259-
<directory>${JBOSS_HOME}/docs/examples/configs</directory>
260-
<includes>standalone-activemq-embedded.xml</includes>
261-
</resource>
262-
</resources>
263-
</configuration>
264-
</execution>
265-
</executions>
266-
</plugin>
267-
268238
</plugins>
269239
</build>
270240
</profile>

‎dist-build/lang-model-tck-runner/src/test/wildfly/arquillian.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
<container qualifier="wildfly-23" default="true">
1212
<configuration>
13-
<!-- This config file includes embedded JMS broker and is copied into WFLY dir from ${JBOSS_HOME}/docs/examples/configs -->
14-
<property name="serverConfig">standalone-activemq-embedded.xml</property>
13+
<property name="serverConfig">standalone.xml</property>
1514
<property name="javaVmArguments">-Xms128m -Xmx1g -ea -DcdiTckExcludeDummy=true ${gc.args} ${additional.vm.args} ${jacoco.agent}</property>
1615
<property name="outputToConsole">false</property>
1716
<property name="allowConnectingToRunningServer">true</property>

‎dist-build/pom.xml

+7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
<name>CDI TCK Distribution</name>
1414

1515
<properties>
16+
<!-- This property is used by the impl/src/resources/sigtest-weld-pom.xml file to allow the signature test
17+
file to be set to the signature test file artifact included in the TCK distribution. When the
18+
sigtest-weld-pom.xml is copied to the distribution artifacts/sigtest-weld-pom.xml this is used to
19+
match the sigtest-maven-plugin sigfile configuration value to the generated sigtest artifact.
20+
-->
1621
<sigtest.filename>cdi-tck-core-impl-${project.version}-sigtest-jdk17.sig</sigtest.filename>
22+
<!-- Default to the apache license. Final builds should set this to EFTL.txt -->
23+
<license.file>apl.txt</license.file>
1724
</properties>
1825

1926
<dependencies>

‎dist-build/src/main/assembly/assembly.xml

+10-12
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
<format>zip</format>
99
</formats>
1010

11+
<!-- The files section is used for individual files and those files that need filter applied -->
1112
<files>
12-
<!-- This is the final EFTL license -->
13+
<!-- This is the license to use in the dist -->
1314
<file>
14-
<source>EFTL.txt</source>
15+
<source>${license.file}</source>
1516
<destName>LICENSE</destName>
1617
</file>
1718
<!-- The root artifact-install.pom gets installed as /artifacts/pom.xml in the dist to allow one to install
@@ -23,12 +24,15 @@
2324
<destName>pom.xml</destName>
2425
<filtered>true</filtered>
2526
</file>
27+
<!-- Install the example signature test pom that validates that the Weld version referenced by the
28+
TCK passes the signature tests.
29+
-->
2630
<file>
2731
<source>${project.basedir}/../impl/src/main/resources/sigtest-weld-pom.xml</source>
2832
<outputDirectory>artifacts</outputDirectory>
2933
<filtered>true</filtered>
3034
</file>
31-
<!--
35+
<!-- Install the Weld and Weld/WildFly sample TCK runner pom with filtering to pickup the correct versions
3236
-->
3337
<file>
3438
<source>jboss-runner.pom</source>
@@ -51,14 +55,17 @@
5155
</file>
5256
</files>
5357

58+
<!-- The fileSets are for bulk copying that does not need filtering -->
5459
<fileSets>
60+
<!-- The distribution root README file -->
5561
<fileSet>
5662
<directory>${project.basedir}</directory>
5763
<outputDirectory>/</outputDirectory>
5864
<includes>
5965
<include>README.adoc</include>
6066
</includes>
6167
</fileSet>
68+
<!-- Copy the sample lang model TCK runner project. The pom.xml was added above with filtering. -->
6269
<fileSet>
6370
<directory>${project.basedir}/lang-model-tck-runner</directory>
6471
<outputDirectory>weld/lang-model-tck-runner</outputDirectory>
@@ -86,15 +93,6 @@
8693
<outputDirectory>artifacts</outputDirectory>
8794
<useProjectArtifact>false</useProjectArtifact>
8895
</dependencySet>
89-
<dependencySet>
90-
<includes>
91-
<include>jakarta.enterprise:cdi-tck-dist-libs</include>
92-
</includes>
93-
<useTransitiveDependencies>false</useTransitiveDependencies>
94-
<outputDirectory>/lib</outputDirectory>
95-
<useProjectArtifact>false</useProjectArtifact>
96-
<unpack>true</unpack>
97-
</dependencySet>
9896
<dependencySet>
9997
<includes>
10098
<include>jakarta.enterprise:cdi-tck-reference-guide:zip</include>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Additional loggers to configure (the root logger is always configured)
2+
loggers=org.jboss.weld,org.jboss.weld.Bootstrap
3+
4+
logger.level=INFO
5+
logger.handlers=FILE,CONSOLE
6+
7+
logger.org.jboss.weld.level=INFO
8+
logger.org.jboss.weld.useParentHandlers=true
9+
10+
logger.org.jboss.weld.Bootstrap.level=INFO
11+
logger.org.jboss.weld.Bootstrap.useParentHandlers=true
12+
13+
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
14+
handler.CONSOLE.level=INFO
15+
handler.CONSOLE.formatter=COLOR-PATTERN
16+
handler.CONSOLE.properties=autoFlush,target
17+
handler.CONSOLE.autoFlush=true
18+
handler.CONSOLE.target=SYSTEM_OUT
19+
20+
handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler
21+
handler.FILE.level=ALL
22+
handler.FILE.formatter=PATTERN
23+
handler.FILE.properties=autoFlush,append,fileName,suffix
24+
handler.FILE.constructorProperties=fileName,append
25+
handler.FILE.autoFlush=true
26+
handler.FILE.append=true
27+
handler.FILE.fileName=tck.log
28+
handler.FILE.suffix=.yyyy-MM-dd
29+
30+
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
31+
formatter.PATTERN.properties=pattern
32+
formatter.PATTERN.pattern=%d{yyyy-MM-dd HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n
33+
34+
formatter.COLOR-PATTERN=org.jboss.logmanager.formatters.PatternFormatter
35+
formatter.COLOR-PATTERN.properties=pattern
36+
formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n

0 commit comments

Comments
 (0)
Please sign in to comment.