-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathbuild.gradle.kts
43 lines (41 loc) · 1.59 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* SonarQube PHP Plugin
* Copyright (C) 2010-2025 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Sonar Source-Available License Version 1, as published by SonarSource SA.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Sonar Source-Available License for more details.
*
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
plugins {
alias(libs.plugins.spotless)
id("org.sonarsource.php.artifactory-configuration")
id("org.sonarsource.php.rule-api")
id("org.sonarsource.php.sonarqube")
}
val kotlinGradleDelimiter = "(package|import|plugins|pluginManagement|dependencyResolutionManagement|repositories) "
spotless {
// Mainly used to define spotless configuration for the build-logic
encoding(Charsets.UTF_8)
kotlinGradle {
ktlint().setEditorConfigPath("$rootDir/.editorconfig")
target("*.gradle.kts", "build-logic/*.gradle.kts", "/build-logic/src/**/*.gradle.kts")
licenseHeaderFile(
rootProject.file("LICENSE_HEADER"),
kotlinGradleDelimiter,
).updateYearWithLatest(true)
}
kotlin {
ktlint().setEditorConfigPath("$rootDir/.editorconfig")
target("/build-logic/src/**/*.kt")
licenseHeaderFile(rootProject.file("LICENSE_HEADER")).updateYearWithLatest(true)
}
}
tasks.artifactoryPublish { skip = true }