-
Notifications
You must be signed in to change notification settings - Fork 1
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 #245 from RADAR-base/release-4.4.0
Release 4.4.0
- Loading branch information
Showing
52 changed files
with
999 additions
and
653 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,41 @@ | ||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
application | ||
kotlin("jvm") | ||
id("org.jetbrains.kotlin.plugin.noarg") | ||
id("org.jetbrains.kotlin.plugin.jpa") | ||
id("org.jetbrains.kotlin.plugin.allopen") | ||
kotlin("plugin.serialization") | ||
kotlin("plugin.noarg") | ||
kotlin("plugin.jpa") | ||
kotlin("plugin.allopen") | ||
} | ||
|
||
application { | ||
mainClass.set("org.radarbase.authorizer.Main") | ||
applicationDefaultJvmArgs = listOf( | ||
"-Djava.security.egd=file:/dev/./urandom", | ||
"-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager", | ||
) | ||
} | ||
|
||
repositories { | ||
maven(url = "https://oss.sonatype.org/content/repositories/snapshots") | ||
} | ||
|
||
dependencies { | ||
api(kotlin("stdlib-jdk8")) | ||
implementation(kotlin("reflect")) | ||
|
||
val radarJerseyVersion: String by project | ||
implementation("org.radarbase:radar-jersey:$radarJerseyVersion") | ||
implementation("org.radarbase:radar-jersey-hibernate:$radarJerseyVersion") { | ||
val postgresVersion: String by project | ||
runtimeOnly("org.postgresql:postgresql:$postgresVersion") | ||
implementation("org.radarbase:radar-jersey:${Versions.radarJersey}") | ||
implementation("org.radarbase:radar-jersey-hibernate:${Versions.radarJersey}") { | ||
runtimeOnly("org.postgresql:postgresql:${Versions.postgresql}") | ||
} | ||
implementation("org.radarbase:radar-commons-kotlin:${Versions.radarCommons}") | ||
|
||
val slf4jVersion: String by project | ||
implementation("org.slf4j:slf4j-api:$slf4jVersion") | ||
|
||
val okhttpVersion: String by project | ||
implementation("com.squareup.okhttp3:okhttp:$okhttpVersion") | ||
implementation("redis.clients:jedis:${Versions.jedis}") | ||
|
||
val jedisVersion: String by project | ||
implementation("redis.clients:jedis:$jedisVersion") | ||
implementation(enforcedPlatform("io.ktor:ktor-bom:${Versions.ktor}")) | ||
implementation("io.ktor:ktor-client-core") | ||
implementation("io.ktor:ktor-client-auth") | ||
implementation("io.ktor:ktor-client-cio") | ||
implementation("io.ktor:ktor-client-content-negotiation") | ||
implementation("io.ktor:ktor-serialization-kotlinx-json") | ||
|
||
val log4j2Version: String by project | ||
runtimeOnly("org.apache.logging.log4j:log4j-core:$log4j2Version") | ||
runtimeOnly("org.apache.logging.log4j:log4j-slf4j2-impl:$log4j2Version") | ||
runtimeOnly("org.apache.logging.log4j:log4j-jul:$log4j2Version") | ||
|
||
val junitVersion: String by project | ||
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion") | ||
testImplementation("org.hamcrest:hamcrest-all:1.3") | ||
|
||
val mockitoKotlinVersion: String by project | ||
testImplementation("org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion") | ||
|
||
val jerseyVersion: String by project | ||
testImplementation("org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:$jerseyVersion") | ||
} | ||
|
||
tasks.withType<KotlinCompile> { | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
apiVersion = "1.7" | ||
languageVersion = "1.7" | ||
} | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.release.set(17) | ||
} | ||
|
||
tasks.withType<Test> { | ||
useJUnitPlatform() | ||
testLogging { | ||
events("passed", "skipped", "failed") | ||
showStandardStreams = true | ||
exceptionFormat = FULL | ||
} | ||
systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager") | ||
testImplementation("org.hamcrest:hamcrest:${Versions.hamcrest}") | ||
testImplementation("org.mockito.kotlin:mockito-kotlin:${Versions.mockitoKotlin}") | ||
testImplementation("org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:${Versions.jersey}") | ||
} | ||
|
||
allOpen { | ||
annotation("javax.persistence.Entity") | ||
annotation("javax.persistence.MappedSuperclass") | ||
annotation("javax.persistence.Embeddable") | ||
annotation("jakarta.persistence.Entity") | ||
annotation("jakarta.persistence.MappedSuperclass") | ||
annotation("jakarta.persistence.Embeddable") | ||
} |
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
authorizer-app-backend/src/main/java/org/radarbase/authorizer/config/RestSourceClient.kt
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
Oops, something went wrong.