Skip to content

Commit

Permalink
Add missing configuration parameter
Browse files Browse the repository at this point in the history
This was left over when upgrading to test resources 2.3.0.

Fixes #875
  • Loading branch information
melix committed Dec 4, 2023
1 parent 7ef9c39 commit 9c0e9b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ private TaskProvider<StartTestResourcesService> createStartServiceTask(Configura
task.getAccessToken().convention(accessToken);
task.getExplicitPort().convention(config.getExplicitPort());
task.getClientTimeout().convention(config.getClientTimeout());
task.getServerIdleTimeoutMinutes().convention(config.getServerIdleTimeoutMinutes());
task.getClasspath().from(server);
task.getForeground().convention(false);
task.getStopFile().set(stopFile.toFile());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import io.micronaut.testresources.buildtools.KnownModules;
import org.gradle.api.provider.ListProperty;
import org.gradle.api.provider.Property;
import org.gradle.api.provider.Provider;

/**
* Configuration for the test resources plugin.
Expand Down Expand Up @@ -101,4 +102,13 @@ public interface TestResourcesConfiguration extends KnownModules {
* @return the namespace
*/
Property<String> getSharedServerNamespace();

/**
* 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
*/
Provider<Integer> getServerIdleTimeoutMinutes();
}

0 comments on commit 9c0e9b1

Please sign in to comment.