From 6927c51885bb3073b310150c4f40c64eea44a919 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 22 Jan 2023 00:30:51 +0000 Subject: refactor(web/server): Convert resources to Java This change converts the resource classes of the OpenDC web server to use Java, The Quarkus integration for Java is more mature and the programming quality of experience is not that much worse. --- buildSrc/src/main/kotlin/quarkus-conventions.gradle.kts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'buildSrc/src/main/kotlin') diff --git a/buildSrc/src/main/kotlin/quarkus-conventions.gradle.kts b/buildSrc/src/main/kotlin/quarkus-conventions.gradle.kts index f1adb182..3bd3d85a 100644 --- a/buildSrc/src/main/kotlin/quarkus-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/quarkus-conventions.gradle.kts @@ -29,25 +29,11 @@ import org.gradle.kotlin.dsl.kotlin import org.gradle.kotlin.dsl.withType plugins { - id("kotlin-conventions") - kotlin("plugin.allopen") - kotlin("plugin.jpa") + id("java-conventions") id("testing-conventions") id("io.quarkus") } -/* Mark necessary classes as open in Kotlin */ -allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") - annotation("io.quarkus.test.junit.QuarkusTest") - annotation("javax.persistence.Entity") -} - -/* Include metadata for method parameters */ -tasks.withType { - kotlinOptions.javaParameters = true -} /* Launch Quarkus dev mode from project root directory */ tasks.quarkusDev { -- cgit v1.2.3