Skip to content

Commit 6edb743

Browse files
committed
Fix error with evicted ClassLoader in tools (Maven/Gradle)
1 parent ee0abd3 commit 6edb743

File tree

15 files changed

+32
-29
lines changed

15 files changed

+32
-29
lines changed

README.md

+10-10
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.4/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.4) [![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.5/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.5) [![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

@@ -18,7 +18,7 @@ First, add Maven dependency to the library runtime:
1818
<dependency>
1919
<groupId>net.tascalate.async</groupId>
2020
<artifactId>net.tascalate.async.runtime</artifactId>
21-
<version>1.2.4</version>
21+
<version>1.2.5</version>
2222
</dependency>
2323
```
2424
Second, add the following build plugins in the specified order:
@@ -29,7 +29,7 @@ Second, add the following build plugins in the specified order:
2929
<plugin>
3030
<groupId>net.tascalate.async</groupId>
3131
<artifactId>net.tascalate.async.tools.maven</artifactId>
32-
<version>1.2.4</version>
32+
<version>1.2.5</version>
3333
<executions>
3434
<execution>
3535
<id>tascalate-async-enhance-main-classes</id>
@@ -85,7 +85,7 @@ buildscript {
8585
}
8686
8787
dependencies {
88-
classpath 'net.tascalate.async:net.tascalate.async.tools.gradle:1.2.4'
88+
classpath 'net.tascalate.async:net.tascalate.async.tools.gradle:1.2.5'
8989
classpath 'net.tascalate.javaflow:net.tascalate.javaflow.tools.gradle:2.7.3'
9090
/* other plugins */
9191
}
@@ -101,7 +101,7 @@ repositories {
101101
}
102102
103103
dependencies {
104-
implementation 'net.tascalate.async:net.tascalate.async.runtime:1.2.4'
104+
implementation 'net.tascalate.async:net.tascalate.async.runtime:1.2.5'
105105
/* other dependencies */
106106
}
107107
```
@@ -113,7 +113,7 @@ buildscript {
113113
}
114114
115115
dependencies {
116-
classpath 'net.tascalate.async:net.tascalate.async.tools.gradle:1.2.4'
116+
classpath 'net.tascalate.async:net.tascalate.async.tools.gradle:1.2.5'
117117
classpath 'net.tascalate.javaflow:net.tascalate.javaflow.tools.gradle:2.7.3'
118118
/* other plugins */
119119
}
@@ -129,20 +129,20 @@ repositories {
129129
}
130130
131131
dependencies {
132-
implementation 'net.tascalate.async:net.tascalate.async.runtime:1.2.4'
132+
implementation 'net.tascalate.async:net.tascalate.async.runtime:1.2.5'
133133
134134
/* Async/Await Extras */
135-
implementation 'net.tascalate.async:net.tascalate.async.extras:1.2.4'
135+
implementation 'net.tascalate.async:net.tascalate.async.extras:1.2.5'
136136
137137
/* Promise<T> implementation */
138138
/* Necessary because net.tascalate.async.extras uses it as an */
139139
/* 'optional' dependency to avoid concrete version lock-in. */
140140
implementation 'net.tascalate:net.tascalate.concurrent:0.9.6'
141141
142142
/* Necessary only for different providers */
143-
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.provided:1.2.4'
143+
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.provided:1.2.5'
144144
/*
145-
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.propagated:1.2.4'
145+
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.propagated:1.2.5'
146146
*/
147147
148148

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.4</version>
8+
<version>1.2.5</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.examples/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
}
55

66
dependencies {
7-
classpath 'net.tascalate.async:net.tascalate.async.tools.gradle:1.2.4'
7+
classpath 'net.tascalate.async:net.tascalate.async.tools.gradle:1.2.5'
88
classpath 'net.tascalate.javaflow:net.tascalate.javaflow.tools.gradle:2.7.3'
99
}
1010
}
@@ -19,12 +19,12 @@ repositories {
1919
}
2020

2121
dependencies {
22-
implementation 'net.tascalate.async:net.tascalate.async.runtime:1.2.4'
23-
implementation 'net.tascalate.async:net.tascalate.async.extras:1.2.4'
22+
implementation 'net.tascalate.async:net.tascalate.async.runtime:1.2.5'
23+
implementation 'net.tascalate.async:net.tascalate.async.extras:1.2.5'
2424

2525
/* Necessary only for different providers */
26-
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.propagated:1.2.4'
27-
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.provided:1.2.4'
26+
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.propagated:1.2.5'
27+
runtimeOnly 'net.tascalate.async:net.tascalate.async.resolver.provided:1.2.5'
2828

2929
/* Promise<T> implementation */
3030
/* Necessary because net.tascalate.async.extras uses it as an */
@@ -44,7 +44,7 @@ dependencies {
4444
}
4545

4646
group = 'net.tascalate.async.examples'
47-
version = '1.2.4'
47+
version = '1.2.5'
4848
description = 'Tascalate Async/Await - Simple Examples'
4949
java.sourceCompatibility = JavaVersion.VERSION_1_9
5050

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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

net.tascalate.async.tools.core/src/main/java/net/tascalate/async/tools/core/ToolsHelper.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ public static AsyncAwaitClassFileGenerator createGenerator(List<URL> classPath)
4444
ClassLoader effectiveClassLoader = loadAdditionalClassPath(classPath);
4545
return new AsyncAwaitClassFileGenerator(
4646
new ClasspathResourceLoader(effectiveClassLoader)
47-
);
47+
) {
48+
@SuppressWarnings("unused")
49+
private final Object hardRef = effectiveClassLoader;
50+
};
4851
}
4952

5053
private static ClassLoader loadAdditionalClassPath(List<URL> classPath) {

net.tascalate.async.tools.gradle/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.4</version>
8+
<version>1.2.5</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.4</version>
8+
<version>1.2.5</version>
99
<relativePath>../</relativePath>
1010
</parent>
1111

pom.xml

+1-1
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.4</version>
7+
<version>1.2.5</version>
88
<packaging>pom</packaging>
99

1010
<name>Tascalate Async/Await</name>

0 commit comments

Comments
 (0)