Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ testing.suites {
// Prettify test failure output in console.
result.exception?.message?.lineSequence()?.firstOrNull()?.let(logger::error)
}
}
},
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract class GenerateDocTests : DefaultTask() {
lineNumber = line,
snippet = matcher.group(2),
sourceLocation = "${file.toURI()}:$line",
)
),
)
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@ abstract class GenerateDocTests : DefaultTask() {
|}
|
"""
.trimMargin()
.trimMargin(),
)
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pluginPublish = { module = "com.gradle.plugin-publish:com.gradle.plugin-publish.

androidx-gradlePluginLints = "androidx.lint:lint-gradle:1.0.0"
# Dummy to get renovate updates, the version is used in rootProject build.gradle with spotless.
ktfmt = "com.facebook:ktfmt:0.64"
ktfmt = "org.jetbrains.kotlinx:ktfmt:0.65"
r8 = "com.android.tools:r8:9.5.23"

junit-bom = "org.junit:junit-bom:6.1.3"
Expand All @@ -38,5 +38,5 @@ android-lint = "com.android.lint:9.4.1"
jetbrains-dokka = "org.jetbrains.dokka:2.3.0-Beta"
mavenPublish = "com.vanniktech.maven.publish:0.37.0"
pluginPublish = { id = "com.gradle.plugin-publish", version.ref = "pluginPublish" }
spotless = "com.diffplug.spotless:8.10.3"
spotless = "com.diffplug.spotless:8.10.4"
buildConfig = "com.github.gmazzo.buildconfig:6.1.2"
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sealed interface SnippetExecutable {
|enableFeaturePreview 'STABLE_CONFIGURATION_CACHE'
|enableFeaturePreview 'TYPESAFE_PROJECT_ACCESSORS'
"""
.trimMargin()
.trimMargin(),
)
val pluginsBlock =
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class ApplicationPluginTest : BasePluginTest() {
|Hello, World! (bar) from Main
|Refs: junit.framework.Test
|"""
.trimMargin()
.trimMargin(),
)
}

Expand All @@ -144,7 +144,7 @@ class ApplicationPluginTest : BasePluginTest() {
| }
|}
"""
.trimMargin()
.trimMargin(),
)

var result = runWithSuccess(runShadowPath)
Expand All @@ -169,7 +169,7 @@ class ApplicationPluginTest : BasePluginTest() {
| args 'bar'
|}
"""
.trimMargin()
.trimMargin(),
)

result = runWithSuccess(":run")
Expand All @@ -186,7 +186,7 @@ class ApplicationPluginTest : BasePluginTest() {
| mainClass = 'my.Main2' // Different from application.mainClass.
|}
"""
.trimMargin()
.trimMargin(),
)

runWithSuccess(runShadowPath) // Run without errors.
Expand Down Expand Up @@ -278,7 +278,7 @@ class ApplicationPluginTest : BasePluginTest() {
|applicationName = '${applicationNames.first}'
|executableDir = '${executableDirs.first}'
"""
.trimMargin()
.trimMargin(),
)

runWithSuccess(installShadowDistPath, shadowDistZipPath)
Expand Down Expand Up @@ -328,13 +328,13 @@ class ApplicationPluginTest : BasePluginTest() {
|}
|
"""
.trimMargin()
.trimMargin(),
)
settingsScript.writeText(
getDefaultSettingsBuildScript(
startBlock = settingsBlock,
endBlock = "rootProject.name = 'myapp'",
)
),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ abstract class BasePluginTest {
"""
|include 'client', 'server'
"""
.trimMargin()
.trimMargin(),
)
projectScript.deleteExisting()

Expand All @@ -259,7 +259,7 @@ abstract class BasePluginTest {
|package client;
|public class Client {}
"""
.trimMargin()
.trimMargin(),
)
path("client/build.gradle")
.writeText(
Expand All @@ -270,7 +270,7 @@ abstract class BasePluginTest {
|}
|
"""
.trimMargin()
.trimMargin(),
)

path("server/src/main/java/server/Server.java")
Expand All @@ -280,7 +280,7 @@ abstract class BasePluginTest {
|import client.Client;
|public class Server {}
"""
.trimMargin()
.trimMargin(),
)
path("server/build.gradle")
.writeText(
Expand All @@ -294,7 +294,7 @@ abstract class BasePluginTest {
|}
|
"""
.trimMargin()
.trimMargin(),
)

if (!clientShadowed) return
Expand All @@ -306,7 +306,7 @@ abstract class BasePluginTest {
|}
|
"""
.trimMargin()
.trimMargin(),
)
path("server/src/main/java/server/Server.java")
.writeText(
Expand All @@ -316,7 +316,7 @@ abstract class BasePluginTest {
|import client.junit.framework.Test;
|public class Server {}
"""
.trimMargin()
.trimMargin(),
)
val replaced =
path("server/build.gradle")
Expand All @@ -338,7 +338,7 @@ abstract class BasePluginTest {
|}
|
"""
.trimMargin()
.trimMargin(),
)

path("src/main/java/my/plugin/MyPlugin.java")
Expand All @@ -353,7 +353,7 @@ abstract class BasePluginTest {
| }
|}
"""
.trimMargin()
.trimMargin(),
)
}

Expand Down
Loading
Loading