Skip to content

Commit

Permalink
Preparing release 2.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
vsilaev committed Apr 19, 2024
1 parent 5732602 commit 9fead12
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 31 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Maven Central](https://img.shields.io/maven-central/v/net.tascalate.javaflow/net.tascalate.javaflow.parent.svg)](https://search.maven.org/artifact/net.tascalate.javaflow/net.tascalate.javaflow.parent/2.7.5/pom) [![GitHub release](https://img.shields.io/github/release/vsilaev/tascalate-javaflow.svg)](https://github.com/vsilaev/tascalate-javaflow/releases/tag/2.7.5) [![license](https://img.shields.io/github/license/vsilaev/tascalate-javaflow.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)
[![Maven Central](https://img.shields.io/maven-central/v/net.tascalate.javaflow/net.tascalate.javaflow.parent.svg)](https://search.maven.org/artifact/net.tascalate.javaflow/net.tascalate.javaflow.parent/2.7.6/pom) [![GitHub release](https://img.shields.io/github/release/vsilaev/tascalate-javaflow.svg)](https://github.com/vsilaev/tascalate-javaflow/releases/tag/2.7.6) [![license](https://img.shields.io/github/license/vsilaev/tascalate-javaflow.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)

# IMPORTANT NOTICE FOR RELEASE 2.7.0!!!
- Agents & Tools projects were refactored to follow consisntent naming of classes and to avoid package name clashes
Expand Down Expand Up @@ -34,7 +34,7 @@ You have to add the following configuration to enable build-time instrumentation
<dependency>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.api</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
</dependency>
<!-- Add-on for Java 8 and above -->
<dependency>
Expand All @@ -51,15 +51,15 @@ You have to add the following configuration to enable build-time instrumentation
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<!-- versions 1.6 -- 17 are supported -->
<!-- versions 1.6 -- 23 are supported -->
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.tools.maven</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<executions>
<execution>
<id>javaflow-enhance-main-classes</id>
Expand All @@ -81,7 +81,7 @@ You have to add the following configuration to enable build-time instrumentation
</plugins>
</build>
```
Note that if you are using continuations with Java 1.8 lambdas then you need to add [Tascalate JavaFlow instrumentation agent](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.5/javaflow.instrument-continuations.jar) at run-time as command-line option, while lambda-related classes are generated by JVM on the fly and there is no other way to instrument them. If this is not an option, then you can de-sugar all lambdas with [RetroLambda](https://github.com/luontola/retrolambda) Maven plugin at build-time (RetroLambda output is supported by Tascalate JavaFlow 2.3.2 or higher).
Note that if you are using continuations with Java 1.8 lambdas then you need to add [Tascalate JavaFlow instrumentation agent](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.6/javaflow.instrument-continuations.jar) at run-time as command-line option, while lambda-related classes are generated by JVM on the fly and there is no other way to instrument them. If this is not an option, then you can de-sugar all lambdas with [RetroLambda](https://github.com/luontola/retrolambda) Maven plugin at build-time (RetroLambda output is supported by Tascalate JavaFlow 2.3.2 or higher).

Please refer to [pom.xml](https://github.com/vsilaev/tascalate-javaflow-examples/blob/master/net.tascalate.javaflow.examples.common/pom.xml) in examples project for typical Maven configuration.

Expand All @@ -95,7 +95,7 @@ buildscript {
}
dependencies {
classpath 'net.tascalate.javaflow:net.tascalate.javaflow.tools.gradle:2.7.5'
classpath 'net.tascalate.javaflow:net.tascalate.javaflow.tools.gradle:2.7.6'
}
}
```
Expand All @@ -109,7 +109,7 @@ repositories {
}
dependencies {
implementation 'net.tascalate.javaflow:net.tascalate.javaflow.api:2.7.5'
implementation 'net.tascalate.javaflow:net.tascalate.javaflow.api:2.7.6'
}
```
# Ant
Expand Down Expand Up @@ -139,7 +139,7 @@ It's possibe to instrument compiled Java classes as below:
You may download a complete [examples project setup](https://github.com/vsilaev/tascalate-javaflow-examples/releases/download/1.0.10/tascalate-javaflow-ant-project-setup1.zip) from [the latest release](https://github.com/vsilaev/tascalate-javaflow-examples/releases/tag/1.0.10) for complete configuration template. Please pay attention to <code>ant-lib</code> folder with Ant TaskDef and <code>lib</code> folders with compile-/runtime-dependencies.

# Java Instrumentation Agent (Runt-time Instrumentation)
As an alternative to compile-time bytecode instrumentation, you MAY use [Tascalate JavaFlow Instrumentation Agent](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.5/javaflow.instrument-continuations.jar) from [the latest release](https://github.com/vsilaev/tascalate-javaflow/releases/tag/2.7.5) to enable continuations support at class-loading time. Please note, that if you are using Java 8 and creating continuable lambda functions (either anonymous or/and as method references), and you don't replace them with tools like [RetroLambda](https://github.com/luontola/retrolambda) as mentioned above, then you SHOULD use this instrumentation agent always: as long as Java run-time generates implementation of functional interfaces on the fly there is no other option to instrument them. To enable Tascalate JavaFlow Instrumentation Agent please add the following arguments to Java command line:
As an alternative to compile-time bytecode instrumentation, you MAY use [Tascalate JavaFlow Instrumentation Agent](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.6/javaflow.instrument-continuations.jar) from [the latest release](https://github.com/vsilaev/tascalate-javaflow/releases/tag/2.7.6) to enable continuations support at class-loading time. Please note, that if you are using Java 8 and creating continuable lambda functions (either anonymous or/and as method references), and you don't replace them with tools like [RetroLambda](https://github.com/luontola/retrolambda) as mentioned above, then you SHOULD use this instrumentation agent always: as long as Java run-time generates implementation of functional interfaces on the fly there is no other option to instrument them. To enable Tascalate JavaFlow Instrumentation Agent please add the following arguments to Java command line:
```bash
java -javaagent:<path-to-jar>/javaflow.instrument-continuations.jar <rest-of arguments>
```
Expand All @@ -148,15 +148,15 @@ The agent JAR file includes all necessary dependencies and requires no additiona
Another useful application of the instrumentation agent is to apply it for debugging code within your IDE of choice. Just specify the "-javaagent" option listed above in your IDE debug/run configuration and you will be able to perform quick "debug-fix" loops without executing full project rebuild.

# Command-line tools
It's possible to use a stand-alone command-line utility [JavaFlowRewriteJar.jar](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.5/JavaFlowRewriteJar.jar) to instrument JAR archives containing continuable classes. Please use the following command:
It's possible to use a stand-alone command-line utility [JavaFlowRewriteJar.jar](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.6/JavaFlowRewriteJar.jar) to instrument JAR archives containing continuable classes. Please use the following command:

```bash
java -jar JavaFlowRewriteJar.jar src1.jar dst1.jar src2.jar dst2.jar...
```
Note, that the source and the destination should be different files.

# CDI Support
To work correctly in CDI environment continuable methods should be advised only by continuation-aware CDI proxies (interceptors, scope proxies, etc). Obviously, generation of these proxies is out of our control. Plus, major CDI containers (JBoss Weld and Apache OpenWebBeans) generates such proxies dynamically at run-time. Therefore if you plan to use Tascalate JavaFlow continuations with managed beans' methods then it's necessary to instrument CDI-specific proxies with [javaflow.instrument-proxies.jar](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.5/javaflow.instrument-proxies.jar) Java Agent:
To work correctly in CDI environment continuable methods should be advised only by continuation-aware CDI proxies (interceptors, scope proxies, etc). Obviously, generation of these proxies is out of our control. Plus, major CDI containers (JBoss Weld and Apache OpenWebBeans) generates such proxies dynamically at run-time. Therefore if you plan to use Tascalate JavaFlow continuations with managed beans' methods then it's necessary to instrument CDI-specific proxies with [javaflow.instrument-proxies.jar](https://github.com/vsilaev/tascalate-javaflow/releases/download/2.7.6/javaflow.instrument-proxies.jar) Java Agent:
```bash
java -javaagent:<path-to-jar>/javaflow.instrument-proxies.jar <rest-of arguments>
```
Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.agent.common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.agent.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.agent.proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.providers.asm3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.providers.asm4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.providers.asm5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.providers.asmx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.providers.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.providers.proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.tools.ant/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.tools.gradle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.tools.jar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.tools.maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.javaflow.tools.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<relativePath>../</relativePath>
</parent>

Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

<groupId>net.tascalate.javaflow</groupId>
<artifactId>net.tascalate.javaflow.parent</artifactId>
<version>2.7.5</version>
<version>2.7.6</version>
<packaging>pom</packaging>

<name>Tascalate JavFlow</name>
<url>https://github.com/vsilaev/tascalate-javaflow</url>
<description>Continuations / CoRoutines library for Java 1.6 - 11, incl. build tools &amp; CDI support.
<description>Continuations / CoRoutines library for Java 1.6 - 23, incl. build tools &amp; CDI support.
This project is based on completely re-worked Apache Jakarta Commons JavaFlow library</description>

<licenses>
Expand Down Expand Up @@ -74,8 +74,8 @@


<properties>
<tascalate.asmx.version>9.5.0</tascalate.asmx.version>
<tascalate.instrument.version>1.3.2</tascalate.instrument.version>
<tascalate.asmx.version>9.7.0</tascalate.asmx.version>
<tascalate.instrument.version>1.5.0</tascalate.instrument.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down Expand Up @@ -191,7 +191,7 @@
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<version>1.2.1.Final</version>
<executions>
<execution>
<id>add-module-infos</id>
Expand Down

0 comments on commit 9fead12

Please sign in to comment.