Ratpack kotlin dsl library


License

License

Categories

Categories

Ratpack User Interface Web Frameworks
GroupId

GroupId

me.drmaas
ArtifactId

ArtifactId

ratpack-rx2
Last Version

Last Version

0.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

Ratpack kotlin dsl library
Ratpack kotlin dsl library
Project URL

Project URL

https://github.com/drmaas/ratpack-kotlin
Source Code Management

Source Code Management

https://github.com/drmaas/ratpack-kotlin

Download ratpack-rx2

How to add to project

<!-- https://jarcasting.com/artifacts/me.drmaas/ratpack-rx2/ -->
<dependency>
    <groupId>me.drmaas</groupId>
    <artifactId>ratpack-rx2</artifactId>
    <version>0.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/me.drmaas/ratpack-rx2/
implementation 'me.drmaas:ratpack-rx2:0.5.0'
// https://jarcasting.com/artifacts/me.drmaas/ratpack-rx2/
implementation ("me.drmaas:ratpack-rx2:0.5.0")
'me.drmaas:ratpack-rx2:jar:0.5.0'
<dependency org="me.drmaas" name="ratpack-rx2" rev="0.5.0">
  <artifact name="ratpack-rx2" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.drmaas', module='ratpack-rx2', version='0.5.0')
)
libraryDependencies += "me.drmaas" % "ratpack-rx2" % "0.5.0"
[me.drmaas/ratpack-rx2 "0.5.0"]

Dependencies

compile (2)

Group / Artifact Type Version
io.ratpack : ratpack-core jar 1.5.0
io.reactivex.rxjava2 : rxjava jar 2.1.3

test (4)

Group / Artifact Type Version
org.codehaus.groovy : groovy jar 2.4.10
org.spockframework : spock-unitils jar 1.1-groovy-2.4
io.ratpack : ratpack-groovy-test jar 1.5.0
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

ratpack-kotlin

Build Status

forthebadge

Overview

Build fluent kotlin ratpack applications. Features:

  • Server, Bindings, Chain, and Handler DSL

  • RxJava extension functions

  • RxJava2 extension functions

  • Reactor extension functions

  • Coroutine functions

  • Kotlin test harnessing support: KotlinEmbeddedApp, kotlinApplicationUnderTest(…​) and friends

Usage

  • Gradle plugin (kotlin syntax)

plugins {
  id("me.drmaas.ratpack-kotlin") version "x.y.z"
}

src/ratpack/ratpack.kts

import ratpack.kotlin.handling.ratpack

ratpack {
  serverConfig {
    port(8080)
  }
  bindings {
    bindInstance("string")
  }
  handlers {
    get("test") {
      render(get(String::class.java))
    }
  }
}

All libraries are available in maven central.

Gradle

compile 'me.drmaas:ratpack-kotlin-<module>:x.x.x'

Maven

<dependency>
  <groupId>me.drmaas</groupId>
  <artifactId>ratpack-kotlin-<module></artifactId>
  <version>x.x.x</version>
</dependency>

Building and Releasing

./gradlew -Prelease.scope=patch clean build install final publishPlugins uploadArchives

Versions

Version
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
0.1.0-rc.3
0.1.0-rc.2
0.1.0-rc.1