Skip to content

Commit 8a92858

Browse files
committed
Preparing build with thread-safe Maven Mojo
1 parent 894cb55 commit 8a92858

File tree

13 files changed

+20
-17
lines changed

13 files changed

+20
-17
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Maven Central](https://img.shields.io/maven-central/v/net.tascalate.async/net.tascalate.async.parent.svg)](https://search.maven.org/artifact/net.tascalate.async/net.tascalate.async.parent/1.2.2/pom) [![GitHub release](https://img.shields.io/github/release/vsilaev/tascalate-async-await.svg)](https://github.com/vsilaev/tascalate-async-await/releases/tag/1.2.2) [![license](https://img.shields.io/github/license/vsilaev/tascalate-async-await.svg)](https://github.com/vsilaev/tascalate-async-await/blob/master/LICENSE)
1+
[![Maven Central](https://img.shields.io/maven-central/v/net.tascalate.async/net.tascalate.async.parent.svg)](https://search.maven.org/artifact/net.tascalate.async/net.tascalate.async.parent/1.2.3/pom) [![GitHub release](https://img.shields.io/github/release/vsilaev/tascalate-async-await.svg)](https://github.com/vsilaev/tascalate-async-await/releases/tag/1.2.3) [![license](https://img.shields.io/github/license/vsilaev/tascalate-async-await.svg)](https://github.com/vsilaev/tascalate-async-await/blob/master/LICENSE)
22
# Why async-await?
33
Asynchronous programming has long been a useful way to perform operations that don’t necessarily need to hold up the flow or responsiveness of an application. Generally, these are either compute-bound operations or I/O bound operations. Compute-bound operations are those where computations can be done on a separate thread, leaving the main thread to continue its own processing, while I/O bound operations involve work that takes place externally and may not need to block a thread while such work takes place. Common examples of I/O bound operations are file and network operations.
44

@@ -17,7 +17,7 @@ First, add Maven dependency to the library runtime:
1717
<dependency>
1818
<groupId>net.tascalate.async</groupId>
1919
<artifactId>net.tascalate.async.runtime</artifactId>
20-
<version>1.2.2</version>
20+
<version>1.2.3</version>
2121
</dependency>
2222
```
2323
Second, add the following build plugins in the specified order:
@@ -28,7 +28,7 @@ Second, add the following build plugins in the specified order:
2828
<plugin>
2929
<groupId>net.tascalate.async</groupId>
3030
<artifactId>net.tascalate.async.tools.maven</artifactId>
31-
<version>1.2.2</version>
31+
<version>1.2.3</version>
3232
<executions>
3333
<execution>
3434
<id>tascalate-async-enhance-main-classes</id>

net.tascalate.async.agent/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.examples/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.extras/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.resolver.propagated/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.resolver.provided/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.resolver.scoped/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.resolver.swing/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.runtime/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.tools.core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.tools.maven/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.tascalate.async</groupId>
77
<artifactId>net.tascalate.async.parent</artifactId>
8-
<version>1.2.2</version>
8+
<version>1.2.3</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.tools.maven/src/main/java/net/tascalate/async/tools/maven/AsyncAwaitEnhancerMojo.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@
7373
* </pre>
7474
*
7575
*/
76-
@Mojo(name = "tascalate-async-enhance", defaultPhase = LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution = ResolutionScope.TEST /* ALL DEPENDENCIES */)
76+
@Mojo(name = "tascalate-async-enhance",
77+
threadSafe = true,
78+
defaultPhase = LifecyclePhase.PROCESS_CLASSES,
79+
requiresDependencyResolution = ResolutionScope.TEST /* ALL DEPENDENCIES */)
7780
public class AsyncAwaitEnhancerMojo extends AbstractMojo {
7881

7982
@Parameter(defaultValue = "${project}", property = "tascalate-async.enhancer.project", required = true, readonly = true)

pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>net.tascalate.async</groupId>
66
<artifactId>net.tascalate.async.parent</artifactId>
7-
<version>1.2.2</version>
7+
<version>1.2.3</version>
88
<packaging>pom</packaging>
99

1010
<name>Tascalate Async/Await</name>
@@ -51,8 +51,8 @@
5151
<properties>
5252
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5353
<tascalate.concurrent.version>0.9.6</tascalate.concurrent.version>
54-
<tascalate.javaflow.version>2.7.1</tascalate.javaflow.version>
55-
<tascalate.javaflow.extras.version>2.4.2</tascalate.javaflow.extras.version>
54+
<tascalate.javaflow.version>2.7.2</tascalate.javaflow.version>
55+
<tascalate.javaflow.extras.version>2.4.3</tascalate.javaflow.extras.version>
5656
<tascalate.asmx.version>9.2.1</tascalate.asmx.version>
5757
<tascalate.instrument.version>1.3.0</tascalate.instrument.version>
5858
</properties>

0 commit comments

Comments
 (0)