|
| 1 | +apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle" |
| 2 | + |
| 3 | +compileKotlin { |
| 4 | + kotlinOptions { |
| 5 | + jvmTarget = JavaVersion.VERSION_11 |
| 6 | + freeCompilerArgs += ["-Xallow-result-return-type", "-Xsam-conversions=class"] |
| 7 | + } |
| 8 | +} |
| 9 | + |
| 10 | + |
| 11 | +java { |
| 12 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 13 | + targetCompatibility = JavaVersion.VERSION_11 |
| 14 | +} |
| 15 | + |
| 16 | +//noinspection GroovyAssignabilityCheck |
| 17 | +repositories { |
| 18 | + flatDir { |
| 19 | + dirs 'dist' |
| 20 | + } |
| 21 | +} |
| 22 | + |
| 23 | +//noinspection GroovyAssignabilityCheck |
| 24 | +configurations { |
| 25 | + z3native |
| 26 | +} |
| 27 | + |
| 28 | +dependencies { |
| 29 | + api project(':utbot-api') |
| 30 | + api project(':utbot-fuzzers') |
| 31 | + api project(':utbot-core') |
| 32 | + api project(':utbot-instrumentation') |
| 33 | + api project(':utbot-summary') |
| 34 | + api project(':utbot-framework-api') |
| 35 | + |
| 36 | + implementation(project(":utbot-framework")) |
| 37 | + testImplementation project(':utbot-sample') |
| 38 | + testImplementation project(":utbot-framework").sourceSets.test.output |
| 39 | + testImplementation project(":utbot-core").sourceSets.test.output |
| 40 | + |
| 41 | + implementation "com.github.UnitTestBot:soot:${soot_commit_hash}" |
| 42 | + |
| 43 | + implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: jackson_version |
| 44 | + implementation group: 'org.sosy-lab', name: 'javasmt-solver-z3', version: javasmt_solver_z3_version |
| 45 | + implementation group: 'com.github.curious-odd-man', name: 'rgxgen', version: rgxgen_version |
| 46 | + implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: log4j2_version |
| 47 | + implementation group: 'io.github.microutils', name: 'kotlin-logging', version: kotlin_logging_version |
| 48 | + implementation group: 'org.jacoco', name: 'org.jacoco.report', version: jacoco_version |
| 49 | + implementation group: 'org.apache.commons', name: 'commons-text', version: apache_commons_text_version |
| 50 | + // we need this for construction mocks from composite models |
| 51 | + implementation group: 'org.mockito', name: 'mockito-core', version: '4.2.0' |
| 52 | + |
| 53 | + // To use JUnit4, comment out JUnit5 and uncomment JUnit4 dependencies here. Please also check "test" section |
| 54 | + // testImplementation group: 'junit', name: 'junit', version: '4.13.1' |
| 55 | + testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.8.1' |
| 56 | + testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.1' |
| 57 | + |
| 58 | + // used for testing code generation |
| 59 | + testImplementation group: 'commons-io', name: 'commons-io', version: commons_io_version |
| 60 | + testImplementation group: 'junit', name: 'junit', version: junit4_version |
| 61 | + testImplementation group: 'org.junit.platform', name: 'junit-platform-console-standalone', version: junit4_platform_version |
| 62 | + testImplementation group: 'org.antlr', name: 'antlr4', version: antlr_version |
| 63 | + testImplementation group: 'org.mockito', name: 'mockito-core', version: mockito_version |
| 64 | + testImplementation group: 'org.testng', name: 'testng', version: testng_version |
| 65 | + testImplementation group: 'org.mockito', name: 'mockito-inline', version: mockito_inline_version |
| 66 | + testImplementation group: 'com.google.guava', name: 'guava', version: guava_version |
| 67 | + |
| 68 | + testImplementation group: 'org.mockito', name: 'mockito-inline', version: mockito_inline_version |
| 69 | + testImplementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j2_version |
| 70 | + |
| 71 | + z3native group: 'com.microsoft.z3', name: 'z3-native-win64', version: z3_version, ext: 'zip' |
| 72 | + z3native group: 'com.microsoft.z3', name: 'z3-native-linux64', version: z3_version, ext: 'zip' |
| 73 | + z3native group: 'com.microsoft.z3', name: 'z3-native-osx', version: z3_version, ext: 'zip' |
| 74 | +} |
| 75 | + |
| 76 | + |
| 77 | +test { |
| 78 | + |
| 79 | + minHeapSize = "128m" |
| 80 | + maxHeapSize = "2048m" |
| 81 | + |
| 82 | + jvmArgs '-XX:MaxHeapSize=2048m' |
| 83 | + |
| 84 | + // To use JUnit4, comment out useJUnitPlatform and uncomment useJUnit. Please also check "dependencies" section |
| 85 | + //useJUnit() |
| 86 | + useJUnitPlatform() { |
| 87 | + excludeTags 'slow', 'IntegrationTest' |
| 88 | + } |
| 89 | + if (System.getProperty('DEBUG', 'false') == 'true') { |
| 90 | + jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9009' |
| 91 | + } |
| 92 | +} |
0 commit comments