@@ -3,10 +3,15 @@ apply from: file('gradle/environment.gradle')
33apply from : file(" gradle/dependency-versions.gradle" )
44apply from : file(" gradle/install-git-hooks.gradle" )
55
6+ apply plugin : ' com.palantir.docker'
7+
68buildscript {
79 repositories {
810 mavenCentral()
911 }
12+ dependencies {
13+ classpath " com.palantir.docker:com.palantir.docker.gradle.plugin:0.26.0"
14+ }
1015 apply from : file(' gradle/buildscript.gradle' ), to : buildscript
1116}
1217
@@ -18,7 +23,6 @@ allprojects {
1823 apply plugin : ' project-report'
1924 apply plugin : ' checkstyle'
2025 apply plugin : ' findbugs'
21-
2226 repositories {
2327 mavenCentral()
2428 jcenter()
@@ -44,6 +48,14 @@ idea {
4448 }
4549}
4650
51+ docker {
52+ name ' brooklin'
53+ tags ' latest' // deprecated, use 'tag'
54+ dockerfile file(' Dockerfile' )
55+ files file(" ${ project.rootDir} /datastream-tools/build/distributions/${ rootProject.name} -${ rootProject.version} .tgz" )
56+ buildArgs([VERSION : rootProject. version])
57+ }
58+
4759subprojects {
4860 apply plugin : ' java'
4961 apply plugin : ' pegasus'
@@ -396,39 +408,6 @@ project(':datastream-tools') {
396408 duplicatesStrategy ' exclude'
397409 }
398410
399- tasks. create(name : " copyLibs" , group : " distribution" , dependsOn : configurations. archives. artifacts, type : Copy ) {
400- description = " Copy libs to debug folder"
401-
402- // debugLibDir is supposed to provide as a cli parameter
403- // e.g. ./gradlew build -x test -x check -x licenseMain copyLibs
404-
405- into " ${ debugLibDir} /libs/"
406- from configurations. archives. artifacts. files,
407- project(' :datastream-bigquery' ). jar,
408- project(' :datastream-bigquery' ). configurations. runtime,
409- project(' :datastream-cloud-storage' ). jar,
410- project(' :datastream-cloud-storage' ). configurations. runtime,
411- project(' :datastream-tools' ). jar,
412- project(' :datastream-tools' ). configurations. runtime,
413- project(' :datastream-server' ). jar,
414- project(' :datastream-server' ). configurations. runtime,
415- project(' :datastream-file-connector' ). jar,
416- project(' :datastream-file-connector' ). configurations. runtime,
417- project(' :datastream-jdbc-connector' ). jar,
418- project(' :datastream-jdbc-connector' ). configurations. runtime,
419- project(' :datastream-directory' ). jar,
420- project(' :datastream-directory' ). configurations. runtime,
421- project(' :datastream-testcommon' ). jar,
422- project(' :datastream-testcommon' ). configurations. runtime,
423- project(' :datastream-common' ). jar,
424- project(' :datastream-common' ). configurations. runtime,
425- project(' :datastream-kafka' ). jar,
426- project(' :datastream-kafka' ). configurations. runtime,
427- project(' :datastream-kafka-connector' ). jar,
428- project(' :datastream-kafka-connector' ). configurations. runtime
429-
430- duplicatesStrategy ' exclude'
431- }
432411 tasks. create(name : " copyDependentLibs" , type : Copy ) {
433412 from (configurations. runtime) {
434413 }
0 commit comments