Ratpack kotlin dsl library


License

License

Categories

Categories

Kotlin Languages Ratpack User Interface Web Frameworks
GroupId

GroupId

me.drmaas
ArtifactId

ArtifactId

ratpack-kotlin
Last Version

Last Version

0.3.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-kotlin

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
io.ratpack : ratpack-guice jar 1.4.0-rc-2
org.jetbrains.kotlin : kotlin-stdlib jar 1.0.3
com.fasterxml.jackson.module : jackson-module-kotlin jar 2.7.4

test (4)

Group / Artifact Type Version
org.codehaus.groovy : groovy-all jar 2.4.6
org.spockframework : spock-core jar 1.0-groovy-2.4
org.objenesis : objenesis jar 2.1
cglib : cglib-nodep jar 3.1

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.3.0
0.2.0