Skip to content

Commit aab1b0d

Browse files
authored
Start 3.0.0 (#39)
1 parent 7791cf4 commit aab1b0d

File tree

11 files changed

+356
-151
lines changed

11 files changed

+356
-151
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Useful for running unit or integration tests on the localhost.
2020
By default, the server is found in your path in this order:
2121
- the `executablePath` set in the builder
2222
- the path found in the `nats_server_path` environment variable
23-
- the path set via `NatsRunnerUtils.setServerPath` (deprecated, prefer setting in builder)
2423
- `nats-server` somewhere in the machine's path.
2524

2625
For simple setup, constructors work well

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
id("signing")
1212
}
1313

14-
def jarVersion = "2.1.1"
14+
def jarVersion = "3.0.0"
1515
group = 'io.nats'
1616

1717
def isRelease = System.getenv("BUILD_EVENT") == "release"

src/main/java/io/nats/NatsRunnerUtils.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,6 @@ public abstract class NatsRunnerUtils {
5454

5555
private NatsRunnerUtils() {}
5656

57-
/**
58-
* Build a standard nats://localhost:port uri
59-
* @param port the port
60-
* @return the uri
61-
* @deprecated Use {@link #getNatsLocalhostUri(int)} instead.
62-
*/
63-
@Deprecated
64-
public static String getURIForPort(int port) {
65-
return getUri(NATS, LOCALHOST, port);
66-
}
67-
6857
/**
6958
* Build a nats://localhost:port uri
7059
* @param port the port
@@ -105,25 +94,6 @@ public static String getUri(String schema, String host, int port) {
10594
return schema + "://" + host + ":" + port;
10695
}
10796

108-
/**
109-
* Set the path for the server. Will be used if {@value #NATS_SERVER_PATH_ENV} environment variable is not set.
110-
* @deprecated Use {@link NatsServerRunner#setPreferredServerPath} instead
111-
* @param serverPath the fully qualified path of the server
112-
*/
113-
@Deprecated
114-
public static void setServerPath(String serverPath) {
115-
NatsServerRunner.setPreferredServerPath(serverPath);
116-
}
117-
118-
/**
119-
* Clear the default path for the server.
120-
* @deprecated Use {@link NatsServerRunner#clearPreferredServerPath} instead
121-
*/
122-
@Deprecated
123-
public static void clearServerPath() {
124-
NatsServerRunner.clearPreferredServerPath();
125-
}
126-
12797
/**
12898
* Resolves the server executable path in this order:
12999
* <ol>

0 commit comments

Comments
 (0)