summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.gradle69
-rwxr-xr-xcli/build.gradle68
-rwxr-xr-xcore/build.gradle68
3 files changed, 137 insertions, 68 deletions
diff --git a/build.gradle b/build.gradle
index 2920de9..879c0f9 100755
--- a/build.gradle
+++ b/build.gradle
@@ -10,10 +10,8 @@ allprojects {
}
subprojects {
- apply plugin: 'maven'
apply plugin: 'scala'
- apply plugin: 'signing'
-
+
compileScala {
compileScala.scalaCompileOptions.additionalParameters = ['-target:jvm-1.6', '–Xdisable-assertions']
}
@@ -36,69 +34,4 @@ subprojects {
repositories {
mavenCentral()
}
-
- def isMavenDeployable = hasProperty('mavenRepositoryUrl') && hasProperty('mavenRepositoryUsername') && hasProperty('mavenRepositoryPassword')
-
- 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}"
- }
- }
- }
- }
- }
- }
}
diff --git a/cli/build.gradle b/cli/build.gradle
index 954da31..c0d1b89 100755
--- a/cli/build.gradle
+++ b/cli/build.gradle
@@ -1,3 +1,8 @@
+apply plugin: 'maven'
+apply plugin: 'signing'
+
+def isMavenDeployable = hasProperty('mavenRepositoryUrl') && hasProperty('mavenRepositoryUsername') && hasProperty('mavenRepositoryPassword')
+
evaluationDependsOn(':stringmetric-core')
dependencies {
@@ -96,4 +101,67 @@ task tar(description: 'Assembles a compressed tar archive of source files.', dep
tarfileset(dir: workingPath, fileMode: 755, prefix: project.name)
}
}
+}
+
+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
diff --git a/core/build.gradle b/core/build.gradle
index 6cce643..312e6c0 100755
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -1,3 +1,8 @@
+apply plugin: 'maven'
+apply plugin: 'signing'
+
+def isMavenDeployable = hasProperty('mavenRepositoryUrl') && hasProperty('mavenRepositoryUsername') && hasProperty('mavenRepositoryPassword')
+
dependencies {
testCompile 'com.google.caliper:caliper:0.5-rc1'
}
@@ -42,4 +47,67 @@ sourceSets {
srcDir 'source/test/scala'
}
}
+}
+
+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