aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-16 13:19:31 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-16 16:53:01 +0200
commit97b0c4c1192fe5580a7957c844acc8092b56c604 (patch)
treebea3cdf9aaeb5da2864fcf87780d356661af8f63 /buildSrc
parentbuild: fix Sonar quality gate issues (diff)
downloadrefinery-97b0c4c1192fe5580a7957c844acc8092b56c604.tar.gz
refinery-97b0c4c1192fe5580a7957c844acc8092b56c604.tar.zst
refinery-97b0c4c1192fe5580a7957c844acc8092b56c604.zip
chore: remove VIATRA branding
Rename VIATRA subprojects to Refinery Interpreter to avoid interfering with Eclipse Foundation trademarks. Uses refering to a specific (historical) version of VIATRA were kept to avoid ambiguity.
Diffstat (limited to 'buildSrc')
-rw-r--r--buildSrc/src/main/kotlin/tools/refinery/gradle/interpreter-library.gradle.kts32
-rw-r--r--buildSrc/src/main/kotlin/tools/refinery/gradle/skip-coverage.gradle.kts16
2 files changed, 32 insertions, 16 deletions
diff --git a/buildSrc/src/main/kotlin/tools/refinery/gradle/interpreter-library.gradle.kts b/buildSrc/src/main/kotlin/tools/refinery/gradle/interpreter-library.gradle.kts
new file mode 100644
index 00000000..ae30ff1b
--- /dev/null
+++ b/buildSrc/src/main/kotlin/tools/refinery/gradle/interpreter-library.gradle.kts
@@ -0,0 +1,32 @@
1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
3 *
4 * SPDX-License-Identifier: EPL-2.0
5 */
6package tools.refinery.gradle
7
8import tools.refinery.gradle.utils.SonarPropertiesUtils
9
10plugins {
11 id("maven-publish")
12 id("tools.refinery.gradle.java-library")
13 id("tools.refinery.gradle.sonarqube")
14}
15
16property("tools.refinery.interpreter.group")?.let { group = it }
17property("tools.refinery.interpreter.version")?.let { version = it }
18
19tasks {
20 withType(Jar::class) {
21 // Make sure we include external project notices.
22 from(layout.projectDirectory.file("about.html"))
23 from(layout.projectDirectory.file("NOTICE.md"))
24 }
25}
26
27sonarqube.properties {
28 // Code copied from the VIATRA project is maintained by the VIATRA contributors.
29 // Our own modifications are verified by tests in our own subprojects.
30 // Therefore, we disable coverage checking for vendor subprojects.
31 SonarPropertiesUtils.addToList(properties, "sonar.coverage.exclusions", "src/main/**")
32}
diff --git a/buildSrc/src/main/kotlin/tools/refinery/gradle/skip-coverage.gradle.kts b/buildSrc/src/main/kotlin/tools/refinery/gradle/skip-coverage.gradle.kts
deleted file mode 100644
index 4b843742..00000000
--- a/buildSrc/src/main/kotlin/tools/refinery/gradle/skip-coverage.gradle.kts
+++ /dev/null
@@ -1,16 +0,0 @@
1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
3 *
4 * SPDX-License-Identifier: EPL-2.0
5 */
6package tools.refinery.gradle
7
8import tools.refinery.gradle.utils.SonarPropertiesUtils
9
10plugins {
11 id("tools.refinery.gradle.sonarqube")
12}
13
14sonarqube.properties {
15 SonarPropertiesUtils.addToList(properties, "sonar.coverage.exclusions", "src/main/**")
16}