summaryrefslogtreecommitdiff
path: root/cli/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'cli/build.gradle')
-rwxr-xr-xcli/build.gradle80
1 files changed, 0 insertions, 80 deletions
diff --git a/cli/build.gradle b/cli/build.gradle
index 88f961f..954da31 100755
--- a/cli/build.gradle
+++ b/cli/build.gradle
@@ -1,26 +1,9 @@
-apply plugin: 'maven'
-apply plugin: 'scala'
-apply plugin: 'signing'
-
evaluationDependsOn(':stringmetric-core')
-def isMavenDeployable = hasProperty('mavenRepositoryUrl') && hasProperty('mavenRepositoryUsername') && hasProperty('mavenRepositoryPassword')
-
-compileScala {
- compileScala.scalaCompileOptions.additionalParameters = ['-optimise', '–Xdisable-assertions']
-}
-
dependencies {
compile project(':stringmetric-core')
- compile 'org.scala-lang:scala-compiler:2.9.2'
- compile 'org.scala-lang:scala-library:2.9.2'
-
- scalaTools 'org.scala-lang:scala-compiler:2.9.2'
- scalaTools 'org.scala-lang:scala-library:2.9.2'
testCompile project(':stringmetric-core').sourceSets.test.output
- testCompile 'junit:junit:4.10'
- testCompile 'org.scalatest:scalatest_2.9.2:1.8'
}
sourceSets {
@@ -113,67 +96,4 @@ 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