Skip to content

Commit

Permalink
Merge pull request #12 from kbase/dev-new_client
Browse files Browse the repository at this point in the history
Move caches from internal -> cache package
  • Loading branch information
MrCreosote authored Apr 12, 2024
2 parents 64b2ed6 + e50e7aa commit 881552f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 15 deletions.
10 changes: 3 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ repositories {
}

compileJava {
if (JavaVersion.current() <= JavaVersion.VERSION_1_8) {
// TODO BUILD remove when we no longer support java 8
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
} else {
options.release = 8
}
// TODO BUILD remove when we no longer support java 8, use `options.release = 11 if necessary`
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
}

test {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/us/kbase/auth/client/AuthClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

import us.kbase.auth.AuthException;
import us.kbase.auth.AuthToken;
import us.kbase.auth.client.internal.StringCache;
import us.kbase.auth.client.internal.TokenCache;
import us.kbase.auth.client.cache.StringCache;
import us.kbase.auth.client.cache.TokenCache;

/** A client for the KBase Auth2 authentication server (https://github.com/kbase/auth2).
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package us.kbase.auth.client.internal;
package us.kbase.auth.client.cache;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package us.kbase.auth.client.internal;
package us.kbase.auth.client.cache;

import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package us.kbase.test.auth.client.internal;
package us.kbase.test.auth.client.cache;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertEquals;
Expand All @@ -12,7 +12,7 @@

import org.junit.Test;

import us.kbase.auth.client.internal.StringCache;
import us.kbase.auth.client.cache.StringCache;
import us.kbase.test.common.TestCommon;

public class StringCacheTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package us.kbase.test.auth.client.internal;
package us.kbase.test.auth.client.cache;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
Expand All @@ -14,7 +14,7 @@
import org.junit.Test;

import us.kbase.auth.AuthToken;
import us.kbase.auth.client.internal.TokenCache;
import us.kbase.auth.client.cache.TokenCache;
import us.kbase.test.common.TestCommon;

public class TokenCacheTest {
Expand Down

0 comments on commit 881552f

Please sign in to comment.