Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to test resources 2.3.0 #890

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ alpine="3.16"
graalvmPlugin = "0.9.28"
micronaut-platform = "4.2.0" # This is the platform version, used in our tests
micronaut-aot = "2.1.1"
micronaut-testresources = "2.2.0"
micronaut-testresources = "2.3.0"
micronaut-openapi = "6.2.2"
log4j2 = { require = "2.17.1", reject = ["]0, 2.17["] }
jetbrains-annotations = "24.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ public abstract class StartTestResourcesService extends DefaultTask {
@Optional
public abstract Property<Integer> getClientTimeout();

/**
* Server idle timeout, in minutes. If the server
* doesn't receive any request for this amount of
* time, it will stop itself.
*
* @return the server idle timeout
*/
@Input
@Optional
public abstract Property<Integer> getServerIdleTimeoutMinutes();

/**
* Allows starting the test server in foreground
* instead of background, in which case the build
Expand Down Expand Up @@ -228,6 +239,7 @@ public void waitFor(Duration duration) throws InterruptedException {
cdsDir,
getClasspath().getFiles(),
getClientTimeout().getOrNull(),
getServerIdleTimeoutMinutes().getOrNull(),
serverFactory);
}

Expand Down
Loading