File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ plugins {
10
10
11
11
id(" maven-publish" )
12
12
id(" signing" )
13
+ id(" org.jlleitschuh.gradle.ktlint" ) version " 11.6.1"
13
14
}
14
15
15
16
repositories {
@@ -106,3 +107,11 @@ signing {
106
107
// useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
107
108
sign(publishing.publications)
108
109
}
110
+
111
+ ktlint {
112
+ filter {
113
+ exclude { entry ->
114
+ entry.file.toString().contains(" main" )
115
+ }
116
+ }
117
+ }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ plugins {
12
12
id(" java-library" )
13
13
id(" maven-publish" )
14
14
id(" signing" )
15
+ id(" org.jlleitschuh.gradle.ktlint" ) version " 11.6.1"
15
16
}
16
17
17
18
repositories {
@@ -111,3 +112,11 @@ signing {
111
112
// useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
112
113
sign(publishing.publications)
113
114
}
115
+
116
+ ktlint {
117
+ filter {
118
+ exclude { entry ->
119
+ entry.file.toString().contains(" main" )
120
+ }
121
+ }
122
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ LDK_NODE_ANDROID_DIR=" bindings/kotlin/ldk-node-android"
3
+ LDK_NODE_JVM_DIR=" bindings/kotlin/ldk-node-jvm"
4
+
5
+ # Run ktlintFormat in ldk-node-android
6
+ (
7
+ cd $LDK_NODE_ANDROID_DIR || exit 1
8
+ ./gradlew ktlintFormat
9
+ )
10
+
11
+ # Run ktlintFormat in ldk-node-jvm
12
+ (
13
+ cd $LDK_NODE_JVM_DIR || exit 1
14
+ ./gradlew ktlintFormat
15
+ )
You can’t perform that action at this time.
0 commit comments