Skip to content

Commit cd73b8e

Browse files
chore: bump flyway dependencies
1 parent e8da0d4 commit cd73b8e

File tree

5 files changed

+39
-33
lines changed

5 files changed

+39
-33
lines changed

.github/workflows/ktlint.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2-
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
32
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
43

54
buildscript {
@@ -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"

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

newm-chain/build.gradle.kts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
12
import java.text.SimpleDateFormat
23
import 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

newm-server/build.gradle.kts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
12
import java.text.SimpleDateFormat
23
import java.time.Instant
34
import 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

174177
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {

0 commit comments

Comments
 (0)