Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
update to version 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
0312birdzhang committed May 30, 2016
1 parent d24e0ea commit cce2810
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 8 deletions.
Binary file modified .gradle/1.9/taskArtifacts/cache.properties.lock
Binary file not shown.
Binary file modified .gradle/1.9/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/1.9/taskArtifacts/fileSnapshots.bin
Binary file not shown.
Binary file modified .gradle/1.9/taskArtifacts/outputFileStates.bin
Binary file not shown.
Binary file modified .gradle/1.9/taskArtifacts/taskArtifacts.bin
Binary file not shown.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,19 @@ $./gradlew task sourcesJar

$./gradlew task javadocJar


## Use via Maven

```
<dependency>
<groupId>com.github.0312birdzhang</groupId>
<artifactId>zabbix4j</artifactId>
<version>0.1.5</version>
<version>0.1.6</version>
</dependency>
```


## License

This software is distributed under the MIT License.

6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jar.libsDir = './lib'

group = "com.github.0312birdzhang"
archivesBaseName = "zabbix4j"
version = '0.1.4'
version = '0.1.6'

repositories {
mavenCentral()
Expand Down Expand Up @@ -66,10 +66,10 @@ uploadArchives {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"){
authentication(userName: ossrhUsername, password: ossrhPassword)
authentication(userName: "BirdZhang", password: "")
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/"){
authentication(userName: ossrhUsername, password: ossrhPassword)
authentication(userName: "BirdZhang", password: "")
}

pom.project {
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
signing.keyId=
signing.password=
signing.secretKeyRingFile=C:/Users/Administrator/AppData/Roaming/gnupg/secring.gpg
2 changes: 1 addition & 1 deletion src/test/java/com/zabbix4j/Zabbix4jSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

public class Zabbix4jSample {

public static final String ZBX_URL = "http://127.0.0.1/zabbix/api_jsonrpc.php";
public static final String ZBX_URL = "http://zabbix.dev.corp.flamingo-inc.com/api_jsonrpc.php";
public static final String USERNAME = "admin";
public static final String PASSWORD = "zabbix";

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/zabbix4j/ZabbixApiTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ZabbixApiTestBase() {

protected void login(String user, String password) {
try {
zabbixApi = new ZabbixApi("http://192.168.200.10/zabbix/api_jsonrpc.php");
zabbixApi = new ZabbixApi("http://zabbix.dev.corp.flamingo-inc.com/api_jsonrpc.php");
zabbixApi.login(user, password);
} catch (ZabbixApiException e) {
fail(e.getMessage());
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/zabbix4j/action/ActionExistsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public ActionExistsTest() {

@Test
public void testExists() throws Exception {
final Integer actionid = 25;
final Integer actionid = 3;

ActionExistsRequest request = new ActionExistsRequest();
ActionExistsRequest.Params params = request.getParams();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/zabbix4j/user/UserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public UserTest() {
@Test
public void testLogin1() {

User user = new User("http://192.168.200.10/zabbix/api_jsonrpc.php");
User user = new User("http://zabbix.dev.corp.flamingo-inc.com/api_jsonrpc.php");
UserLoginRequest request = new UserLoginRequest();
request.getParams().setUser("admin");
request.getParams().setPassword("zabbix");
Expand Down

0 comments on commit cce2810

Please sign in to comment.