File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ plugins {
1010
1111 id(" maven-publish" )
1212 id(" signing" )
13+ id(" org.jlleitschuh.gradle.ktlint" ) version " 11.6.1"
1314}
1415
1516repositories {
@@ -106,3 +107,11 @@ signing {
106107// useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
107108 sign(publishing.publications)
108109}
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 {
1212 id(" java-library" )
1313 id(" maven-publish" )
1414 id(" signing" )
15+ id(" org.jlleitschuh.gradle.ktlint" ) version " 11.6.1"
1516}
1617
1718repositories {
@@ -111,3 +112,11 @@ signing {
111112// useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
112113 sign(publishing.publications)
113114}
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