-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 84bb612
Showing
158 changed files
with
19,467 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
bin/ | ||
.DS_Store | ||
.classpath | ||
.project | ||
.settings | ||
*.iml | ||
*.ipr | ||
*.iws | ||
*.log | ||
*.swp | ||
*~ | ||
logs | ||
node_modules | ||
target | ||
/.gradle/ | ||
/build/ | ||
tmp | ||
.idea/ | ||
out/ | ||
infer-out/ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
certs/ | ||
venv/ | ||
|
||
config/gunicorn.py | ||
config/newrelic.ini | ||
gmon.out | ||
logs/messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
language: java | ||
os: linux | ||
dist: xenial | ||
jdk: openjdk8 | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Riff | ||
|
||
Riff is a networking library built based on Netty. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Publishing to Maven Central via Sonatype | ||
|
||
First, [follow the instructions for installing GPG and creating a key file](http://central.sonatype.org/pages/working-with-pgp-signatures.html). You will need a version of GPG < 2.1. | ||
|
||
If this is your first time releasing, you will need to [create your JIRA account](https://issues.sonatype.org/secure/Signup!default.jspa), and then [create a JIRA ticket](https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134) to request permission (for your account) to deploy artifacts to `com.wepay` (our groupId). For more information visit [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html). | ||
|
||
Once you've done that, you should create a `gradle.properties` file in your `~/.gradle` directory with the following properties to avoid specifying the same information every time you want to publish: | ||
|
||
``` | ||
signing.keyId=<YourKeyId> | ||
signing.password=<YourPublicKeyPassword> | ||
signing.secretKeyRingFile=<PathToYourKeyRingFile> | ||
ossrhUsername=<your-jira-id> | ||
ossrhPassword=<your-jira-password> | ||
``` | ||
|
||
After that, you should be able to run the `./gradlew publish` task successfully. | ||
|
||
To publish a snapshot to Sonatype, just make sure that the version number ends in `-SNAPSHOT`; to avoid doing so, just make sure it doesn't. | ||
|
||
You can then [manage your builds](https://oss.sonatype.org/) (you may need to log in first). If you want to publish a release, click _Staging Repositories_ on the left sidebar under the _Build Promotion_ header, find the repository you want to release. You will first need to _Close_ the repository (This just prevents modification of repository). After that is completed, you will be able to _Release_ the repository. (The location of these commands is near the top of the pane, accompanied by _Drop_, _Refresh_, and _Promote_). Your build should be published shortly afterward, although it may not be visible via Maven search for another couple of hours. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
allprojects { | ||
apply plugin: 'idea' | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
jcenter() | ||
maven { url 'http://packages.confluent.io/maven/' } | ||
} | ||
} | ||
|
||
project.ext { | ||
junitVersion = '4.11' | ||
assertjVersion = '3.8.0' | ||
mockitoVersion = '2.23.0' | ||
nettyVersion = '4.1.15.Final' | ||
slf4jVersion = '1.7.21' | ||
zkToolsVersion = '0.5.0' | ||
jacksonVersion = '2.9.6' | ||
servletVersion = '4.0.1' | ||
jettyVersion = '9.4.10.v20180503' | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
} | ||
dependencies { | ||
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1' | ||
} | ||
} | ||
|
||
subprojects { | ||
apply plugin: 'java' | ||
apply plugin: 'checkstyle' | ||
apply plugin: 'findbugs' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
sourceCompatibility = 1.8 | ||
|
||
jar { | ||
manifest { | ||
attributes 'Implementation-Title': 'Networking library built on Netty', | ||
'Implementation-Version': version | ||
} | ||
} | ||
|
||
compileJava { | ||
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
} | ||
|
||
compileTestJava { | ||
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
} | ||
|
||
checkstyle { | ||
toolVersion = "8.10" | ||
} | ||
|
||
checkstyleTest { | ||
configFile = project.file ("${rootProject.projectDir}/config/checkstyle/checkstyle_test.xml") | ||
} | ||
|
||
// findbugs html only report | ||
findbugsMain { | ||
reports { | ||
xml.enabled = false | ||
html.enabled = true | ||
} | ||
} | ||
|
||
findbugsTest { | ||
reports { | ||
xml.enabled = false | ||
html.enabled = true | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
from sourceSets.main.allJava | ||
archiveClassifier = 'sources' | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
from javadoc | ||
archiveClassifier = 'javadoc' | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifactId = project.name | ||
|
||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
pom { | ||
name = 'Riff' | ||
description = 'Riff is a networking library built based on Netty.' | ||
url = 'https://www.github.com/wepay/riff' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'ymatsuda' | ||
name = 'Yasuhiro Matsuda' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/wepay/riff.git' | ||
developerConnection = 'scm:git:ssh://github.com/wepay/riff.git' | ||
url = 'https://github.com/wepay/riff' | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots' | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
credentials { | ||
username findProperty('ossrhUsername')?: '' | ||
password findProperty('ossrhPassword')?: '' | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign publishing.publications.mavenJava | ||
} | ||
} | ||
|
||
project(':riff-config') { | ||
dependencies { | ||
compile ( | ||
"org.slf4j:slf4j-api:$slf4jVersion" | ||
) | ||
|
||
testCompile ( | ||
"junit:junit:$junitVersion" | ||
) | ||
} | ||
} | ||
|
||
project(':riff-metrics') { | ||
dependencies { | ||
compile ( | ||
project(':riff-config'), | ||
"com.wepay.zktools:zktools:$zkToolsVersion", | ||
"org.slf4j:slf4j-api:$slf4jVersion", | ||
"org.eclipse.jetty:jetty-http:$jettyVersion", | ||
"org.eclipse.jetty:jetty-servlet:$jettyVersion", | ||
"org.eclipse.jetty:jetty-server:$jettyVersion", | ||
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion", | ||
"javax.servlet:javax.servlet-api:$servletVersion" | ||
) | ||
|
||
testCompile ( | ||
"junit:junit:$junitVersion", | ||
"org.assertj:assertj-core:$assertjVersion", | ||
"org.mockito:mockito-core:$mockitoVersion", | ||
"org.eclipse.jetty:jetty-servlet:$jettyVersion:tests", | ||
"org.eclipse.jetty:jetty-http:$jettyVersion:tests" | ||
) | ||
} | ||
} | ||
|
||
project(':riff-networking') { | ||
dependencies { | ||
compile ( | ||
project(':riff-config'), | ||
"com.wepay.zktools:zktools:$zkToolsVersion", | ||
"io.netty:netty-all:$nettyVersion", | ||
"org.slf4j:slf4j-api:$slf4jVersion" | ||
) | ||
|
||
testCompile ( | ||
"junit:junit:$junitVersion", | ||
"org.assertj:assertj-core:$assertjVersion", | ||
"org.mockito:mockito-core:$mockitoVersion" | ||
) | ||
} | ||
} |
Oops, something went wrong.