Bumped and released version 0.11

This commit is contained in:
andsel
2018-05-16 23:22:24 +02:00
parent 3c9cc5fa8e
commit 0186de26c2
5 changed files with 110 additions and 96 deletions
@@ -75,7 +75,7 @@ public class Server {
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
final Server server = new Server(); final Server server = new Server();
server.startServer(); server.startServer();
System.out.println("Server started, version 0.11-SNAPSHOT"); System.out.println("Server started, version 0.11");
//Bind a shutdown hook //Bind a shutdown hook
Runtime.getRuntime().addShutdownHook(new Thread(server::stopServer)); Runtime.getRuntime().addShutdownHook(new Thread(server::stopServer));
} }
+19 -5
View File
@@ -1,8 +1,9 @@
allprojects { allprojects {
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'maven-publish'
group = 'io.moquette' group = 'io.moquette'
version = '0.11-SNAPSHOT' version = '0.11'
} }
buildscript { buildscript {
@@ -67,15 +68,28 @@ subprojects {
} }
// Deploy set environment variables and run ./gradlew bintrayUpload // Deploy set environment variables and run ./gradlew bintrayUpload
// publication to maven repo
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId "$project.group"
artifactId "${project.name}"
version '0.11'
}
}
}
bintray { bintray {
user = System.getenv('BINTRAY_USER') user = bintrayUser //System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY') key = bintrayPassword //System.getenv('BINTRAY_KEY')
pkg { pkg {
repo = '${project.group}' repo = 'maven'//"${project.group}"
name = "${project.name}" name = "${project.group}.${project.name}"
userOrg = 'andsel' userOrg = 'andsel'
licenses = ['Apache-2.0'] licenses = ['Apache-2.0']
vcsUrl = "https://api.bintray.com/maven/andsel/maven/${project.group}.${project.name}" vcsUrl = "https://api.bintray.com/maven/andsel/maven/${project.group}.${project.name}"
publications = ['MyPublication']
} }
} }
} }
+1 -1
View File
@@ -13,7 +13,7 @@ echo " \_| |_/\___/ \__, |\__,_|\___|\__|\__\___| \_| |_/\_/\_\ \_/ \_/ "
echo " | | " echo " | | "
echo " |_| " echo " |_| "
echo " " echo " "
echo " version: 0.11-SNAPSHOT " echo " version: 0.11 "
set "CURRENT_DIR=%cd%" set "CURRENT_DIR=%cd%"
if not "%MOQUETTE_HOME%" == "" goto gotHome if not "%MOQUETTE_HOME%" == "" goto gotHome
+1 -1
View File
@@ -13,7 +13,7 @@ echo " \_| |_/\___/ \__, |\__,_|\___|\__|\__\___| \_| |_/\_/\_\ \_/ \_/ "
echo " | | " echo " | | "
echo " |_| " echo " |_| "
echo " " echo " "
echo " version: 0.11-SNAPSHOT " echo " version: 0.11 "
cd "$(dirname "$0")" cd "$(dirname "$0")"
@@ -1,5 +1,5 @@
@GrabResolver(name='moquette-bintray', root='http://dl.bintray.com/andsel/maven/') @GrabResolver(name='moquette-bintray', root='http://dl.bintray.com/andsel/maven/')
@Grab(group='io.moquette', module='moquette-broker', version='0.11-SNAPSHOT') @Grab(group='io.moquette', module='moquette-broker', version='0.11')
import io.moquette.server.Server import io.moquette.server.Server