File tree Expand file tree Collapse file tree 6 files changed +38
-20
lines changed
plugin/src/main/java/com/ncorti/kotlin/gradle/template/plugin Expand file tree Collapse file tree 6 files changed +38
-20
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,16 @@ plugins {
10
10
11
11
subprojects {
12
12
apply {
13
- plugin(rootProject.libs.plugins.detekt.get().pluginId)
14
- plugin(rootProject.libs.plugins.ktlint.get().pluginId)
13
+ plugin(
14
+ rootProject.libs.plugins.detekt
15
+ .get()
16
+ .pluginId,
17
+ )
18
+ plugin(
19
+ rootProject.libs.plugins.ktlint
20
+ .get()
21
+ .pluginId,
22
+ )
15
23
}
16
24
17
25
ktlint {
Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
detekt = " 1.23.8"
3
3
kotlin = " 2.1.21"
4
- ktlintGradle = " 12.3 .0"
4
+ ktlintGradle = " 13.0 .0"
5
5
pluginPublish = " 1.3.1"
6
6
versionCheck = " 0.52.0"
7
7
Original file line number Diff line number Diff line change @@ -13,8 +13,16 @@ allprojects {
13
13
version = property(" VERSION" ).toString()
14
14
15
15
apply {
16
- plugin(rootProject.libs.plugins.detekt.get().pluginId)
17
- plugin(rootProject.libs.plugins.ktlint.get().pluginId)
16
+ plugin(
17
+ rootProject.libs.plugins.detekt
18
+ .get()
19
+ .pluginId,
20
+ )
21
+ plugin(
22
+ rootProject.libs.plugins.ktlint
23
+ .get()
24
+ .pluginId,
25
+ )
18
26
}
19
27
20
28
ktlint {
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ const val DEFAULT_OUTPUT_FILE = "template-example.txt"
10
10
@Suppress(" UnnecessaryAbstractClass" )
11
11
abstract class TemplateExtension
12
12
@Inject
13
- constructor (project: Project ) {
13
+ constructor (
14
+ project: Project ,
15
+ ) {
14
16
private val objects = project.objects
15
17
16
18
// Example of a property that is mandatory. The task will
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ dependencyResolutionManagement {
19
19
}
20
20
21
21
plugins {
22
- id(" com.gradle.develocity" ) version " 4.0.2"
22
+ id(" com.gradle.develocity" ) version " 4.0.2"
23
23
}
24
24
25
25
develocity {
26
- buildScan.termsOfUseUrl = " https://gradle.com/terms-of-service"
27
- buildScan.termsOfUseAgree = " yes"
28
- buildScan.publishing.onlyIf {
29
- System .getenv(" GITHUB_ACTIONS" ) == " true" &&
30
- it.buildResult.failures.isNotEmpty()
31
- }
26
+ buildScan.termsOfUseUrl = " https://gradle.com/terms-of-service"
27
+ buildScan.termsOfUseAgree = " yes"
28
+ buildScan.publishing.onlyIf {
29
+ System .getenv(" GITHUB_ACTIONS" ) == " true" &&
30
+ it.buildResult.failures.isNotEmpty()
31
+ }
32
32
}
33
33
34
34
rootProject.name = (" com.ncorti.kotlin.gradle.template" )
Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ dependencyResolutionManagement {
13
13
}
14
14
15
15
plugins {
16
- id(" com.gradle.develocity" ) version " 4.0.2"
16
+ id(" com.gradle.develocity" ) version " 4.0.2"
17
17
}
18
18
19
19
develocity {
20
- buildScan.termsOfUseUrl = " https://gradle.com/terms-of-service"
21
- buildScan.termsOfUseAgree = " yes"
22
- buildScan.publishing.onlyIf {
23
- System .getenv(" GITHUB_ACTIONS" ) == " true" &&
24
- it.buildResult.failures.isNotEmpty()
25
- }
20
+ buildScan.termsOfUseUrl = " https://gradle.com/terms-of-service"
21
+ buildScan.termsOfUseAgree = " yes"
22
+ buildScan.publishing.onlyIf {
23
+ System .getenv(" GITHUB_ACTIONS" ) == " true" &&
24
+ it.buildResult.failures.isNotEmpty()
25
+ }
26
26
}
27
27
28
28
rootProject.name = " kotlin-gradle-plugin-template"
You can’t perform that action at this time.
0 commit comments