Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 19 additions & 82 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ for ( sv in ['2_10_5', '2_11_7'] ) {
}
}

def connectPkgs = ['connect-api', 'connect-runtime', 'connect-json', 'connect-file', 'connect-tools']
def connectPkgs = ['connect:api', 'connect:runtime', 'connect:json', 'connect:file']
def pkgs = ['clients', 'examples', 'log4j-appender', 'tools', 'streams'] + connectPkgs

tasks.create(name: "jarConnect", dependsOn: connectPkgs.collect { it + ":jar" }) {}
Expand Down Expand Up @@ -321,7 +321,7 @@ project(':core') {
standardOutput = new File('docs/kafka_config.html').newOutputStream()
}

task siteDocsTar(dependsOn: ['genProducerConfigDocs', 'genConsumerConfigDocs', 'genKafkaConfigDocs', ':connect-runtime:genConnectConfigDocs'], type: Tar) {
task siteDocsTar(dependsOn: ['genProducerConfigDocs', 'genConsumerConfigDocs', 'genKafkaConfigDocs', ':connect:runtime:genConnectConfigDocs'], type: Tar) {
classifier = 'site-docs'
compression = Compression.GZIP
from project.file("../docs")
Expand All @@ -342,16 +342,14 @@ project(':core') {
from(project.siteDocsTar) { into("site-docs/") }
from(project(':tools').jar) { into("libs/") }
from(project(':tools').configurations.runtime) { into("libs/") }
from(project(':connect-api').jar) { into("libs/") }
from(project(':connect-api').configurations.runtime) { into("libs/") }
from(project(':connect-runtime').jar) { into("libs/") }
from(project(':connect-runtime').configurations.runtime) { into("libs/") }
from(project(':connect-json').jar) { into("libs/") }
from(project(':connect-json').configurations.runtime) { into("libs/") }
from(project(':connect-file').jar) { into("libs/") }
from(project(':connect-file').configurations.runtime) { into("libs/") }
from(project(':connect-tools').jar) { into("libs/") }
from(project(':connect-tools').configurations.runtime) { into("libs/") }
from(project(':connect:api').jar) { into("libs/") }
from(project(':connect:api').configurations.runtime) { into("libs/") }
from(project(':connect:runtime').jar) { into("libs/") }
from(project(':connect:runtime').configurations.runtime) { into("libs/") }
from(project(':connect:json').jar) { into("libs/") }
from(project(':connect:json').configurations.runtime) { into("libs/") }
from(project(':connect:file').jar) { into("libs/") }
from(project(':connect:file').configurations.runtime) { into("libs/") }
}

jar {
Expand Down Expand Up @@ -638,7 +636,7 @@ project(':log4j-appender') {
test.dependsOn('checkstyleMain', 'checkstyleTest')
}

project(':connect-api') {
project(':connect:api') {
apply plugin: 'checkstyle'
archivesBaseName = "connect-api"

Expand Down Expand Up @@ -695,12 +693,12 @@ project(':connect-api') {
test.dependsOn('checkstyleMain', 'checkstyleTest')
}

project(':connect-json') {
project(':connect:json') {
apply plugin: 'checkstyle'
archivesBaseName = "connect-json"

dependencies {
compile project(':connect-api')
compile project(':connect:api')
compile "$slf4japi"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"

Expand Down Expand Up @@ -756,13 +754,14 @@ project(':connect-json') {
test.dependsOn('checkstyleMain', 'checkstyleTest')
}

project(':connect-runtime') {
project(':connect:runtime') {
apply plugin: 'checkstyle'
archivesBaseName = "connect-runtime"

dependencies {
compile project(':connect-api')
compile project(':connect:api')
compile project(':clients')
compile project(':tools')
compile "$slf4japi"

compile "org.eclipse.jetty:jetty-server:$jetty_version"
Expand All @@ -776,7 +775,7 @@ project(':connect-runtime') {
testCompile "$powermock_easymock"
testCompile project(':clients').sourceSets.test.output
testRuntime "$slf4jlog4j"
testRuntime project(":connect-json")
testRuntime project(":connect:json")
}

task testJar(type: Jar) {
Expand Down Expand Up @@ -830,75 +829,13 @@ project(':connect-runtime') {
}
}

project(':connect-file') {
project(':connect:file') {
apply plugin: 'checkstyle'
archivesBaseName = "connect-file"

dependencies {
compile project(':connect-api')
compile "$slf4japi"

testCompile "$junit"
testCompile "$easymock"
testCompile "$powermock"
testCompile "$powermock_easymock"
testRuntime "$slf4jlog4j"
}

task testJar(type: Jar) {
classifier = 'test'
from sourceSets.test.output
}

test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat = 'full'
}
}

javadoc {
include "**/org/apache/kafka/connect/*"
}

tasks.create(name: "copyDependantLibs", type: Copy) {
from (configurations.testRuntime) {
include('slf4j-log4j12*')
}
from (configurations.runtime) {
exclude('kafka-clients*')
exclude('connect-*')
}
into "$buildDir/dependant-libs"
}

jar {
dependsOn copyDependantLibs
}

artifacts {
archives testJar
}

configurations {
archives.extendsFrom(testCompile)
}

checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
}
test.dependsOn('checkstyleMain', 'checkstyleTest')
}

project(':connect-tools') {
apply plugin: 'checkstyle'
archivesBaseName = "connect-tools"

dependencies {
compile project(':connect-api')
compile project(':tools')
compile project(':connect:api')
compile "$slf4japi"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"

testCompile "$junit"
testCompile "$easymock"
Expand Down
1 change: 1 addition & 0 deletions checkstyle/import-control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@

<subpackage name="tools">
<allow pkg="org.apache.kafka.connect" />
<allow pkg="org.apache.kafka.tools" />
<allow pkg="com.fasterxml.jackson" />
</subpackage>
</subpackage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.kafka.tools.ThroughputThrottler;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.errors.ConnectException;
import org.apache.kafka.connect.source.SourceRecord;
import org.apache.kafka.connect.source.SourceTask;
import org.apache.kafka.tools.ThroughputThrottler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

apply from: file('scala.gradle')
include 'core', 'examples', 'clients', 'tools', 'streams', 'log4j-appender',
'connect-api', 'connect-runtime', 'connect-json', 'connect-file', 'connect-tools'
'connect:api', 'connect:runtime', 'connect:json', 'connect:file'
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* 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.
**/
*/

package org.apache.kafka.tools;

Expand Down