Skip to content

Commit

Permalink
Corrected project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed May 14, 2024
1 parent ee7672e commit bfada4d
Show file tree
Hide file tree
Showing 33 changed files with 51 additions and 30 deletions.
16 changes: 6 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,17 @@ allprojects {
}

dependencies {
implementation("com.exactpro.th2:common:$commonVersion") {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
implementation "com.exactpro.th2:cradle-core:$cradleVersion"
implementation "com.exactpro.th2:cradle-cassandra:$cradleVersion"
implementation 'org.apache.commons:commons-lang3'

implementation "org.slf4j:slf4j-api"

testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

testImplementation 'org.mockito:mockito-inline:5.2.0'
testImplementation 'org.mockito:mockito-junit-jupiter:5.10.0'

testImplementation 'com.exactpro.th2:junit-jupiter-integration:0.0.1'

testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
}

test {
Expand Down
12 changes: 10 additions & 2 deletions cradle-admin-tool-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ plugins {
}

dependencies {
implementation project(':')
implementation project(':cradle-admin-tool-core')

implementation("com.exactpro.th2:common:$commonVersion") {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}

implementation "com.exactpro.th2:cradle-core:$cradleVersion"
implementation "com.exactpro.th2:cradle-cassandra:$cradleVersion"

implementation 'commons-cli:commons-cli:1.7.0'

testImplementation project(':').sourceSets.test.output
testImplementation project(':cradle-admin-tool-test')
}

application {
Expand Down
5 changes: 5 additions & 0 deletions cradle-admin-tool-core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies {
implementation "com.exactpro.th2:cradle-core:$cradleVersion"
implementation "com.exactpro.th2:cradle-cassandra:$cradleVersion"
implementation 'org.apache.commons:commons-lang3'
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.cradle.CradleStorage;
import com.exactpro.th2.cradle.adm.results.SimpleResult;
import com.exactpro.cradle.CradleStorage;


public abstract class AbstractMode<T, K extends SimpleResult> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.th2.cradle.adm.results.BooksListInfo;
import com.exactpro.th2.cradle.adm.results.ResultBookInfo;
import com.exactpro.cradle.BookInfo;
import com.exactpro.cradle.utils.CradleStorageException;
import com.exactpro.th2.cradle.adm.params.GetAllBooksParams;
import com.exactpro.th2.cradle.adm.results.BooksListInfo;
import com.exactpro.th2.cradle.adm.results.ResultBookInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.th2.cradle.adm.results.BooksListInfo;
import com.exactpro.th2.cradle.adm.results.ResultBookDetailedInfo;
import com.exactpro.cradle.BookInfo;
import com.exactpro.cradle.PageInfo;
import com.exactpro.cradle.utils.CradleStorageException;
import com.exactpro.th2.cradle.adm.params.GetBookInfoParams;
import com.exactpro.th2.cradle.adm.results.BooksListInfo;
import com.exactpro.th2.cradle.adm.results.ResultBookDetailedInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.th2.cradle.adm.results.BookSchemaInfo;
import com.exactpro.cradle.BookListEntry;
import com.exactpro.th2.cradle.adm.params.NoParams;
import com.exactpro.th2.cradle.adm.results.BookSchemaInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@

package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.th2.cradle.adm.params.NewBookCreationParams;
import com.exactpro.th2.cradle.adm.results.SimpleResult;
import com.exactpro.th2.cradle.adm.params.NewBookCreationParams;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.time.Instant;
import java.util.UUID;


public class NewBookCreationMode extends AbstractMode<NewBookCreationParams, SimpleResult> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.th2.cradle.adm.params.NewPageParams;
import com.exactpro.th2.cradle.adm.results.SimpleResult;
import com.exactpro.th2.cradle.adm.params.NewPageParams;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.th2.cradle.adm.results.SimpleResult;
import com.exactpro.cradle.PageId;
import com.exactpro.cradle.PageInfo;
import com.exactpro.cradle.counters.Interval;
import com.exactpro.cradle.utils.CradleStorageException;
import com.exactpro.th2.cradle.adm.params.RemovePageParams;
import com.exactpro.th2.cradle.adm.results.SimpleResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.cradle.BookInfo;
import com.exactpro.cradle.PageInfo;
import com.exactpro.th2.cradle.adm.results.ResultBookInfo;
import com.exactpro.th2.cradle.adm.results.ResultPageInfo;
import com.exactpro.cradle.BookInfo;
import com.exactpro.cradle.PageInfo;

public class ResultConverter {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.exactpro.th2.cradle.adm.modes;

import com.exactpro.th2.cradle.adm.results.SimpleResult;
import com.exactpro.cradle.PageInfo;
import com.exactpro.th2.cradle.adm.params.UpdatePageParams;
import com.exactpro.th2.cradle.adm.results.SimpleResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
16 changes: 11 additions & 5 deletions cradle-admin-tool-http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@ ext {
}

dependencies {
implementation project(':')
implementation project(':cradle-admin-tool-core')
implementation("com.exactpro.th2:common:$commonVersion") {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
implementation "com.exactpro.th2:cradle-core:$cradleVersion"
implementation "com.exactpro.th2:cradle-cassandra:$cradleVersion"

implementation "org.eclipse.jetty:jetty-server:${jettyVersion}"
implementation "org.eclipse.jetty:jetty-servlet:${jettyVersion}"

implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2'

testImplementation project(':').sourceSets.test.output
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
implementation 'org.apache.commons:commons-lang3'

testImplementation project(':cradle-admin-tool-test')
testImplementation "org.eclipse.jetty:jetty-http:${jettyVersion}:tests"
testImplementation "org.eclipse.jetty:jetty-util:${jettyVersion}"

testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
}

application {
Expand Down
5 changes: 5 additions & 0 deletions cradle-admin-tool-test/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies {
implementation "com.exactpro.th2:cradle-core:$cradleVersion"
implementation "com.exactpro.th2:cradle-cassandra:$cradleVersion"
implementation 'org.apache.commons:commons-lang3'
}
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
rootProject.name = 'th2-cradle-admin-tool'
include 'cradle-admin-tool-http'
include 'cradle-admin-tool-core'
include 'cradle-admin-tool-test'
include 'cradle-admin-tool-cli'

0 comments on commit bfada4d

Please sign in to comment.