Skip to content

Commit

Permalink
Apply #14 #15 #16 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Biacode committed Feb 1, 2018
1 parent 2e63380 commit b2688b1
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 91 deletions.
50 changes: 6 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...<br>
But because of it's clear architecture, it is completely separated from it's purpose and **HermesChat** use cases.

### Maven
```xml
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>jcenter</id>
<url>http://jcenter.bintray.com </url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>
_**The library is still in heavy development, so unpredictable behavior and bugs may occur.**_

<dependency>
<groupId>org.biacode.hermes.spring.netty</groupId>
<artifactId>starter</artifactId>
<version>0.5.0-SNAPSHOT</version>
</dependency>
```

### 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"
```
Please go to the [wiki pages](https://github.com/hermes-chat/spring-netty/wiki) for further reads.
119 changes: 72 additions & 47 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -124,6 +124,7 @@ allprojects {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}

compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
Expand Down Expand Up @@ -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')

Expand All @@ -178,6 +188,9 @@ project('server') {
}

project('websocket') {

doDeploy()

dependencies {
compile project(':server')

Expand All @@ -187,10 +200,22 @@ project('websocket') {
}

project('starter') {

doDeploy()

dependencies {
compile project(':websocket')

compile("org.springframework.boot:spring-boot-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")
}
}
4 changes: 4 additions & 0 deletions pages/about.md
Original file line number Diff line number Diff line change
@@ -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...<br>
But because of it's clear architecture, it is completely separated from it's purpose and **HermesChat** use cases.
3 changes: 3 additions & 0 deletions pages/getstarted.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto configuration with spring boot

# Spring custom integration
51 changes: 51 additions & 0 deletions pages/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Install

# Stable
There is no stable release yet.

# Snapshots

### Maven
```xml
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>jcenter</id>
<url>http://jcenter.bintray.com </url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>

<dependency>
<groupId>org.biacode.hermes.spring.netty</groupId>
<artifactId>starter</artifactId>
<version>${spring.netty.version}</version>
</dependency>
```

### Gradle
```groovy
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
jcenter()
}
compile "org.biacode.hermes.spring.netty:starter:${springNettyVersion}"
```
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ include 'router'
include 'server'
include 'websocket'
include 'starter'
include 'examples'

0 comments on commit b2688b1

Please sign in to comment.