summaryrefslogtreecommitdiff
path: root/stringmetric-core/build.gradle
diff options
context:
space:
mode:
authorRocky Madden <git@rockymadden.com>2013-10-05 10:43:59 -0600
committerRocky Madden <git@rockymadden.com>2013-10-05 10:43:59 -0600
commit47407c7da3a6789cc5987a1fc4c6c70707c8370a (patch)
tree2afc8586be85291db2ed40df98a14aefe34fd408 /stringmetric-core/build.gradle
parentcac0285121fd134287cf864340553934db329fe6 (diff)
downloadstringmetric-47407c7da3a6789cc5987a1fc4c6c70707c8370a.tar.gz
stringmetric-47407c7da3a6789cc5987a1fc4c6c70707c8370a.tar.bz2
stringmetric-47407c7da3a6789cc5987a1fc4c6c70707c8370a.zip
Gradle clean up and moved to ensime.
Diffstat (limited to 'stringmetric-core/build.gradle')
-rwxr-xr-xstringmetric-core/build.gradle68
1 files changed, 1 insertions, 67 deletions
diff --git a/stringmetric-core/build.gradle b/stringmetric-core/build.gradle
index 312e6c0..127d014 100755
--- a/stringmetric-core/build.gradle
+++ b/stringmetric-core/build.gradle
@@ -1,7 +1,4 @@
-apply plugin: 'maven'
-apply plugin: 'signing'
-
-def isMavenDeployable = hasProperty('mavenRepositoryUrl') && hasProperty('mavenRepositoryUsername') && hasProperty('mavenRepositoryPassword')
+apply from: '../maven.gradle'
dependencies {
testCompile 'com.google.caliper:caliper:0.5-rc1'
@@ -48,66 +45,3 @@ sourceSets {
}
}
}
-
-if (isMavenDeployable) {
- signing {
- sign configurations.archives
- }
-
- task scaladocJar(type: Jar, dependsOn: scaladoc) {
- classifier = 'javadoc'
- from "${project.buildDir}/docs/scaladoc"
- }
-
- task sourceJar(type: Jar, dependsOn: classes) {
- classifier = 'sources'
- from sourceSets.main.allSource
- }
-
- artifacts {
- archives jar
- archives scaladocJar
- archives sourceJar
- }
-
- uploadArchives {
- repositories {
- mavenDeployer {
- beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
-
- repository(url: mavenRepositoryUrl) {
- authentication(userName: mavenRepositoryUsername, password: mavenRepositoryPassword)
- }
-
- pom.project {
- description "${parent.project.description}"
- groupId "${parent.project.group}"
- name "${project.name}"
- packaging 'jar'
- url "${parent.project.url}"
- version "${parent.project.version}"
-
- developers {
- developer {
- id 'rockymadden'
- name 'Rocky Madden'
- }
- }
-
- licenses {
- license {
- name 'Apache License v2.0'
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- distribution 'repo'
- }
- }
-
- scm {
- url "${parent.project.scm}"
- connection "${parent.project.scm}"
- }
- }
- }
- }
- }
-} \ No newline at end of file