-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update project build files, dependencies, and readme
- Loading branch information
1 parent
a17d954
commit de2ad0a
Showing
5 changed files
with
127 additions
and
125 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
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
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 |
---|---|---|
|
@@ -2,25 +2,26 @@ | |
defaultTasks 'clean', 'licenseFormat', 'build', 'install' | ||
|
||
// Apply plugins | ||
apply plugin: 'cobertura' | ||
apply plugin: 'coveralls' | ||
apply plugin: 'java' | ||
apply plugin: 'cobertura' // Coveralls dependency | ||
apply plugin: 'com.github.kt3k.coveralls' | ||
apply plugin: 'license' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
// Project information | ||
ext.projectName = 'Flow Networking' | ||
ext.projectName = 'Flow Network' | ||
group = 'com.flowpowered' | ||
archivesBaseName = 'flow-networking' | ||
archivesBaseName = 'flow-network' | ||
version = '1.0.0-SNAPSHOT' | ||
ext.packaging = 'jar' | ||
ext.inceptionYear = '2013' | ||
ext.url = 'http://flowpowered.com' | ||
ext.description = 'Flexible serialization and configuration library for the Flow collection.' | ||
ext.url = 'https://flowpowered.com/network' | ||
ext.description = 'Network library for the Flow collection.' | ||
|
||
// Organization information | ||
ext.organization = 'Spout LLC' | ||
ext.organizationUrl = 'https://spout.org' | ||
ext.organization = 'Flow Powered' | ||
ext.organizationUrl = 'https://flowpowered.com' | ||
|
||
// Build properties | ||
ext.buildNumber = project.hasProperty('buildNumber') ? buildNumber : '0' | ||
|
@@ -38,9 +39,9 @@ buildscript { | |
} | ||
} | ||
dependencies { | ||
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.9.0' | ||
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:0.5.0' | ||
classpath 'net.saliman:gradle-cobertura-plugin:2.2.4' // Coveralls plugin dependency | ||
classpath 'net.saliman:gradle-cobertura-plugin:2.3.0' // Coveralls dependency | ||
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0' | ||
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0x' | ||
} | ||
} | ||
|
||
|
@@ -56,12 +57,12 @@ repositories { | |
|
||
// Project dependencies | ||
dependencies { | ||
compile 'io.netty:netty-all:4.0.21.Final' | ||
compile 'org.slf4j:slf4j-api:1.7.7' | ||
testCompile 'junit:junit:4.11' | ||
compile 'io.netty:netty-all:4.0.33.Final' | ||
compile 'org.slf4j:slf4j-api:1.7.13' | ||
testCompile 'junit:junit:4.12' | ||
testCompile 'org.hamcrest:hamcrest-library:1.3' | ||
testCompile 'org.powermock:powermock-api-mockito:1.5.5' | ||
testCompile 'org.powermock:powermock-module-junit4:1.5.5' | ||
testCompile 'org.powermock:powermock-api-mockito:1.6.4' | ||
testCompile 'org.powermock:powermock-module-junit4:1.6.4' | ||
} | ||
|
||
// Filter, process, and include resources | ||
|
@@ -103,6 +104,15 @@ jar.manifest.mainAttributes( | |
'Specification-Version': version + '+' + ciSystem + '-b' + buildNumber + '.git-' + commit, | ||
'Specification-Vendor': organization + ' - ' + organizationUrl) | ||
|
||
// Javadoc doclint configuration | ||
if (JavaVersion.current().isJava8Compatible()) { | ||
allprojects { | ||
tasks.withType(Javadoc) { | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
} | ||
} | ||
} | ||
|
||
// Coveralls report configuration | ||
cobertura.coverageFormats = ['html', 'xml'] // Coveralls requires xml format | ||
|
||
|
@@ -161,15 +171,15 @@ uploadArchives { | |
description project.ext.description | ||
|
||
scm { | ||
connection 'scm:git:git://github.com/flow/flow-networking.git' | ||
developerConnection 'scm:git:ssh://[email protected]:flow/flow-networking.git' | ||
url 'https://github.com/flow/flow-networking' | ||
connection 'scm:git:git://github.com/flow/network.git' | ||
developerConnection 'scm:git:ssh://[email protected]:flow/network.git' | ||
url 'https://github.com/flow/network' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT License' | ||
url 'https://tldrlegal.com/license/mit-license' | ||
url 'https://tldrlegal.com/l/mit' | ||
distribution 'repo' | ||
} | ||
} | ||
|
@@ -180,6 +190,11 @@ uploadArchives { | |
} | ||
|
||
developers { | ||
developer { | ||
id 'DDoS' | ||
name 'Aleksi Sapon' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'kitskub' | ||
name 'Jack Huey' | ||
|
@@ -191,7 +206,7 @@ uploadArchives { | |
email '[email protected]' | ||
} | ||
developer { | ||
id 'Wulfspider' | ||
id 'lukespragg' | ||
name 'Luke Spragg' | ||
email '[email protected]' | ||
} | ||
|
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
Oops, something went wrong.