aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buildSrc/src/main/groovy/tools.refinery.java-conventions.gradle30
-rw-r--r--buildSrc/src/main/groovy/tools.refinery.junit-conventions.gradle33
-rw-r--r--language-to-store/build.gradle1
-rw-r--r--language-web/build.gradle1
-rw-r--r--language/build.gradle1
-rw-r--r--store/build.gradle1
6 files changed, 30 insertions, 37 deletions
diff --git a/buildSrc/src/main/groovy/tools.refinery.java-conventions.gradle b/buildSrc/src/main/groovy/tools.refinery.java-conventions.gradle
index 6bea6e46..2712d391 100644
--- a/buildSrc/src/main/groovy/tools.refinery.java-conventions.gradle
+++ b/buildSrc/src/main/groovy/tools.refinery.java-conventions.gradle
@@ -1,5 +1,6 @@
1plugins { 1plugins {
2 id 'eclipse' 2 id 'eclipse'
3 id 'jacoco'
3} 4}
4 5
5repositories { 6repositories {
@@ -9,9 +10,38 @@ repositories {
9 } 10 }
10} 11}
11 12
13dependencies {
14 testImplementation libs.hamcrest
15 testImplementation libs.junit.api
16 testRuntimeOnly libs.junit.engine
17 testImplementation libs.junit.params
18 testImplementation libs.mockito.core
19 testImplementation libs.mockito.junit
20}
21
12sourceCompatibility = '17' 22sourceCompatibility = '17'
13targetCompatibility = '17' 23targetCompatibility = '17'
14 24
25def jacocoTestReport = tasks.named('jacocoTestReport')
26jacocoTestReport.configure {
27 dependsOn test
28 reports {
29 xml.required = true
30 }
31}
32
33tasks.named('test') {
34 useJUnitPlatform {
35 excludeTags 'slow'
36 }
37 finalizedBy jacocoTestReport
38}
39
40tasks.register('slowTest', Test) {
41 useJUnitPlatform()
42 finalizedBy jacocoTestReport
43}
44
15tasks.named('jar') { 45tasks.named('jar') {
16 manifest { 46 manifest {
17 attributes 'Bundle-SymbolicName': project.name 47 attributes 'Bundle-SymbolicName': project.name
diff --git a/buildSrc/src/main/groovy/tools.refinery.junit-conventions.gradle b/buildSrc/src/main/groovy/tools.refinery.junit-conventions.gradle
deleted file mode 100644
index d62207b7..00000000
--- a/buildSrc/src/main/groovy/tools.refinery.junit-conventions.gradle
+++ /dev/null
@@ -1,33 +0,0 @@
1plugins {
2 id 'jacoco'
3 id 'tools.refinery.java-conventions'
4}
5
6dependencies {
7 testImplementation libs.hamcrest
8 testImplementation libs.junit.api
9 testRuntimeOnly libs.junit.engine
10 testImplementation libs.junit.params
11 testImplementation libs.mockito.core
12 testImplementation libs.mockito.junit
13}
14
15def jacocoTestReport = tasks.named('jacocoTestReport')
16jacocoTestReport.configure {
17 dependsOn test
18 reports {
19 xml.required = true
20 }
21}
22
23tasks.named('test') {
24 useJUnitPlatform {
25 excludeTags 'slow'
26 }
27 finalizedBy jacocoTestReport
28}
29
30tasks.register('slowTest', Test) {
31 useJUnitPlatform()
32 finalizedBy jacocoTestReport
33}
diff --git a/language-to-store/build.gradle b/language-to-store/build.gradle
index ea7969b1..92de9458 100644
--- a/language-to-store/build.gradle
+++ b/language-to-store/build.gradle
@@ -1,7 +1,6 @@
1plugins { 1plugins {
2 id 'java-library' 2 id 'java-library'
3 id 'tools.refinery.java-conventions' 3 id 'tools.refinery.java-conventions'
4 id 'tools.refinery.junit-conventions'
5 id 'tools.refinery.xtend-conventions' 4 id 'tools.refinery.xtend-conventions'
6} 5}
7 6
diff --git a/language-web/build.gradle b/language-web/build.gradle
index 1bacd35c..9f092e5e 100644
--- a/language-web/build.gradle
+++ b/language-web/build.gradle
@@ -4,7 +4,6 @@ plugins {
4 alias libs.plugins.frontend 4 alias libs.plugins.frontend
5 alias libs.plugins.shadow 5 alias libs.plugins.shadow
6 id 'tools.refinery.xtext-conventions' 6 id 'tools.refinery.xtext-conventions'
7 id 'tools.refinery.junit-conventions'
8} 7}
9 8
10import org.siouan.frontendgradleplugin.infrastructure.gradle.RunNpmYarn 9import org.siouan.frontendgradleplugin.infrastructure.gradle.RunNpmYarn
diff --git a/language/build.gradle b/language/build.gradle
index 5eb5484d..4208979f 100644
--- a/language/build.gradle
+++ b/language/build.gradle
@@ -2,7 +2,6 @@ plugins {
2 id 'java-library' 2 id 'java-library'
3 id 'java-test-fixtures' 3 id 'java-test-fixtures'
4 id 'tools.refinery.xtext-conventions' 4 id 'tools.refinery.xtext-conventions'
5 id 'tools.refinery.junit-conventions'
6 id 'tools.refinery.mwe2-conventions' 5 id 'tools.refinery.mwe2-conventions'
7 id 'tools.refinery.xtend-conventions' 6 id 'tools.refinery.xtend-conventions'
8} 7}
diff --git a/store/build.gradle b/store/build.gradle
index 555c57be..43a496ba 100644
--- a/store/build.gradle
+++ b/store/build.gradle
@@ -1,7 +1,6 @@
1plugins { 1plugins {
2 id 'java-library' 2 id 'java-library'
3 id 'tools.refinery.java-conventions' 3 id 'tools.refinery.java-conventions'
4 id 'tools.refinery.junit-conventions'
5 id 'tools.refinery.jmh-conventions' 4 id 'tools.refinery.jmh-conventions'
6} 5}
7 6