forked from Netflix/astyanax
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
Showing
11 changed files
with
205 additions
and
238 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Copyright 2012 Netflix, Inc. | ||
Copyright ${year} Netflix, Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
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 |
---|---|---|
@@ -1 +1 @@ | ||
version=1.7 | ||
version=1.0.7-SNAPSHOT |
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 |
---|---|---|
@@ -1,25 +1,23 @@ | ||
subprojects { | ||
// Checkstyle | ||
apply plugin: 'checkstyle' | ||
tasks.withType(Checkstyle) { ignoreFailures = true } | ||
checkstyle { | ||
ignoreFailures = true // Waiting on GRADLE-2163 | ||
configFile = rootProject.file('codequality/checkstyle.xml') | ||
} | ||
// Checkstyle | ||
apply plugin: 'checkstyle' | ||
tasks.withType(Checkstyle) { ignoreFailures = true } | ||
checkstyle { | ||
ignoreFailures = true // Waiting on GRADLE-2163 | ||
configFile = rootProject.file('codequality/checkstyle.xml') | ||
} | ||
|
||
// FindBugs | ||
apply plugin: 'findbugs' | ||
//tasks.withType(Findbugs) { reports.html.enabled true } | ||
// FindBugs | ||
apply plugin: 'findbugs' | ||
//tasks.withType(Findbugs) { reports.html.enabled true } | ||
|
||
// PMD | ||
apply plugin: 'pmd' | ||
//tasks.withType(Pmd) { reports.html.enabled true } | ||
// PMD | ||
apply plugin: 'pmd' | ||
//tasks.withType(Pmd) { reports.html.enabled true } | ||
|
||
apply plugin: 'cobertura' | ||
cobertura { | ||
sourceDirs = sourceSets.main.java.srcDirs | ||
format = 'html' | ||
includes = ['**/*.java', '**/*.groovy'] | ||
excludes = [] | ||
} | ||
apply plugin: 'cobertura' | ||
cobertura { | ||
sourceDirs = sourceSets.main.java.srcDirs | ||
format = 'html' | ||
includes = ['**/*.java', '**/*.groovy'] | ||
excludes = [] | ||
} |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
// Dependency for plugin was set in buildscript.gradle | ||
|
||
subprojects { | ||
apply plugin: 'license' //nl.javadude.gradle.plugins.license.LicensePlugin | ||
license { | ||
header rootProject.file('codequality/HEADER') | ||
ext.year = Calendar.getInstance().get(Calendar.YEAR) | ||
} | ||
} |
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 |
---|---|---|
@@ -1,43 +1,44 @@ | ||
// Maven side of things | ||
subprojects { | ||
apply plugin: 'maven' // Java plugin has to have been already applied for the conf2scope mappings to work | ||
apply plugin: 'signing' | ||
apply plugin: 'maven' // Java plugin has to have been already applied for the conf2scope mappings to work | ||
apply plugin: 'signing' | ||
|
||
signing { | ||
required { gradle.taskGraph.hasTask(uploadMavenCentral) } | ||
sign configurations.archives | ||
} | ||
signing { | ||
required { gradle.taskGraph.hasTask(uploadMavenCentral) } | ||
sign configurations.archives | ||
} | ||
|
||
/** | ||
* Publishing to Maven Central example provided from http://jedicoder.blogspot.com/2011/11/automated-gradle-project-deployment-to.html | ||
*/ | ||
task uploadMavenCentral(type:Upload, dependsOn: signArchives) { | ||
configuration = configurations.archives | ||
doFirst { | ||
repositories.mavenDeployer { | ||
beforeDeployment { org.gradle.api.artifacts.maven.MavenDeployment deployment -> signing.signPom(deployment) } | ||
/** | ||
* Publishing to Maven Central example provided from http://jedicoder.blogspot.com/2011/11/automated-gradle-project-deployment-to.html | ||
* artifactory will execute uploadArchives to force generation of ivy.xml, and we don't want that to trigger an upload to maven | ||
* central, so using custom upload task. | ||
*/ | ||
task uploadMavenCentral(type:Upload, dependsOn: signArchives) { | ||
configuration = configurations.archives | ||
doFirst { | ||
repositories.mavenDeployer { | ||
beforeDeployment { org.gradle.api.artifacts.maven.MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
// To test deployment locally, use the following instead of oss.sonatype.org | ||
//repository(url: "file://localhost/${rootProject.rootDir}/repo") | ||
// To test deployment locally, use the following instead of oss.sonatype.org | ||
//repository(url: "file://localhost/${rootProject.rootDir}/repo") | ||
|
||
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') { | ||
authentication(userName: rootProject.sonatypeUsername, password: rootProject.sonatypePassword) | ||
} | ||
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') { | ||
authentication(userName: rootProject.sonatypeUsername, password: rootProject.sonatypePassword) | ||
} | ||
|
||
// Prevent datastamp from being appending to artifacts during deployment | ||
uniqueVersion = false | ||
// Prevent datastamp from being appending to artifacts during deployment | ||
uniqueVersion = false | ||
|
||
// Closure to configure all the POM with extra info, common to all projects | ||
pom.project { | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
// Closure to configure all the POM with extra info, common to all projects | ||
pom.project { | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
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
Binary file not shown.
Oops, something went wrong.