Skip to content

Commit 8b15baa

Browse files
committed
moving project strucutre to top level gradle project
1 parent ea29588 commit 8b15baa

File tree

121 files changed

+927
-264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+927
-264
lines changed
17 Bytes
Binary file not shown.
129 KB
Binary file not shown.
269 KB
Binary file not shown.
Binary file not shown.

.gradle/7.6.1/dependencies-accessors/gc.properties

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
1 Byte
Binary file not shown.
32.5 KB
Binary file not shown.
17 Bytes
Binary file not shown.
21.9 KB
Binary file not shown.

.gradle/7.6.1/gc.properties

Whitespace-only changes.
17 Bytes
Binary file not shown.
40.8 KB
Binary file not shown.
128 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 Byte
Binary file not shown.
23.4 KB
Binary file not shown.
17 Bytes
Binary file not shown.
Binary file not shown.

.gradle/8.11.1/gc.properties

Whitespace-only changes.

.gradle/8.4/checksums/checksums.lock

17 Bytes
Binary file not shown.
24.7 KB
Binary file not shown.
25.1 KB
Binary file not shown.
Binary file not shown.

.gradle/8.4/dependencies-accessors/gc.properties

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
1 Byte
Binary file not shown.

.gradle/8.4/fileHashes/fileHashes.bin

18.3 KB
Binary file not shown.
17 Bytes
Binary file not shown.

.gradle/8.4/gc.properties

Whitespace-only changes.
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#Wed Feb 19 11:07:08 EST 2025
2+
gradle.version=7.6.1
19.1 KB
Binary file not shown.

.gradle/file-system.probe

8 Bytes
Binary file not shown.

.gradle/vcs-1/gc.properties

Whitespace-only changes.

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/autoscaler/redis-cloud-autoscaler/redis-cloud-autoscaler.redis-cloud-autoscaler.main.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/autoscaler/redis-cloud-autoscaler/redis-cloud-autoscaler.redis-cloud-autoscaler.test.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.tfvars.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
gcp_project = "YOUR_GCP_PROJECT_ID"
2+
dns-zone-name="DNS_ZONE_NAME"
3+
subdomain="FULLY_QUALIFIED_DNS_SUBDOMAIN"
4+
redis_cloud_account_key = "REDIS_CLOUD_ACCOUNT_KEY"
5+
redis_cloud_api_key = "REDIS_CLOUD_API_KEY"
6+
sub_name = "NAME_FOR_YOUR_SUBSCRIPTION"
7+
db_name = "NAME_FOR_YOUR_DATABASE"
8+
last_four_digits="LAST_FOUR_DIGITS_OF_YOUR_CREDIT_CARD"

autoscaler/.gitignore renamed to autoscaler/redis-cloud-autoscaler/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
HELP.md
2-
.gradle
2+
../.gradle
33
build/
44
!gradle/wrapper/gradle-wrapper.jar
55
!**/src/main/**/build/
@@ -37,7 +37,7 @@ out/
3737
.vscode/
3838
.gradle
3939
**/build/
40-
!src/**/build/
40+
!redis-cloud-autoscaler/src/**/build/
4141

4242
# Ignore Gradle GUI config
4343
gradle-app.setting
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
project_description = Redis Cloud Autoscaler
File renamed without changes.

autoscaler/build.gradle renamed to autoscaler/redis-cloud-autoscaler/redis-cloud-autoscaler.gradle

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1-
plugins {
1+
plugins{
22
id 'java'
3-
id 'org.springframework.boot' version '3.4.2'
4-
id 'io.spring.dependency-management' version '1.1.7'
3+
id 'org.springframework.boot'
4+
id 'io.spring.dependency-management'
55
}
66

7-
group = 'com.redis'
8-
version = '0.0.1-SNAPSHOT'
9-
10-
java {
11-
toolchain {
12-
languageVersion = JavaLanguageVersion.of(17)
13-
}
14-
}
15-
16-
repositories {
17-
mavenCentral()
18-
}
197

208
dependencies {
9+
// annotationProcessor 'redis.clients:jedis:5.2.0'
10+
// implementation 'redis.clients:jedis:5.2.0'
11+
implementation 'redis.clients:jedis'
2112
implementation 'org.springframework.boot:spring-boot-starter-web'
22-
implementation 'com.redis.om:redis-om-spring:0.9.8'
2313
implementation 'ch.qos.logback:logback-classic'
2414
implementation 'org.projectlombok:lombok'
2515
implementation 'io.micrometer:micrometer-registry-prometheus'
16+
implementation 'org.springframework.data:spring-data-redis'
17+
// implementation 'org.springframework.data:spring-data-redis:3.3.7'
2618
implementation 'org.springframework.boot:spring-boot-starter-actuator'
2719
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
2820
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
21+
2922
implementation 'org.apache.httpcomponents.client5:httpclient5:5.4.1'
30-
annotationProcessor 'org.projectlombok:lombok'
23+
implementation 'com.redis.om:redis-om-spring:0.9.8'
3124
annotationProcessor 'com.redis.om:redis-om-spring:0.9.8'
25+
annotationProcessor 'org.projectlombok:lombok'
26+
testAnnotationProcessor 'com.redis.om:redis-om-spring:0.9.8'
3227
testAnnotationProcessor 'org.projectlombok:lombok'
33-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
28+
testImplementation ('org.springframework.boot:spring-boot-starter-test')
29+
{
30+
exclude group: "com.vaadin.external.google", module: "android-json"
31+
}
3432
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
3533
}
3634

autoscaler/src/main/java/com/redis/autoscaler/RedisConfig.java renamed to autoscaler/redis-cloud-autoscaler/src/main/java/com/redis/autoscaler/RedisConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import org.springframework.context.annotation.Bean;
44
import org.springframework.context.annotation.Configuration;
55
import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
6-
import org.springframework.data.redis.connection.jedis.JedisClientConfiguration;
76
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
87
import org.springframework.data.redis.core.RedisTemplate;
98

autoscaler/src/test/java/com/redis/autoscaler/AutoscalerApplicationTests.java renamed to autoscaler/redis-cloud-autoscaler/src/test/java/com/redis/autoscaler/AutoscalerApplicationTests.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
44
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
5+
import com.redis.autoscaler.documents.RuleRepository;
56
import com.redis.autoscaler.documents.RuleType;
67
import com.redis.autoscaler.documents.AlertWebhook;
78
import com.redis.autoscaler.documents.Rule;
89
import com.redis.om.spring.client.RedisModulesClient;
910
import lombok.SneakyThrows;
1011
import org.junit.jupiter.api.Test;
1112
import org.springframework.boot.test.context.SpringBootTest;
13+
import org.springframework.boot.test.mock.mockito.MockBean;
1214
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
13-
import org.springframework.test.context.bean.override.mockito.MockitoBean;
1415
import org.springframework.util.Assert;
1516

1617
import java.io.IOException;
@@ -20,10 +21,12 @@
2021

2122
@SpringBootTest
2223
class AutoscalerApplicationTests {
23-
@MockitoBean
24+
@MockBean
2425
private JedisConnectionFactory jedisConnectionFactory;
25-
@MockitoBean
26+
@MockBean
2627
private RedisModulesClient redisModulesClient;
28+
@MockBean
29+
private RuleRepository ruleRepository;
2730

2831

2932

autoscaler/settings.gradle

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)