@@ -9,15 +9,15 @@ buildscript {
99 }
1010 }
1111 dependencies {
12- classpath ' com.github.jengelman.gradle.plugins:shadow:6.0 .0'
12+ classpath ' com.github.jengelman.gradle.plugins:shadow:6.1 .0'
1313 classpath " org.jfrog.buildinfo:build-info-extractor-gradle:4.17.0"
1414 }
1515}
1616
1717plugins {
1818 id ' maven-publish'
1919 id ' com.jfrog.artifactory' version ' 4.17.0'
20- id ' com.github.johnrengelman.shadow' version ' 6.0 .0'
20+ id ' com.github.johnrengelman.shadow' version ' 6.1 .0'
2121}
2222
2323
@@ -26,12 +26,15 @@ def flinkVersion = rootProject.flinkVersion
2626version = rootProject. file(' version.txt' ). text. trim()
2727
2828def minimalVersion = version
29- def dependenciesVersion = " 0.3.2 "
29+ def dependenciesVersion = " 0.4.0 "
3030
3131description = """ dagger to the heart!"""
3232
33- sourceCompatibility = 1.8
34- targetCompatibility = 1.8
33+
34+ java {
35+ sourceCompatibility = JavaVersion . VERSION_1_8
36+ targetCompatibility = JavaVersion . VERSION_1_8
37+ }
3538
3639tasks. withType(JavaCompile ) {
3740 options. encoding = ' UTF-8'
@@ -61,47 +64,61 @@ configurations {
6164dependencies {
6265 minimalJar project(path : ' :dagger-common' , configuration : ' minimalCommonJar' )
6366 minimalJar project(path : ' :dagger-functions' , configuration : ' minimalFunctionsJar' )
64- minimalJar(' com.gotocompany:depot:0.4.0' ) {
65- exclude group : ' org.apache.httpcomponents'
66- exclude group : ' com.google.protobuf'
67- exclude group : ' com.datadoghq'
68- exclude group : ' com.google.cloud' , module :' google-cloud-bigtable'
67+ minimalJar(' com.gotocompany:depot:0.6.0' ) {
68+ exclude group : ' com.google.cloud' , module : ' google-cloud-bigtable'
69+ exclude group : ' com.google.cloud' , module : ' google-cloud-bigquerystorage'
70+ exclude group : ' com.google.cloud' , module : ' google-cloud-bigquery'
71+ exclude group : ' com.google.protobuf' , module : ' protobuf-java'
72+ exclude group : ' com.google.protobuf' , module : ' protobuf-java-util'
73+ exclude group : " io.grpc"
74+ }
75+ minimalJar (' com.gotocompany:stencil:0.6.0' ) {
76+ exclude group : ' com.google.protobuf' , module : ' protobuf-java'
77+ exclude group : ' com.google.protobuf' , module : ' protobuf-java-util'
6978 }
7079 compileOnly ' org.projectlombok:lombok:1.18.8'
7180 annotationProcessor ' org.projectlombok:lombok:1.18.8'
7281
73- implementation ' org.slf4j: slf4j-log4j12:1.7 .7'
82+ implementation group : ' org.slf4j' , name : ' slf4j-reload4j ' , version : ' 2.0 .7'
7483 implementation ' org.apache.flink:flink-streaming-java_2.11:' + flinkVersion
7584 implementation ' org.apache.flink:flink-clients_2.11:' + flinkVersion
7685 implementation ' org.apache.flink:flink-table:' + flinkVersion
7786 implementation ' org.apache.flink:flink-table-api-java-bridge_2.11:' + flinkVersion
7887 implementation ' org.apache.flink:flink-table-planner_2.11:' + flinkVersion
79- implementation ' com.gotocompany:stencil:0.4.0'
8088
89+ dependenciesJar ' io.grpc:grpc-all:1.55.1'
8190 dependenciesJar project(path : ' :dagger-common' , configuration : ' dependenciesCommonJar' )
8291 dependenciesJar project(path : ' :dagger-functions' , configuration : ' dependenciesFunctionsJar' )
83-
92+ dependenciesJar(group : ' com.google.cloud' , name : ' google-cloud-bigquerystorage' , version : ' 2.39.1' ) {
93+ exclude group : " io.grpc"
94+ }
95+ dependenciesJar(group : ' com.google.cloud' , name : ' google-cloud-bigtable' , version : ' 2.24.1' ){
96+ exclude group : " io.grpc"
97+ }
98+ dependenciesJar(group : ' com.google.cloud' , name : ' google-cloud-bigquery' , version : ' 2.29.0' ) {
99+ exclude group : " io.grpc"
100+ }
84101 dependenciesJar ' org.apache.flink:flink-connector-kafka_2.11:' + flinkVersion
85- dependenciesJar ' com.google.protobuf:protobuf-java:3.1.0 '
102+ dependenciesJar ' com.google.protobuf:protobuf-java:3.23.2 '
86103 dependenciesJar ' com.google.protobuf:protobuf-java-util:3.1.0'
87104 dependenciesJar ' org.influxdb:influxdb-java:2.8'
88105 dependenciesJar ' org.elasticsearch.client:elasticsearch-rest-client:6.6.1'
89- dependenciesJar ' com.google.cloud.bigtable:bigtable-hbase-2.x:1.11 .0'
106+ dependenciesJar ' com.google.cloud.bigtable:bigtable-hbase-2.x:2.10 .0'
90107 dependenciesJar ' org.asynchttpclient:async-http-client:2.10.1'
91108 dependenciesJar ' io.vertx:vertx-pg-client:3.9.0'
92109 dependenciesJar ' org.apache.commons:commons-pool2:2.4.3'
93110 dependenciesJar ' org.apache.parquet:parquet-protobuf:1.12.2'
94111
95112 testImplementation project(' :dagger-common' ). sourceSets. test. output
96- testImplementation ' junit:junit:4.13'
113+ testImplementation ' junit:junit:4.13.1 '
97114 testImplementation ' org.apache.flink:flink-test-utils_2.11:' + flinkVersion
98- testImplementation ' org.apache.kafka:kafka-clients:2.5.0 '
115+ testImplementation ' org.apache.kafka:kafka-clients:2.6.3 '
99116 testImplementation ' com.github.tomakehurst:wiremock-standalone:2.27.0'
100117 testImplementation ' org.jmockit:jmockit:1.25'
101118 testImplementation ' org.mockito:mockito-core:2.25.1'
102119 testImplementation ' org.powermock:powermock-module-junit4:2.0.0-beta.5'
103120 testImplementation ' org.powermock:powermock-api-mockito2:2.0.0-beta.5'
104- testImplementation ' com.google.guava:guava:27.0.1 -jre'
121+ testImplementation ' com.google.guava:guava:30.0 -jre'
105122 testImplementation ' org.grpcmock:grpcmock-junit5:0.5.0'
106123 testImplementation ' com.github.stefanbirkner:system-rules:1.19.0'
107124}
@@ -163,20 +180,7 @@ jar {
163180 }
164181}
165182
166- shadowJar {
167- mergeServiceFiles()
168- minimize {
169- exclude(dependency(' io.vertx:vertx-pg-client:.*' ))
170- exclude(dependency(' com.google.cloud.bigtable:bigtable-hbase-2.x:.*' ))
171- }
172- zip64 true
173- configurations = [project. configurations. minimalJar, project. configurations. dependenciesJar]
174- relocate(' com.google.protobuf' , ' shaded.com.google.protobuf' ) {
175- exclude ' combine.self="override"'
176- }
177- }
178-
179- task minimalJar (type : ShadowJar ) {
183+ tasks. register(' minimalJar' , ShadowJar ) {
180184 manifest. attributes ' Main-Class' : mainClassName
181185 archiveClassifier = ' minimal'
182186 zip64 true
@@ -187,7 +191,7 @@ task minimalJar(type: ShadowJar) {
187191 exclude(" core-site.xml" )
188192}
189193
190- task dependenciesJar ( type : ShadowJar ) {
194+ tasks . register( ' dependenciesJar ' , ShadowJar ) {
191195 mergeServiceFiles()
192196 manifest. attributes ' Main-Class' : mainClassName
193197 archiveClassifier = ' dependencies'
@@ -197,7 +201,7 @@ task dependenciesJar(type: ShadowJar) {
197201 archiveVersion = dependenciesVersion
198202}
199203
200- task fatJar ( type : ShadowJar ) {
204+ tasks . register( ' fatJar ' , ShadowJar ) {
201205 description = " Builds a executable jar"
202206 manifest. attributes ' Main-Class' : mainClassName
203207 archiveClassifier = ' fat'
@@ -217,10 +221,6 @@ private Properties loadEnv() {
217221
218222publishing {
219223 publications {
220- shadow(MavenPublication ) {
221- publication ->
222- project. shadow. component(publication)
223- }
224224 minimalArtifact(MavenPublication ) {
225225 artifact file(" $buildDir /libs/dagger-core-${ minimalVersion} -minimal.jar" )
226226 groupId project. group
@@ -264,9 +264,9 @@ artifactory {
264264 clientConfig. info. setBuildNumber(System . env. BUILD_NUMBER )
265265}
266266
267- task minimalAndShadowPublish (dependsOn : ' minimalJar' ) {
268- dependsOn(' publishMinimalArtifactPublicationToGitHubPackagesRepository' , ' publishShadowPublicationToGitHubPackagesRepository ' )
269- description(' Publishes minimal and shadow jar' )
267+ task minimalPublish (dependsOn : ' minimalJar' ) {
268+ dependsOn(' publishMinimalArtifactPublicationToGitHubPackagesRepository' )
269+ description(' Publishes minimal jar' )
270270}
271271
272272task dependenciesPublish (dependsOn : ' dependenciesJar' ) {
0 commit comments