-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from RADAR-base/release-0.7.1
Release 0.7.1
- Loading branch information
Showing
60 changed files
with
155 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/src/integrationTest | ||
/src/test | ||
/radar-gateway/src/integrationTest | ||
/radar-gateway/src/test | ||
/build | ||
/out | ||
/.git | ||
|
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
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
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,97 @@ | ||
import java.time.Duration | ||
|
||
plugins { | ||
application | ||
kotlin("plugin.serialization") version Versions.kotlin | ||
id("com.avast.gradle.docker-compose") version Versions.dockerCompose | ||
} | ||
|
||
description = "RADAR Gateway to handle secured data flow to backend." | ||
|
||
application { | ||
mainClass.set("org.radarbase.gateway.MainKt") | ||
|
||
applicationDefaultJvmArgs = listOf( | ||
"-Dcom.sun.management.jmxremote", | ||
"-Dcom.sun.management.jmxremote.local.only=false", | ||
"-Dcom.sun.management.jmxremote.port=9010", | ||
"-Dcom.sun.management.jmxremote.authenticate=false", | ||
"-Dcom.sun.management.jmxremote.ssl=false", | ||
) | ||
} | ||
|
||
val integrationTestSourceSet = sourceSets.create("integrationTest") { | ||
compileClasspath += sourceSets.main.get().output | ||
runtimeClasspath += sourceSets.main.get().output | ||
} | ||
|
||
val integrationTestImplementation: Configuration by configurations.getting { | ||
extendsFrom(configurations.testImplementation.get()) | ||
} | ||
|
||
val integrationTest by tasks.registering(Test::class) { | ||
description = "Runs integration tests." | ||
group = "verification" | ||
testClassesDirs = integrationTestSourceSet.output.classesDirs | ||
classpath = integrationTestSourceSet.runtimeClasspath | ||
testLogging.showStandardStreams = true | ||
shouldRunAfter("test") | ||
outputs.upToDateWhen { false } | ||
} | ||
|
||
dockerCompose { | ||
useComposeFiles.set(listOf("src/integrationTest/docker/docker-compose.yml")) | ||
val dockerComposeBuild: String? by project | ||
val doBuild = dockerComposeBuild?.toBoolean() ?: true | ||
buildBeforeUp.set(doBuild) | ||
buildBeforePull.set(doBuild) | ||
buildAdditionalArgs.set(emptyList<String>()) | ||
val dockerComposeStopContainers: String? by project | ||
stopContainers.set(dockerComposeStopContainers?.toBoolean() ?: true) | ||
waitForTcpPortsTimeout.set(Duration.ofMinutes(3)) | ||
environment.put("SERVICES_HOST", "localhost") | ||
captureContainersOutputToFiles.set(project.file("build/container-logs")) | ||
isRequiredBy(integrationTest) | ||
} | ||
|
||
configurations["integrationTestRuntimeOnly"].extendsFrom(configurations.testRuntimeOnly.get()) | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib-jdk8")) | ||
implementation(kotlin("reflect")) | ||
|
||
implementation("org.radarbase:radar-commons:${Versions.radarCommons}") | ||
implementation("org.radarbase:radar-commons-kotlin:${Versions.radarCommons}") | ||
implementation("org.radarbase:radar-jersey:${Versions.radarJersey}") | ||
implementation("org.radarbase:managementportal-client:${Versions.radarAuth}") | ||
implementation("org.radarbase:lzfse-decode:${Versions.lzfse}") | ||
implementation("org.radarbase:radar-auth:${Versions.radarAuth}") | ||
|
||
implementation("org.apache.kafka:kafka-clients:${Versions.kafka}") | ||
implementation("io.confluent:kafka-avro-serializer:${Versions.confluent}") | ||
implementation("io.confluent:kafka-schema-registry-client:${Versions.confluent}") | ||
|
||
implementation(platform("com.fasterxml.jackson:jackson-bom:${Versions.jackson}")) | ||
implementation("com.fasterxml.jackson.core:jackson-databind") | ||
|
||
implementation(platform("io.ktor:ktor-bom:${Versions.ktor}")) | ||
implementation("io.ktor:ktor-client-auth") | ||
|
||
runtimeOnly("org.apache.avro:avro:${Versions.avro}") | ||
|
||
runtimeOnly("org.glassfish.grizzly:grizzly-framework-monitoring:${Versions.grizzly}") | ||
runtimeOnly("org.glassfish.grizzly:grizzly-http-monitoring:${Versions.grizzly}") | ||
runtimeOnly("org.glassfish.grizzly:grizzly-http-server-monitoring:${Versions.grizzly}") | ||
|
||
testImplementation("org.mockito.kotlin:mockito-kotlin:${Versions.mockitoKotlin}") | ||
testImplementation("org.hamcrest:hamcrest:${Versions.hamcrest}") | ||
|
||
integrationTestImplementation(platform("io.ktor:ktor-bom:${Versions.ktor}")) | ||
integrationTestImplementation("io.ktor:ktor-client-content-negotiation") | ||
integrationTestImplementation("io.ktor:ktor-client-content-negotiation") | ||
integrationTestImplementation("io.ktor:ktor-serialization-kotlinx-json") | ||
|
||
testImplementation("org.radarbase:radar-schemas-commons:${Versions.radarSchemas}") | ||
integrationTestImplementation("org.radarbase:radar-schemas-commons:${Versions.radarSchemas}") | ||
integrationTestImplementation("org.radarbase:radar-commons-testing:${Versions.radarCommons}") | ||
} |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.