File tree Expand file tree Collapse file tree 5 files changed +39
-33
lines changed Expand file tree Collapse file tree 5 files changed +39
-33
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ jobs:
3232 fi
3333 echo "SHA256 verification passed"
3434
35- #Temporarily disable gpg checks due to keybase not returning the key
36- # Import ktlint PGP key and verify signature using official method
37- # curl -sS https://keybase.io/ktlint/pgp_keys.asc | gpg --import && gpg --verify ktlint.asc
38- # if [ $? -ne 0 ]; then
39- # echo "PGP signature verification failed!"
40- # exit 1
41- # fi
42- # echo "PGP signature verification passed"
35+ # Import ktlint PGP key
36+ gpg --keyserver keyserver.ubuntu.com --recv adbc987d1a7b91db6b0aaa81995efbf4a3d20beb
37+ gpg --verify ktlint.asc
38+ if [ $? -ne 0 ]; then
39+ echo "PGP signature verification failed!"
40+ exit 1
41+ fi
42+ echo "PGP signature verification passed"
4343
4444 # Install ktlint
4545 chmod a+x ktlint
Original file line number Diff line number Diff line change 11import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2- import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
32import org.jetbrains.kotlin.gradle.dsl.JvmTarget
43
54buildscript {
@@ -65,10 +64,6 @@ subprojects {
6564 }
6665 }
6766
68- tasks.withType<ShadowJar > {
69- isZip64 = true
70- }
71-
7267 tasks.withType<Test > {
7368 useJUnitPlatform()
7469 maxHeapSize = " 8192m"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ object Versions {
1313 const val CLOUDINARY = " 1.39.0"
1414 const val COROUTINES = " 1.10.2"
1515 const val EXPOSED = " 0.61.0"
16- const val FLYWAYDB = " 11.12.0 " // 11. 13.1 has issues with our flyway ktor plugin
16+ const val FLYWAYDB = " 11.13.1"
1717 const val GOOGLE_TRUTH = " 1.4.5"
1818 const val GRPC = " 1.75.0"
1919 const val GRPC_KOTLIN = " 1.5.0"
@@ -32,7 +32,7 @@ object Versions {
3232 const val KTLINT = " 1.7.1"
3333 const val KTLINT_PLUGIN = " 12.1.1"
3434 const val KTOR = " 3.3.0"
35- const val KTOR_FLYWAY = " 3.0 .0"
35+ const val KTOR_FLYWAY = " 3.3 .0"
3636 const val LOGBACK = " 1.5.18"
3737 const val MAVEN_PUBLISH = " 0.34.0"
3838 const val MOCKK = " 1.14.5"
Original file line number Diff line number Diff line change 1+ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
12import java.text.SimpleDateFormat
23import java.util.Date
34
@@ -96,13 +97,20 @@ dependencies {
9697 testImplementation(Dependencies .TestContainers .POSTGRESQL )
9798}
9899
99- tasks {
100- shadowJar {
101- // defaults to project.name
102- // archiveBaseName.set("${project.name}-fat")
100+ tasks.withType< ShadowJar > {
101+ isZip64 = true
102+ // defaults to project.name
103+ // archiveBaseName.set("${project.name}-fat")
103104
104- // defaults to all, so removing this overrides the normal, non-fat jar
105- archiveClassifier.set(" " )
105+ // defaults to "all", so removing this overrides the normal, non-fat jar
106+ archiveClassifier.set(" " )
107+
108+ // ensure gRPC stuff gets merged together first
109+ duplicatesStrategy = DuplicatesStrategy .INCLUDE
110+ mergeServiceFiles()
111+
112+ filesNotMatching(" META-INF/services/**" ) {
113+ duplicatesStrategy = DuplicatesStrategy .EXCLUDE
106114 }
107115}
108116
Original file line number Diff line number Diff line change 1+ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
12import java.text.SimpleDateFormat
23import java.time.Instant
34import java.util.Date
@@ -153,22 +154,24 @@ tasks.withType<Jar> {
153154 }
154155}
155156
156- tasks {
157- shadowJar {
158- isZip64 = true
159- // defaults to project.name
160- // archiveBaseName.set("${project.name}-fat")
157+ tasks.withType<ShadowJar > {
158+ isZip64 = true
159+ // defaults to project.name
160+ // archiveBaseName.set("${project.name}-fat")
161161
162- // defaults to "all", so removing this overrides the normal, non-fat jar
163- archiveClassifier.set(" " )
162+ // defaults to "all", so removing this overrides the normal, non-fat jar
163+ archiveClassifier.set(" " )
164164
165- // ensure gRPC stuff gets merged in
166- duplicatesStrategy = DuplicatesStrategy .INCLUDE
167- mergeServiceFiles()
165+ // ensure gRPC stuff gets merged together first
166+ duplicatesStrategy = DuplicatesStrategy .INCLUDE
167+ mergeServiceFiles()
168168
169- dependsOn( " distZip " )
170- dependsOn( " distTar " )
169+ filesNotMatching( " META-INF/services/** " ) {
170+ duplicatesStrategy = DuplicatesStrategy . EXCLUDE
171171 }
172+
173+ dependsOn(" distZip" )
174+ dependsOn(" distTar" )
172175}
173176
174177tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
You can’t perform that action at this time.
0 commit comments