diff --git a/README.md b/README.md index f4f63e8..30e2d51 100644 --- a/README.md +++ b/README.md @@ -3,49 +3,11 @@ Netty spring integration. [![Build Status](https://travis-ci.org/hermes-chat/spring-netty.svg?branch=master)](https://travis-ci.org/hermes-chat/spring-netty) -# Install +# About +Mainly the [Spring Netty](https://github.com/hermes-chat/spring-netty) project is created to solve Netty + Spring issues in [HermesChat](https://github.com/hermes-chat), +such as routing, Netty configurations as a spring beans etc...
+But because of it's clear architecture, it is completely separated from it's purpose and **HermesChat** use cases. -### Maven -```xml - - - snapshots-repo - https://oss.sonatype.org/content/repositories/snapshots - false - true - - - jcenter - http://jcenter.bintray.com - - true - never - warn - - - true - warn - - - +_**The library is still in heavy development, so unpredictable behavior and bugs may occur.**_ - - org.biacode.hermes.spring.netty - starter - 0.5.0-SNAPSHOT - -``` - -### Gradle -```groovy - -repositories { - mavenCentral() - maven { - url "https://oss.sonatype.org/content/repositories/snapshots" - } - jcenter() -} - -compile "org.biacode.hermes.spring.netty:starter:0.5.0-SNAPSHOT" -``` \ No newline at end of file +Please go to the [wiki pages](https://github.com/hermes-chat/spring-netty/wiki) for further reads. \ No newline at end of file diff --git a/build.gradle b/build.gradle index 7908b03..95a6b7d 100644 --- a/build.gradle +++ b/build.gradle @@ -29,20 +29,7 @@ buildscript { } } -allprojects { - - apply plugin: 'idea' - apply plugin: 'kotlin' - apply plugin: 'eclipse' - apply plugin: 'maven' - apply plugin: 'kotlin-spring' - apply plugin: "io.spring.dependency-management" - - apply plugin: 'propdeps' - apply plugin: 'propdeps-maven' - apply plugin: 'propdeps-idea' - apply plugin: 'propdeps-eclipse' - +def doDeploy() { if (System.env['DEPLOY_TO_NEXUS'] != null) { apply plugin: 'signing' @@ -65,51 +52,64 @@ allprojects { archives javadocJar, sourcesJar } - uploadArchives { - repositories { - mavenDeployer { - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } + repositories { + mavenDeployer { + beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { - authentication(userName: System.getenv('NEXUS_USERNAME'), password: System.getenv('NEXUS_PASSWORD')) - } + repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { + authentication(userName: System.getenv('NEXUS_USERNAME'), password: System.getenv('NEXUS_PASSWORD')) + } - snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { - authentication(userName: System.getenv('NEXUS_USERNAME'), password: System.getenv('NEXUS_PASSWORD')) - } + snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { + authentication(userName: System.getenv('NEXUS_USERNAME'), password: System.getenv('NEXUS_PASSWORD')) + } - pom.project { - name 'NettySpring' - packaging 'jar' - // optionally artifactId can be defined here - description 'Netty spring integration.' - url 'https://github.com/hermes-chat/spring-netty' - - scm { - connection 'scm:git@github.com:hermes-chat/spring-netty.git' - developerConnection 'scm:git:ssh://github.com:hermes-chat/spring-netty.git' - url 'https://github.com/hermes-chat/spring-netty/tree/master' - } + pom.project { + name 'NettySpring' + packaging 'jar' + // optionally artifactId can be defined here + description 'Netty spring integration.' + url 'https://github.com/hermes-chat/spring-netty' + + scm { + connection 'scm:git@github.com:hermes-chat/spring-netty.git' + developerConnection 'scm:git:ssh://github.com:hermes-chat/spring-netty.git' + url 'https://github.com/hermes-chat/spring-netty/tree/master' + } - licenses { - license { - name 'Apache-2.0' - url 'https://opensource.org/licenses/Apache-2.0' - } + licenses { + license { + name 'Apache-2.0' + url 'https://opensource.org/licenses/Apache-2.0' } + } - developers { - developer { - id 'biacode' - name 'Artur Asatryan' - email 'biacoder@gmail.com' - } + developers { + developer { + id 'biacode' + name 'Artur Asatryan' + email 'biacoder@gmail.com' } } } } } } +} + +allprojects { + + apply plugin: 'idea' + apply plugin: 'kotlin' + apply plugin: 'eclipse' + apply plugin: 'maven' + apply plugin: 'kotlin-spring' + apply plugin: "io.spring.dependency-management" + + apply plugin: 'propdeps' + apply plugin: 'propdeps-maven' + apply plugin: 'propdeps-idea' + apply plugin: 'propdeps-eclipse' group = platformGroup version = platformVersion @@ -124,6 +124,7 @@ allprojects { compileKotlin { kotlinOptions.jvmTarget = "1.8" } + compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } @@ -158,18 +159,27 @@ allprojects { } project('core') { + + doDeploy() + dependencies { compile("org.springframework:spring-context") } } project('router') { + + doDeploy() + dependencies { compile project(':core') } } project('server') { + + doDeploy() + dependencies { compile project(':router') @@ -178,6 +188,9 @@ project('server') { } project('websocket') { + + doDeploy() + dependencies { compile project(':server') @@ -187,6 +200,9 @@ project('websocket') { } project('starter') { + + doDeploy() + dependencies { compile project(':websocket') @@ -194,3 +210,12 @@ project('starter') { optional("org.springframework.boot:spring-boot-configuration-processor") } } + +project('starter') { + dependencies { + compile project(':websocket') + + compile("org.springframework.boot:spring-boot-starter") + optional("org.springframework.boot:spring-boot-configuration-processor") + } +} \ No newline at end of file diff --git a/pages/about.md b/pages/about.md new file mode 100644 index 0000000..5b93fe4 --- /dev/null +++ b/pages/about.md @@ -0,0 +1,4 @@ +# About +Mainly the [Spring Netty](https://github.com/hermes-chat/spring-netty) project is created to solve Netty + Spring issues in [HermesChat](https://github.com/hermes-chat), +such as routing, Netty configurations as a spring beans etc...
+But because of it's clear architecture, it is completely separated from it's purpose and **HermesChat** use cases. \ No newline at end of file diff --git a/pages/getstarted.md b/pages/getstarted.md new file mode 100644 index 0000000..f23b3d9 --- /dev/null +++ b/pages/getstarted.md @@ -0,0 +1,3 @@ +# Auto configuration with spring boot + +# Spring custom integration \ No newline at end of file diff --git a/pages/install.md b/pages/install.md new file mode 100644 index 0000000..e7051a1 --- /dev/null +++ b/pages/install.md @@ -0,0 +1,51 @@ +# Install + +# Stable +There is no stable release yet. + +# Snapshots + +### Maven +```xml + + + snapshots-repo + https://oss.sonatype.org/content/repositories/snapshots + false + true + + + jcenter + http://jcenter.bintray.com + + true + never + warn + + + true + warn + + + + + + org.biacode.hermes.spring.netty + starter + ${spring.netty.version} + +``` + +### Gradle +```groovy + +repositories { + mavenCentral() + maven { + url "https://oss.sonatype.org/content/repositories/snapshots" + } + jcenter() +} + +compile "org.biacode.hermes.spring.netty:starter:${springNettyVersion}" +``` \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 6af8496..6250b40 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,3 +5,4 @@ include 'router' include 'server' include 'websocket' include 'starter' +include 'examples' \ No newline at end of file