Skip to content

Commit

Permalink
update gradle.build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhuynh27 committed Dec 11, 2021
1 parent 7bc0a04 commit 89d6dd9
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 119 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ repositories {
}

dependencies {
implementation project(':core')
implementation project(':config')
api project(':core')
api project(':config')

implementation 'ch.qos.logback:logback-classic:1.2.7'
implementation 'ch.qos.logback:logback-core:1.2.7'
Expand Down
44 changes: 0 additions & 44 deletions config/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,50 +16,6 @@ javadoc {
}
}

publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'config-loader'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Keva ConfigLoader'
description = 'Keva ConfigLoader utility'
url = 'https://keva.dev/'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://github.com/keva-dev/keva/blob/master/LICENSE'
}
}
developers {
developer {
id = 'tuhuynh27'
name = 'Tu Huynh'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/keva-dev/keva.git'
developerConnection = 'scm:git:ssh://github.com:keva-dev/keva.git'
url = 'https://github.com/keva-dev/keva'
}
}
}
}
}

signing {
sign publishing.publications.mavenJava
}

test {
useJUnitPlatform()
testLogging {
Expand Down
25 changes: 17 additions & 8 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ plugins {
id 'com.adarshr.test-logger' version '2.1.0'
}

evaluationDependsOn(':util')

java {
withJavadocJar()
withSourcesJar()
}

dependencies {
implementation project(':util')
implementation project(':config')
implementation project(':protocol')
implementation project(':store')
implementation project(':config')

implementation 'io.netty:netty-handler:4.1.70.Final'
implementation 'io.netty:netty-buffer:4.1.70.Final'
Expand All @@ -24,17 +27,23 @@ dependencies {
implementation files('libs/keva-ioc-0.1.0-SNAPSHOT.jar')

testImplementation 'redis.clients:jedis:3.7.0'
}

// MTC lib depends on junit 4
testImplementation group: 'junit', name: 'junit', version: '4.12'
// noinspection GradlePackageUpdate
testRuntimeOnly('org.junit.vintage:junit-vintage-engine:5.7.2')
jar {
dependsOn(':util:build')
dependsOn(':config:build')
dependsOn(':protocol:build')
dependsOn(':store:build')
project.configurations.implementation.canBeResolved = true
from {
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
}
}

publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'core'
artifactId = 'kevadb'
from components.java
versionMapping {
usage('java-api') {
Expand All @@ -45,8 +54,8 @@ publishing {
}
}
pom {
name = 'Keva Core'
description = 'KevaDB Core'
name = 'KevaDB'
description = 'KevaDB - Low-latency in-memory key-value store, Redis drop-in alternative'
url = 'https://keva.dev/'
licenses {
license {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/dev/keva/core/aof/AOFManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import dev.keva.ioc.annotation.Autowired;
import dev.keva.ioc.annotation.Component;
import dev.keva.protocol.resp.Command;
import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesKey;
import lombok.extern.slf4j.Slf4j;
import lombok.val;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import dev.keva.core.command.impl.transaction.manager.TransactionManager;
import dev.keva.ioc.annotation.Autowired;
import dev.keva.ioc.annotation.Component;
import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesKey;
import dev.keva.protocol.resp.reply.StatusReply;
import io.netty.channel.ChannelHandlerContext;
import lombok.val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import dev.keva.core.command.mapping.CommandMapper;
import dev.keva.ioc.annotation.Autowired;
import dev.keva.ioc.annotation.Component;
import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.protocol.resp.hashbytes.BytesValue;
import dev.keva.util.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesValue;
import dev.keva.protocol.resp.reply.StatusReply;
import dev.keva.store.KevaDatabase;
import io.netty.channel.ChannelHandlerContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import dev.keva.core.command.mapping.CommandMapper;
import dev.keva.protocol.resp.Command;
import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.protocol.resp.hashbytes.BytesValue;
import dev.keva.util.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesValue;
import dev.keva.protocol.resp.reply.MultiBulkReply;
import dev.keva.protocol.resp.reply.Reply;
import dev.keva.store.KevaDatabase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import dev.keva.ioc.KevaIoC;
import dev.keva.ioc.annotation.Autowired;
import dev.keva.ioc.annotation.Component;
import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesKey;
import dev.keva.protocol.resp.reply.ErrorReply;
import dev.keva.protocol.resp.reply.Reply;
import dev.keva.protocol.resp.reply.StatusReply;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import dev.keva.ioc.annotation.Autowired;
import dev.keva.ioc.annotation.Component;
import dev.keva.protocol.resp.Command;
import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesKey;
import dev.keva.protocol.resp.reply.ErrorReply;
import dev.keva.protocol.resp.reply.Reply;
import io.netty.channel.ChannelHandler.Sharable;
Expand Down
46 changes: 1 addition & 45 deletions protocol/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,9 @@ java {
}

dependencies {
implementation project(':util')
implementation 'io.netty:netty-handler:4.1.70.Final'
implementation 'io.netty:netty-buffer:4.1.70.Final'
implementation 'com.google.guava:guava:31.0.1-jre'
}

publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'protocol-resp'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Keva RESP Protocol'
description = 'Keva RESP Protocol for Netty'
url = 'https://keva.dev/'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://github.com/keva-dev/keva/blob/master/LICENSE'
}
}
developers {
developer {
id = 'tuhuynh27'
name = 'Tu Huynh'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/keva-dev/keva.git'
developerConnection = 'scm:git:ssh://github.com:keva-dev/keva.git'
url = 'https://github.com/keva-dev/keva'
}
}
}
}
}

javadoc {
Expand All @@ -59,10 +19,6 @@ javadoc {
}
}

signing {
sign publishing.publications.mavenJava
}

test {
useJUnitPlatform()
testLogging {
Expand Down
9 changes: 5 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
rootProject.name = 'keva'

include 'app'
include 'core'
include 'store'
include 'protocol'
include 'util'
include 'config'
include 'protocol'
include 'store'
include 'core'
include 'app'
4 changes: 2 additions & 2 deletions store/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ java {
}

dependencies {
implementation project(':protocol')
implementation project(':util')
implementation 'net.openhft:chronicle-map:3.21.86'
implementation 'org.apache.commons:commons-lang3:3.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
}

javadoc {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.keva.store.impl;

import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.protocol.resp.hashbytes.BytesValue;
import dev.keva.util.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesValue;
import dev.keva.store.DatabaseConfig;
import dev.keva.store.KevaDatabase;
import dev.keva.store.lock.SpinLock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.keva.store.impl;

import dev.keva.protocol.resp.hashbytes.BytesKey;
import dev.keva.protocol.resp.hashbytes.BytesValue;
import dev.keva.util.hashbytes.BytesKey;
import dev.keva.util.hashbytes.BytesValue;
import dev.keva.store.KevaDatabase;
import dev.keva.store.lock.SpinLock;
import lombok.Getter;
Expand Down
27 changes: 27 additions & 0 deletions util/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
plugins {
id 'com.adarshr.test-logger' version '2.1.0'
}

java {
withJavadocJar()
withSourcesJar()
}

dependencies {
implementation 'com.google.guava:guava:31.0.1-jre'
}

javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
outputs.upToDateWhen { false }
showStandardStreams = true
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.keva.protocol.resp.hashbytes;
package dev.keva.util.hashbytes;

import com.google.common.primitives.SignedBytes;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.keva.protocol.resp.hashbytes;
package dev.keva.util.hashbytes;

import java.io.Serializable;

Expand Down

0 comments on commit 89d6dd9

Please sign in to comment.