Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
bug: Fix describe to set connector class, validate before pushing config
Browse files Browse the repository at this point in the history
Avoid pushing in bad configurations as Connect can be come stuck
  • Loading branch information
Andrew Stevenson committed Aug 19, 2017
1 parent 4b9649c commit 55fad2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ project/plugins/project/
/.project
/.classpath
/test.props
/bin/connect-cli
Binary file removed bin/connect-cli
Binary file not shown.
29 changes: 9 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ buildscript {
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'com.github.maiflai:gradle-scalatest:0.14'
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
classpath 'com.github.maiflai:gradle-scalatest:0.16'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath 'net.researchgate:gradle-release:2.3.4'
classpath 'net.researchgate:gradle-release:2.6.0'
}
}

Expand All @@ -24,6 +24,7 @@ ext {
akkaVersion = "2.4.3"
scalaMockVersion = "3.2.2"
scalaTestVersion = "2.2.6"
scalaLoggingVersion = '2.1.2'
}

apply plugin: 'signing'
Expand All @@ -40,21 +41,12 @@ allprojects {
group = 'com.datamountaineer'
version = version
description = "kafka-connect-cli"

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.name == 'log4j') {
details.useTarget "org.slf4j:slf4j-api:$slf4jVersion"
}
}
}
}

dependencies {
Expand Down Expand Up @@ -115,10 +107,9 @@ tasks.withType(Tar) {
}

task compile(dependsOn: 'compileScala')
task fatJar(dependsOn : ['test', 'shadowJar', 'makeCli'])
task fatJarNoTest(dependsOn : 'shadowJar')
task fatJar(dependsOn : ['test', 'shadowJar'])

println "Building ${name}-${version}"
task fatJarNoTest(dependsOn : 'shadowJar')

signing {
sign configurations.archives
Expand Down Expand Up @@ -190,9 +181,7 @@ nexusStaging {
password = ossrhPassword
}

task makeCli(type: Copy) {
from "src/main/resources/cli"
into "."

expand(version: version)
task makeCli(type: Exec, dependsOn: [fatJar]) {
executable "bin/package.sh"
args = [version]
}

0 comments on commit 55fad2c

Please sign in to comment.