Skip to content

Commit

Permalink
Preparing build with thread-safe Maven Mojo
Browse files Browse the repository at this point in the history
  • Loading branch information
vsilaev committed Jul 1, 2022
1 parent 894cb55 commit 8a92858
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 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.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)
[![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)
# Why async-await?
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.

Expand All @@ -17,7 +17,7 @@ First, add Maven dependency to the library runtime:
<dependency>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.runtime</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
</dependency>
```
Second, add the following build plugins in the specified order:
Expand All @@ -28,7 +28,7 @@ Second, add the following build plugins in the specified order:
<plugin>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.tools.maven</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<executions>
<execution>
<id>tascalate-async-enhance-main-classes</id>
Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.extras/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.resolver.propagated/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.resolver.provided/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.resolver.scoped/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.resolver.swing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net.tascalate.async.tools.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<relativePath>../</relativePath>
</parent>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@
* </pre>
*
*/
@Mojo(name = "tascalate-async-enhance", defaultPhase = LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution = ResolutionScope.TEST /* ALL DEPENDENCIES */)
@Mojo(name = "tascalate-async-enhance",
threadSafe = true,
defaultPhase = LifecyclePhase.PROCESS_CLASSES,
requiresDependencyResolution = ResolutionScope.TEST /* ALL DEPENDENCIES */)
public class AsyncAwaitEnhancerMojo extends AbstractMojo {

@Parameter(defaultValue = "${project}", property = "tascalate-async.enhancer.project", required = true, readonly = true)
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>net.tascalate.async</groupId>
<artifactId>net.tascalate.async.parent</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
<packaging>pom</packaging>

<name>Tascalate Async/Await</name>
Expand Down Expand Up @@ -51,8 +51,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tascalate.concurrent.version>0.9.6</tascalate.concurrent.version>
<tascalate.javaflow.version>2.7.1</tascalate.javaflow.version>
<tascalate.javaflow.extras.version>2.4.2</tascalate.javaflow.extras.version>
<tascalate.javaflow.version>2.7.2</tascalate.javaflow.version>
<tascalate.javaflow.extras.version>2.4.3</tascalate.javaflow.extras.version>
<tascalate.asmx.version>9.2.1</tascalate.asmx.version>
<tascalate.instrument.version>1.3.0</tascalate.instrument.version>
</properties>
Expand Down

0 comments on commit 8a92858

Please sign in to comment.