-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Introduced modules file, db, and faker
- Loading branch information
Showing
92 changed files
with
2,897 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/KeyComparisonStatusCountItemWriter.java → ...e/KeyComparisonStatusCountItemWriter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...core/replicate/KeyValueWriteListener.java → ...edis/riot/core/KeyValueWriteListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../riot/core/replicate/ReplicationMode.java → .../com/redis/riot/core/ReplicationMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Copyright 2022-2023 The RIOT authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
project_description = RIOT DB | ||
automatic.module.name = com.redis.riot.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2020-2023 The RIOT authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
config { | ||
licensing { | ||
enabled = false | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation project(':riot-core') | ||
implementation 'org.springframework.boot:spring-boot-autoconfigure' | ||
implementation 'org.springframework:spring-jdbc' | ||
implementation 'com.mysql:mysql-connector-j' | ||
implementation 'org.postgresql:postgresql' | ||
implementation group: 'com.ibm.db2', name: 'jcc', version: db2Version | ||
implementation group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: mssqlVersion | ||
implementation group: 'com.oracle.ojdbc', name: 'ojdbc8', version: oracleVersion | ||
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: sqliteVersion | ||
testImplementation group: 'com.redis', name: 'spring-batch-redis', version: springBatchRedisVersion, classifier: 'tests' | ||
testImplementation group: 'org.testcontainers', name: 'postgresql', version: testcontainersVersion | ||
testImplementation group: 'org.testcontainers', name: 'oracle-xe', version: testcontainersVersion | ||
} | ||
|
||
compileJava { | ||
options.compilerArgs += ["-AprojectPath=${project.group}/${project.name}"] | ||
} | ||
|
||
if (!(project.findProperty('automatic.module.name.skip') ?: false).toBoolean()) { | ||
jar { | ||
manifest { | ||
attributes('Automatic-Module-Name': project.findProperty('automatic.module.name')) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...redis/riot/core/db/DataSourceOptions.java → .../com/redis/riot/db/DataSourceOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.redis.riot.core.db; | ||
package com.redis.riot.db; | ||
|
||
public class DataSourceOptions { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...om/redis/riot/core/db/DatabaseExport.java → ...ava/com/redis/riot/db/DatabaseExport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.redis.riot.core.db; | ||
package com.redis.riot.db; | ||
|
||
import java.util.Map; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...om/redis/riot/core/db/DatabaseImport.java → ...ava/com/redis/riot/db/DatabaseImport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.redis.riot.core.db; | ||
package com.redis.riot.db; | ||
|
||
import java.util.Map; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...com/redis/riot/core/db/DatabaseUtils.java → ...java/com/redis/riot/db/DatabaseUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.redis.riot.core.db; | ||
package com.redis.riot.db; | ||
|
||
import javax.sql.DataSource; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...va/com/redis/riot/core/PostgresTests.java → ...java/com/redis/riot/db/PostgresTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.redis.riot.core; | ||
package com.redis.riot.db; | ||
|
||
import java.io.IOException; | ||
import java.sql.ResultSet; | ||
|
2 changes: 1 addition & 1 deletion
2
.../com/redis/riot/core/SqlScriptRunner.java → ...va/com/redis/riot/db/SqlScriptRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Copyright 2022-2023 The RIOT authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
project_description = RIOT Faker | ||
automatic.module.name = com.redis.riot.faker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2020-2023 The RIOT authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
config { | ||
licensing { | ||
enabled = false | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation project(':riot-core') | ||
implementation group: 'net.datafaker', name: 'datafaker', version: datafakerVersion | ||
} | ||
|
||
compileJava { | ||
options.compilerArgs += ["-AprojectPath=${project.group}/${project.name}"] | ||
} | ||
|
||
if (!(project.findProperty('automatic.module.name.skip') ?: false).toBoolean()) { | ||
jar { | ||
manifest { | ||
attributes('Automatic-Module-Name': project.findProperty('automatic.module.name')) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...om/redis/riot/core/faker/FakerImport.java → ...ava/com/redis/riot/faker/FakerImport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...edis/riot/core/faker/FakerItemReader.java → ...com/redis/riot/faker/FakerItemReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ore/faker/ReflectivePropertyAccessor.java → ...iot/faker/ReflectivePropertyAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Copyright 2022-2023 The RIOT authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
project_description = RIOT File | ||
automatic.module.name = com.redis.riot.file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2020-2023 The RIOT authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
config { | ||
licensing { | ||
enabled = false | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation project(':riot-core') | ||
implementation 'org.springframework:spring-oxm' | ||
implementation group: 'org.springframework.cloud', name: 'spring-cloud-aws-context', version: awsVersion | ||
implementation group: 'org.springframework.cloud', name: 'spring-cloud-aws-autoconfigure', version: awsVersion | ||
implementation (group: 'org.springframework.cloud', name: 'spring-cloud-gcp-starter-storage', version: gcpVersion) { | ||
exclude group: 'javax.annotation', module: 'javax.annotation-api' | ||
} | ||
testImplementation group: 'com.redis', name: 'spring-batch-redis', version: springBatchRedisVersion, classifier: 'tests' | ||
} | ||
|
||
compileJava { | ||
options.compilerArgs += ["-AprojectPath=${project.group}/${project.name}"] | ||
} | ||
|
||
if (!(project.findProperty('automatic.module.name.skip') ?: false).toBoolean()) { | ||
jar { | ||
manifest { | ||
attributes('Automatic-Module-Name': project.findProperty('automatic.module.name')) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...redis/riot/core/file/AmazonS3Options.java → .../com/redis/riot/file/AmazonS3Options.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.redis.riot.core.file; | ||
package com.redis.riot.file; | ||
|
||
public class AmazonS3Options { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...t/core/file/AmazonS3ProtocolResolver.java → ...s/riot/file/AmazonS3ProtocolResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.