blob: 59fe921b5a04c0625e861e985060d4035390f8ef (
plain) (
blame)
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
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.gradle
import tools.refinery.gradle.utils.SonarPropertiesUtils
plugins {
id("tools.refinery.gradle.internal.java-conventions")
id("tools.refinery.gradle.sonarqube")
}
val xtextGenPath = "src/main/xtext-gen"
sourceSets.main {
java.srcDir(xtextGenPath)
resources.srcDir(xtextGenPath)
}
tasks.clean {
delete(xtextGenPath)
}
sonarqube.properties {
SonarPropertiesUtils.addToList(properties, "sonar.exclusions", "$xtextGenPath/**")
}
|