aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle61
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin59203 -> 59536 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties2
-rwxr-xr-xgradlew2
4 files changed, 42 insertions, 23 deletions
diff --git a/build.gradle b/build.gradle
index d460e2a..0a1a5b0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,52 +1,71 @@
-plugins {
+plugins
+{
id 'java-gradle-plugin'
id 'maven-publish'
}
-repositories {
+repositories
+{
mavenCentral()
}
-sourceSets {
- functionalTest {
+dependencies
+{
+ def junit5Group = 'org.junit.jupiter'
+ def junit5Version = '5.8.1'
+ testImplementation group: junit5Group, name: 'junit-jupiter-api', version: junit5Version
+ testRuntimeOnly group: junit5Group, name: 'junit-jupiter-engine', version: junit5Version
+}
+
+java
+{
+ toolchain
+ {
+ languageVersion = JavaLanguageVersion.of(11)
+ }
+}
+
+sourceSets
+{
+ functionalTest
+ {
compileClasspath += sourceSets.main.output + sourceSets.test.output
runtimeClasspath += sourceSets.test.runtimeClasspath
}
}
-gradlePlugin {
+gradlePlugin
+{
testSourceSets project.sourceSets.functionalTest
- plugins {
- fregePlugin {
- id = 'ch.fhnw.thga.frege'
+ plugins
+ {
+ fregePlugin
+ {
+ id = 'ch.fhnw.thga.frege'
implementationClass = 'ch.fhnw.thga.gradleplugins.FregePlugin'
}
}
}
-configurations {
+configurations
+{
functionalTestImplementation.extendsFrom testImplementation
functionalRuntimeOnly.extendsFrom runtimeOnly
}
-tasks.register('functionalTest', Test) {
- description = 'Runs functional tests.'
- group = 'verification'
+tasks.register('functionalTest', Test)
+{
+ description = 'Runs functional tests.'
+ group = 'verification'
testClassesDirs = sourceSets.functionalTest.output.classesDirs
- classpath = sourceSets.functionalTest.runtimeClasspath
+ classpath = sourceSets.functionalTest.runtimeClasspath
shouldRunAfter test
}
check.dependsOn functionalTest
-tasks.withType(Test).configureEach {
+tasks.withType(Test).configureEach
+{
useJUnitPlatform()
maxParallelForks 6
}
-
-dependencies {
- def junit5Group = 'org.junit.jupiter'
- def junit5Version = '5.8.1'
- testImplementation group: junit5Group, name: 'junit-jupiter-api', version: junit5Version
- testRuntimeOnly group: junit5Group, name: 'junit-jupiter-engine', version: junit5Version
-}
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index e708b1c..7454180 100644
--- a/gradle/wrapper/gradle-wrapper.jar
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 69a9715..2e6e589 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index 4f906e0..744e882 100755
--- a/gradlew
+++ b/gradlew
@@ -72,7 +72,7 @@ case "`uname`" in
Darwin* )
darwin=true
;;
- MINGW* )
+ MSYS* | MINGW* )
msys=true
;;
NONSTOP* )