@@ -106,92 +106,92 @@ sourceSets {
106106// )
107107// }
108108//
109- // tasks.shadowJar {
110- // archiveClassifier.set("all")
111- //
112- // dependencies {
113- // exclude(dependency("org.apache.flink:.*"))
114- // }
115- // mergeServiceFiles()
116- // }
109+ tasks.shadowJar {
110+ archiveClassifier.set(" all" )
117111
118- // val shadowSourcesJar by tasks.registering(Jar::class) {
119- // archiveClassifier.set("all-sources")
120- // from(sourceSets.main.get().allSource)
121- // duplicatesStrategy = DuplicatesStrategy.EXCLUDE
122- // }
112+ dependencies {
113+ exclude(dependency(" org.apache.flink:.*" ))
114+ }
115+ mergeServiceFiles()
116+ }
117+
118+ val shadowSourcesJar by tasks.registering(Jar ::class ) {
119+ archiveClassifier.set(" all-sources" )
120+ from(sourceSets.main.get().allSource)
121+ duplicatesStrategy = DuplicatesStrategy .EXCLUDE
122+ }
123123
124124// tasks.jar {
125125// enabled = false
126126// }
127127
128- // publishing {
129- // publications {
130- // create<MavenPublication>("maven") {
131- // artifact(tasks.shadowJar)
132- // groupId = "com.clickhouse.flink"
133- // artifactId = "flink-connector-clickhouse-base"
134- // version = sinkVersion
135- //
136- // artifact(shadowSourcesJar)
137- //
138- // pom {
139- // name.set("ClickHouse Flink Connector")
140- // description.set("Official Apache Flink connector for ClickHouse")
141- // url.set("https://github.com/ClickHouse/flink-connector-clickhouse")
142- //
143- // licenses {
144- // license {
145- // name.set("The Apache License, Version 2.0")
146- // url.set("https://github.com/ClickHouse/flink-connector-clickhouse/blob/main/LICENSE")
147- // }
148- // }
149- //
150- // developers {
151- // developer {
152- // id.set("mzitnik")
153- // name.set("Mark Zitnik")
154- 155- // }
156- // developer {
157- // id.set("BentsiLeviav")
158- // name.set("Bentsi Leviav")
159- 160- // }
161- // }
162- //
163- // scm {
164- // connection.set("[email protected] :ClickHouse/flink-connector-clickhouse.git")165- // url.set("https://github.com/ClickHouse/flink-connector-clickhouse")
166- // }
167- //
168- // organization {
169- // name.set("ClickHouse")
170- // url.set("https://clickhouse.com")
171- // }
172- //
173- // issueManagement {
174- // system.set("GitHub Issues")
175- // url.set("https://github.com/ClickHouse/flink-connector-clickhouse/issues")
176- // }
177- // }
178- // }
179- // }
180- // }
181- //
182- // signing {
183- // val signingKey = System.getenv("SIGNING_KEY")
184- // val signingPassword = System.getenv("SIGNING_PASSWORD")
185- // if (signingKey != null && signingPassword != null) {
186- // useInMemoryPgpKeys(signingKey, signingPassword)
187- // sign(publishing.publications["maven"])
188- // }
189- // }
190- //
191- // nmcp {
192- // publish("maven") {
193- // username = System.getenv("NMCP_USERNAME")
194- // password = System.getenv("NMCP_PASSWORD")
195- // publicationType = "AUTOMATIC"
196- // }
197- // }
128+ publishing {
129+ publications {
130+ create<MavenPublication >(" maven" ) {
131+ artifact(tasks.shadowJar)
132+ groupId = " com.clickhouse.flink"
133+ artifactId = " flink-connector-clickhouse-base"
134+ version = sinkVersion
135+
136+ artifact(shadowSourcesJar)
137+
138+ pom {
139+ name.set(" ClickHouse Flink Connector" )
140+ description.set(" Official Apache Flink connector for ClickHouse" )
141+ url.set(" https://github.com/ClickHouse/flink-connector-clickhouse" )
142+
143+ licenses {
144+ license {
145+ name.set(" The Apache License, Version 2.0" )
146+ url.set(" https://github.com/ClickHouse/flink-connector-clickhouse/blob/main/LICENSE" )
147+ }
148+ }
149+
150+ developers {
151+ developer {
152+ id.set(" mzitnik" )
153+ name.set(" Mark Zitnik" )
154+ 155+ }
156+ developer {
157+ id.set(" BentsiLeviav" )
158+ name.set(" Bentsi Leviav" )
159+ 160+ }
161+ }
162+
163+ scm {
164+ connection.set(
" [email protected] :ClickHouse/flink-connector-clickhouse.git" )
165+ url.set(" https://github.com/ClickHouse/flink-connector-clickhouse" )
166+ }
167+
168+ organization {
169+ name.set(" ClickHouse" )
170+ url.set(" https://clickhouse.com" )
171+ }
172+
173+ issueManagement {
174+ system.set(" GitHub Issues" )
175+ url.set(" https://github.com/ClickHouse/flink-connector-clickhouse/issues" )
176+ }
177+ }
178+ }
179+ }
180+ }
181+
182+ signing {
183+ val signingKey = System .getenv(" SIGNING_KEY" )
184+ val signingPassword = System .getenv(" SIGNING_PASSWORD" )
185+ if (signingKey != null && signingPassword != null ) {
186+ useInMemoryPgpKeys(signingKey, signingPassword)
187+ sign(publishing.publications[" maven" ])
188+ }
189+ }
190+
191+ nmcp {
192+ publish(" maven" ) {
193+ username = System .getenv(" NMCP_USERNAME" )
194+ password = System .getenv(" NMCP_PASSWORD" )
195+ publicationType = " AUTOMATIC"
196+ }
197+ }
0 commit comments