Skip to content

Commit

Permalink
exclude slf4j, include log4j, change descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
msbt committed Mar 24, 2015
1 parent 91b4fe9 commit 0b3779d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ dependencies {
exclude group: 'net.java.dev.jna'
exclude group: 'com.tdunning'
exclude group: 'commons-cli'
exclude group: 'org.slf4j'
//exclude group: 'log4j'
}
// needed by ES Version class - keep up to date with es dependencies
compile 'org.apache.lucene:lucene-core:4.10.3'
compile 'org.apache.lucene:lucene-analyzers-common:4.10.3'


compile files(project(':core').sourceSets.shared.output.classesDir)
compile files(project(':sql').sourceSets.shared.output.classesDir)

Expand Down Expand Up @@ -61,6 +64,7 @@ test {
}

shadowJar {

baseName 'crate-client'
classifier ''
duplicatesStrategy 'exclude'
Expand All @@ -78,13 +82,11 @@ shadowJar {
relocate 'com.google', 'io.crate.shade.com.google'
relocate 'com.ning.compress', 'io.crate.shade.com.ning.compress'
relocate 'org.jboss.netty', 'io.crate.shade.org.jboss.netty'
relocate 'org.apache.log4j', 'io.crate.shade.org.apache.log4j'
relocate 'org.slf4j', 'io.crate.shade.org.slf4j'
relocate 'org.apache.commons', 'io.crate.shade.org.apache.commons'
relocate 'jsr166e', 'io.crate.shade.jsr166e'
relocate 'com.spatial4j', 'io.crate.shade.com.spatial4j'
relocate 'com.vividsolutions', 'io.crate.shade.com.vividsolutions'

relocate 'org.apache.log4j', 'io.crate.shade.org.apache.log4j'

doLast {
manifest {
Expand All @@ -101,6 +103,7 @@ task buildJar(dependsOn: [':app:getVersion', ':core:compileSharedJava', ':sql:co
tasks.shadowJar.execute()
}
}
tasks.buildJar.mustRunAfter jar // otherwise jar task would override shadowJar artifact

task myJavadocs(type: Javadoc, dependsOn: processResources) {
classpath = configurations.compile
Expand All @@ -110,7 +113,7 @@ task javadocJar (type: Jar, dependsOn: [myJavadocs]) {
classifier = 'javadoc'
from myJavadocs.destinationDir
manifest {
attributes("Implementation-Title": "Crate Data Java Client")
attributes("Implementation-Title": "Crate.IO Java Client")
}
}

Expand All @@ -124,7 +127,7 @@ task sourceJar (type : Jar) {
classifier = 'sources'
from sourceSets.main.allSource + project(':core').sourceSets.shared.allSource + project(':sql').sourceSets.shared.allSource
manifest {
attributes("Implementation-Title": "Crate Data Java Client")
attributes("Implementation-Title": "Crate.IO Java Client")
}
}

Expand All @@ -150,7 +153,7 @@ install {
repositories {
mavenInstaller {
pom.whenConfigured {
it.dependencies.clear()
pom -> pom.dependencies.clear()
}
}
}
Expand All @@ -159,7 +162,7 @@ install {
project.ext.bintrayUsername = project.hasProperty('bintrayUsername') ? bintrayUsername : ""
project.ext.bintrayPassword = project.hasProperty('bintrayPassword') ? bintrayPassword : ""

uploadArchives.dependsOn([':core:compileSharedJava', ':sql:compileSharedJava', buildJar, buildJavadocJar, buildSourceJar, signJars])
uploadArchives.dependsOn([':core:compileSharedJava', ':sql:compileSharedJava', buildJavadocJar, buildSourceJar, buildJar, signJars])
uploadArchives {
repositories{
mavenDeployer {
Expand All @@ -170,12 +173,12 @@ uploadArchives {
}
}
pom.whenConfigured {
it.dependencies.clear()
pom -> pom.dependencies.clear()
}
pom.project {
artifactId 'crate-client'
name 'crate-client'
description 'Crate Data Java Client'
description 'Crate.IO Java Client'
url 'https://crate.io'
scm {
url 'https://github.com/crate/crate'
Expand Down

0 comments on commit 0b3779d

Please sign in to comment.