Коммит 78476c62 создал по автору Ilya Pankratov's avatar Ilya Pankratov
Просмотр файлов

feat: adapt Ktor for the Aurora OS

владелец 7b5e3138
......@@ -14,6 +14,19 @@
[![GitHub License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
[![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/ktorio/ktor)
## Aurora OS
This repository contains a patched version of Ktor, adapted for applications on Aurora OS.
It enables ktor-client-curl to function properly on Aurora OS. To install the ported Ktor to your
local Maven repository, run the following command:
```bash
./gradlew ktor-client:ktor-client-curl:publishLinuxPublicationsToMavenLocal \
ktor-client:ktor-client-curl:publishKotlinMultiplatformPublicationToMavenLocal --no-scan
```
## Ktor
Ktor is an asynchronous framework for creating microservices, web applications and more. Written in Kotlin from the
ground up.
......@@ -69,6 +82,8 @@ To run the created application, execute:
* Runs embedded web server on `localhost:8080`
* Installs routing and responds with `Hello, world!` when receiving a GET http request for the root path
**Note:** Patched version has `aurora` suffix: 3.1.2-aurora
## Start using Ktor
Build your first Kotlin HTTP or RESTful application using Ktor: [start.ktor.io](https://start.ktor.io)
......
......@@ -58,7 +58,8 @@ configureSigning()
plugins.withId("ktorbuild.kmp") {
tasks.withType<AbstractPublishToMaven>().configureEach {
val os = ktorBuild.os.get()
onlyIf { isAvailableForPublication(os) }
val specProvider = provider { isAvailableForPublication(os) }
onlyIf { specProvider.get() }
}
registerTargetsPublishTasks(ktorBuild.targets)
......
......@@ -67,4 +67,12 @@ private fun Project.registerAggregatingPublishTask(name: String, targets: Set<St
}
dependsOn(targetsTasks)
}
tasks.register("publish${name}PublicationsToMavenLocal") {
group = PublishingPlugin.PUBLISH_TASK_GROUP
val targetsTasks = targets.mapNotNull { target ->
tasks.maybeNamed("publish${target.capitalized()}PublicationToMavenLocal")
}
dependsOn(targetsTasks)
}
}
......@@ -7,7 +7,7 @@ kotlin.code.style=official
# config
group=io.ktor
version=3.1.2
version=3.1.2-aurora
## Performance
......
Нет предварительного просмотра для этого типа файлов
Нет предварительного просмотра для этого типа файлов
Нет предварительного просмотра для этого типа файлов
Нет предварительного просмотра для этого типа файлов
Нет предварительного просмотра для этого типа файлов
Нет предварительного просмотра для этого типа файлов
......@@ -11,5 +11,5 @@ compilerOpts.mingw = -DCURL_STATICLIB
staticLibraries.osx = libcurl.a
linkerOpts.osx = -framework Security -framework SystemConfiguration
staticLibraries.linux = libcurl.a libssl.a libcrypto.a
staticLibraries.linux = libcurl.a libssl.a libcrypto.a libcares_static.a libnghttp2.a libpsl.a
linkerOpts.linux = -lz
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать