Skip to content

Commit

Permalink
refactor: merged riot-* into single app
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Apr 21, 2023
1 parent 2581949 commit e84b983
Show file tree
Hide file tree
Showing 289 changed files with 3,477 additions and 950 deletions.
75 changes: 48 additions & 27 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,44 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2022-2023 The Jarviz 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 {
info {
description = 'Redis Input/Output Tools'
description = 'riot'
inceptionYear = '2020'
vendor = 'Redis'
tags = ['redis', 'tool', 'import', 'export', 'replication']

bytecodeVersion = 8

links {
website = "https://github.com/redis-developer/${project.rootProject.name}"
issueTracker = "https://github.com/redis-developer/${project.rootProject.name}/issues"
scm = "https://github.com/redis-developer/${project.rootProject.name}.git"
}

scm {
url = "https://github.com/redis-developer/${project.rootProject.name}"
connection = "scm:git:https://github.com/redis-developer/${project.rootProject.name}.git"
developerConnection = "scm:git:[email protected]:redis-developer/${project.rootProject.name}.git"
}

specification {
enabled = true
}

implementation {
enabled = true
}
Expand All @@ -33,27 +51,15 @@ config {
}
}
}

docs {
javadoc {
autoLinks {
enabled = false
}
}
sourceHtml {
enabled = false
}
}

licensing {
enabled = false
licenses {
license {
id = 'Apache-2.0'
}
}
}


coverage {
jacoco {
enabled = true
Expand All @@ -67,11 +73,11 @@ allprojects {
mavenLocal()
gradlePluginPortal()
}

tasks.withType(GenerateModuleMetadata) {
enabled = false
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand All @@ -83,20 +89,20 @@ subprojects {
description = project.project_description
}
}

license {
exclude('build/**')
}

dependencies {
compileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: jsr305Version
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation group: 'commons-io', name: 'commons-io', version: commonsIoVersion
testImplementation(group: 'com.redis.testcontainers', name: 'testcontainers-redis-junit', version: testcontRedisVersion) {
testImplementation(group: 'com.redis.testcontainers', name: 'testcontainers-redis-junit', version: testcontainersRedisVersion) {
exclude group: 'com.redis', module: 'lettucemod'
}
}

test {
useJUnitPlatform()
}
Expand Down Expand Up @@ -128,15 +134,15 @@ subprojects {
jvmArgs("--add-opens","java.base/sun.nio.ch=ALL-UNNAMED","--add-opens","java.base/java.io=ALL-UNNAMED")
}
resources {
from("$rootDir/core/riot-core/src/docs/resources/images") {
from("$rootDir/core/riot-engine/src/docs/resources/images") {
include '**/*'
}
}
baseDirFollowsSourceFile()
attributes \
'icons': 'font',
'docinfo1': '',
'includedir': "$rootDir/core/riot-core/src/docs/asciidoc",
'includedir': "$rootDir/core/riot-engine/src/docs/asciidoc",
'sectanchors': 'true',
'source-highlighter': 'coderay',
'coderay-linenums-mode': 'table',
Expand All @@ -149,3 +155,18 @@ subprojects {
'project-title': config.info.description
}
}

subprojects { p ->
config {
coverage {
jacoco {
enabled = hasTestsAt(p.file('src/test'))
toolVersion = jacocoVersion
}
}
}
}

boolean hasTestsAt(File testDir) {
testDir.exists() && testDir.listFiles()?.size()
}
1 change: 0 additions & 1 deletion connectors/riot-db/gradle.properties

This file was deleted.

27 changes: 0 additions & 27 deletions connectors/riot-db/riot-db.gradle

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-file/gradle.properties

This file was deleted.

24 changes: 0 additions & 24 deletions connectors/riot-file/riot-file.gradle

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-gen/gradle.properties

This file was deleted.

21 changes: 0 additions & 21 deletions connectors/riot-gen/riot-gen.gradle

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-redis/gradle.properties

This file was deleted.

23 changes: 0 additions & 23 deletions connectors/riot-redis/riot-redis.gradle

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-redis/src/test/resources/replicate

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-redis/src/test/resources/replicate-dry-run

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-redis/src/test/resources/replicate-ds-live

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-redis/src/test/resources/replicate-hll

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion connectors/riot-redis/src/test/resources/replicate-live

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 19 additions & 1 deletion core/riot-core/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
project_description = 'RIOT Core'
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2022-2023 The Jarviz 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 Engine
automatic.module.name = com.redis.riot.engine
Loading

0 comments on commit e84b983

Please sign in to comment.