diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-11-17 03:06:39 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-11-17 03:06:39 +0100 |
commit | 720b9e2fb0968905e5a80f6099eab37554a6af58 (patch) | |
tree | b471f4da129efbfa730830a70e0107de852833d7 /buildSrc/src/main/groovy/tools.refinery.xtext-conventions.gradle | |
parent | build: use version catalogs (diff) | |
download | refinery-720b9e2fb0968905e5a80f6099eab37554a6af58.tar.gz refinery-720b9e2fb0968905e5a80f6099eab37554a6af58.tar.zst refinery-720b9e2fb0968905e5a80f6099eab37554a6af58.zip |
build: move scripts into script plugins
Script plugins allow applying other plugins from plugins { } blocks,
which simplifies the build script.
Diffstat (limited to 'buildSrc/src/main/groovy/tools.refinery.xtext-conventions.gradle')
-rw-r--r-- | buildSrc/src/main/groovy/tools.refinery.xtext-conventions.gradle | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/buildSrc/src/main/groovy/tools.refinery.xtext-conventions.gradle b/buildSrc/src/main/groovy/tools.refinery.xtext-conventions.gradle new file mode 100644 index 00000000..3fd2f9d6 --- /dev/null +++ b/buildSrc/src/main/groovy/tools.refinery.xtext-conventions.gradle | |||
@@ -0,0 +1,21 @@ | |||
1 | plugins { | ||
2 | id 'org.sonarqube' | ||
3 | id 'tools.refinery.java-conventions' | ||
4 | } | ||
5 | |||
6 | sourceSets { | ||
7 | main { | ||
8 | java.srcDirs += ['src/main/xtext-gen'] | ||
9 | resources.srcDirs += ['src/main/xtext-gen'] | ||
10 | } | ||
11 | } | ||
12 | |||
13 | tasks.named('clean') { | ||
14 | delete 'src/main/xtext-gen' | ||
15 | } | ||
16 | |||
17 | sonarqube.properties { | ||
18 | properties['sonar.exclusions'] += [ | ||
19 | 'src/main/xtext-gen/**', | ||
20 | ] | ||
21 | } | ||