1 Star 0 Fork 1.2K

mounb / server

forked from 野火IM / im-server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 3.07 KB
一键复制 编辑 原始数据 按行查看 历史
andsel 提交于 2019-02-24 19:18 . Moquette 0.12.1 versions release
allprojects {
apply plugin: 'maven'
apply plugin: 'maven-publish'
group = 'io.moquette'
version = '0.12.1'
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
classpath 'gradle.plugin.com.github.spotbugs:gradlePlugin:1.6.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
subprojects {
repositories {
mavenLocal()
maven { url "https://repo.eclipse.org/content/repositories/paho-releases/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://repo.maven.apache.org/maven2" }
}
apply from: new File(rootDir, 'gradle/java.gradle')
apply from: new File(rootDir, 'gradle/test.gradle')
apply from: new File(rootDir, 'gradle/lint.gradle')
apply plugin: 'com.jfrog.bintray'
apply plugin: 'eclipse'
ext {
nettyVersion = '4.1.22.Final'
}
task packageTests(type: Jar) {
from sourceSets.test.output
from sourceSets.test.allSource
from sourceSets.test.resources
classifier = 'tests'
}
task javadocJar (type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task sourceJar (type : Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
// summarize artifacts
artifacts {
archives jar
archives sourceJar
archives javadocJar
archives packageTests
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.5'
testCompile group: 'junit', name: 'junit', version:'4.8.2'
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version:'1.7.5'
testCompile group: 'org.assertj', name: 'assertj-core', version:'2.6.0'
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0'
testCompile group: 'org.awaitility', name: 'awaitility', version: '3.0.0'
}
test {
systemProperties.put "moquette.path", "build/resources/test/"
systemProperties.put "io.netty.leakDetectionLevel", "paranoid"
testLogging {
exceptionFormat 'full'
events "passed", "skipped", "failed"
}
}
// Deploy set environment variables and run ./gradlew bintrayUpload
// publication to maven repo
publishing {
publications {
bintrayPublication(MavenPublication) {
from components.java
groupId "$project.group"
artifactId "${project.name}"
version '0.12.1'
}
}
}
bintray {
println "Bintray deploy with user [${System.getenv('BINTRAY_USER')}] while working on ${project.name}"
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'maven'//"${project.group}"
name = "${project.group}.${project.name}"
userOrg = 'andsel'
licenses = ['Apache-2.0']
vcsUrl = "https://api.bintray.com/maven/andsel/maven/${project.group}.${project.name}"
publications = ['bintrayPublication']
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.6'
}
Java
1
https://gitee.com/lw05/server.git
git@gitee.com:lw05/server.git
lw05
server
server
master

搜索帮助