From 9015544330f9463176d4f88b2245402cf41332a9 Mon Sep 17 00:00:00 2001 From: jaguililla Date: Mon, 28 Aug 2023 16:38:13 +0200 Subject: [PATCH] Add :serverless module --- build.gradle.kts | 1 + serverless/serverless/build.gradle.kts | 16 ++++++++++++++++ .../hexagonkt/serverless/ServerlessFunction.kt | 3 +++ .../com/hexagonkt/serverless/ServerlessPort.kt | 3 +++ .../serverless/ServerlessFunctionTest.kt | 10 ++++++++++ settings.gradle.kts | 1 + 6 files changed, 34 insertions(+) create mode 100644 serverless/serverless/build.gradle.kts create mode 100644 serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessFunction.kt create mode 100644 serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessPort.kt create mode 100644 serverless/serverless/src/test/kotlin/com/hexagonkt/serverless/ServerlessFunctionTest.kt diff --git a/build.gradle.kts b/build.gradle.kts index 37784af255..1ad76aafe6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -153,6 +153,7 @@ apiValidation { // Experimental modules "rest", "rest_tools", + "serverless", "web", ) ) diff --git a/serverless/serverless/build.gradle.kts b/serverless/serverless/build.gradle.kts new file mode 100644 index 0000000000..4591718a85 --- /dev/null +++ b/serverless/serverless/build.gradle.kts @@ -0,0 +1,16 @@ + +plugins { + id("java-library") +} + +apply(from = "$rootDir/gradle/kotlin.gradle") +apply(from = "$rootDir/gradle/publish.gradle") +apply(from = "$rootDir/gradle/dokka.gradle") +apply(from = "$rootDir/gradle/native.gradle") +apply(from = "$rootDir/gradle/detekt.gradle") + +description = "HTTP serverless functions. Requires an adapter to be used." + +dependencies { + "api"(project(":http:http_handlers")) +} diff --git a/serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessFunction.kt b/serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessFunction.kt new file mode 100644 index 0000000000..f321e2927e --- /dev/null +++ b/serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessFunction.kt @@ -0,0 +1,3 @@ +package com.hexagonkt.serverless + +class ServerlessFunction diff --git a/serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessPort.kt b/serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessPort.kt new file mode 100644 index 0000000000..33ba7aba0d --- /dev/null +++ b/serverless/serverless/src/main/kotlin/com/hexagonkt/serverless/ServerlessPort.kt @@ -0,0 +1,3 @@ +package com.hexagonkt.serverless + +interface ServerlessPort diff --git a/serverless/serverless/src/test/kotlin/com/hexagonkt/serverless/ServerlessFunctionTest.kt b/serverless/serverless/src/test/kotlin/com/hexagonkt/serverless/ServerlessFunctionTest.kt new file mode 100644 index 0000000000..56f787d6bf --- /dev/null +++ b/serverless/serverless/src/test/kotlin/com/hexagonkt/serverless/ServerlessFunctionTest.kt @@ -0,0 +1,10 @@ +package com.hexagonkt.serverless + +import org.junit.jupiter.api.Test + +internal class ServerlessFunctionTest { + + @Test fun `Serverless test`() { + + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index 7cad87df8c..94b927da6e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -12,6 +12,7 @@ includeNestedModules( "http", "logging", "serialization", + "serverless", "templates" )