Skip to content

Commit 873dfd4

Browse files
Merge Master
2 parents 1fd56ac + af7bc1c commit 873dfd4

3 files changed

Lines changed: 31 additions & 5 deletions

File tree

build.gradle

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ java.sourceCompatibility = JavaVersion.VERSION_1_8
1919
repositories {
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

5455
compileJavacc {
@@ -71,6 +72,16 @@ jacoco {
7172
test {
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

254265
publishing {
255266
publications {

gradle.properties

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Specifies the JVM arguments used for the daemon process.
2+
# The setting is particularly useful for tweaking memory settings.
3+
org.gradle.jvmargs=-Xmx1G -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError
4+
5+
org.gradle.caching=true
6+
7+
# Modularise your project and enable parallel build
8+
org.gradle.parallel=true
9+
10+
# Enable configure on demand.
11+
org.gradle.configureondemand=true
12+

src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
import static org.junit.jupiter.api.Assertions.fail;
4646
import org.junit.jupiter.api.Disabled;
4747
import org.junit.jupiter.api.Test;
48+
import org.junit.jupiter.api.parallel.Execution;
49+
import org.junit.jupiter.api.parallel.ExecutionMode;
4850

51+
@Execution(ExecutionMode.CONCURRENT)
4952
public class SelectTest {
5053

5154
private final CCJSqlParserManager parserManager = new CCJSqlParserManager();

0 commit comments

Comments
 (0)