Skip to content

Commit 56f264e

Browse files
authored
2.0.0 Fixed Packaging (#32)
1 parent 36ac396 commit 56f264e

19 files changed

+41
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ try (NatsServerRunner server = new NatsServerRunner()) {
2727
System.out.println("Server running on port: " + server.getPort())
2828
Connection c = Nats.connect(server.getURI());
2929
...
30-
}
30+
}
3131
```
3232

3333
### Builder

build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
id 'signing'
1212
}
1313

14-
def jarVersion = "1.2.8"
14+
def jarVersion = "2.0.0"
1515
group = 'io.nats'
1616

1717
def isMerge = System.getenv("BUILD_EVENT") == "push"
@@ -38,11 +38,6 @@ dependencies {
3838

3939
test {
4040
useJUnitPlatform()
41-
testLogging {
42-
exceptionFormat = 'full'
43-
events "started", "passed", "skipped", "failed"
44-
showStandardStreams = true
45-
}
4641
}
4742

4843
javadoc {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
public class ClusterInsert {
1717
public final ClusterNode node;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
import java.nio.file.Path;
1717

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
import java.util.function.Supplier;
1717
import java.util.logging.Level;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
public enum DebugLevel {
1717
DEBUG("-D"), // Enable debugging output
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
import java.util.function.Supplier;
1717
import java.util.logging.Level;

src/main/java/nats/io/NatsOutputLogger.java renamed to src/main/java/io/nats/NatsOutputLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
import java.io.BufferedReader;
1717
import java.io.IOException;

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
import java.io.BufferedReader;
1717
import java.io.File;
1818
import java.io.IOException;
1919
import java.io.InputStreamReader;
2020
import java.net.ServerSocket;
21+
import java.nio.file.Files;
2122
import java.nio.file.Path;
2223
import java.nio.file.Paths;
2324
import java.util.ArrayList;
@@ -240,6 +241,10 @@ public static List<ClusterInsert> createClusterInserts(int count, String cluster
240241
return createClusterInserts(createNodes(count, clusterName, serverNamePrefix, monitor, jsStoreDirBase));
241242
}
242243

244+
public static Path getTemporaryJetStreamStoreDirBase() throws IOException {
245+
return Files.createTempDirectory(null);
246+
}
247+
243248
public static void defaultHost(String defaultHost) {
244249
DEFAULT_HOST = defaultHost;
245250
}

src/main/java/nats/io/NatsServerRunner.java renamed to src/main/java/io/nats/NatsServerRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
package nats.io;
14+
package io.nats;
1515

1616
import java.io.*;
1717
import java.net.ConnectException;
@@ -28,7 +28,7 @@
2828
import java.util.regex.Matcher;
2929
import java.util.regex.Pattern;
3030

31-
import static nats.io.NatsRunnerUtils.*;
31+
import static io.nats.NatsRunnerUtils.*;
3232

3333
/**
3434
* Server Runner

0 commit comments

Comments
 (0)