@@ -19,12 +19,12 @@ java.sourceCompatibility = JavaVersion.VERSION_1_8
1919repositories {
2020 gradlePluginPortal()
2121 mavenLocal()
22+ mavenCentral()
2223 maven {
2324 url = uri(' https://repo.maven.apache.org/maven2/' )
2425 }
25-
2626 maven {
27- url " https://plugins.gradle.org/m2/"
27+ url " https://plugins.gradle.org/m2/"
2828 }
2929}
3030
@@ -37,7 +37,7 @@ dependencies {
3737 testImplementation ' com.h2database:h2:1.4.200'
3838
3939
40-
40+
4141 // for JaCoCo Reports
4242 testImplementation ' org.junit.jupiter:junit-jupiter-api:5.7.1'
4343 testImplementation ' org.junit.jupiter:junit-jupiter-params'
@@ -49,6 +49,7 @@ dependencies {
4949
5050 // enforce latest version of JavaCC
5151 javacc ' net.java.dev.javacc:javacc:7.0.10'
52+
5253}
5354
5455compileJavacc {
@@ -71,6 +72,16 @@ jacoco {
7172test {
7273 useJUnitPlatform()
7374
75+ // set heap size for the test JVM(s)
76+ minHeapSize = " 128m"
77+ maxHeapSize = " 1G"
78+
79+ jvmArgs << [
80+ ' -Djunit.jupiter.execution.parallel.enabled=true' ,
81+ ' -Djunit.jupiter.execution.parallel.config.strategy=dynamic' ,
82+ ' -Djunit.jupiter.execution.parallel.mode.default=concurrent'
83+ ]
84+
7485 finalizedBy jacocoTestReport // report is always generated after tests run
7586 finalizedBy jacocoTestCoverageVerification
7687}
@@ -108,7 +119,7 @@ jacocoTestCoverageVerification {
108119 limit {
109120 counter = ' LINE'
110121 value = ' MISSEDCOUNT'
111- maximum = 5458
122+ maximum = 5500
112123 }
113124 excludes = [
114125 ' net.sf.jsqlparser.util.validation.*' ,
@@ -249,7 +260,7 @@ task updateKeywords(type: JavaExec) {
249260 classpath = sourceSets. main. runtimeClasspath
250261 main = " net.sf.jsqlparser.parser.ParserKeywordsUtils"
251262}
252-
263+
253264
254265publishing {
255266 publications {
0 commit comments