forked from UnitTestBot/UTBotJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (58 loc) · 2.46 KB
/
build.gradle
File metadata and controls
70 lines (58 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
configurations {
fetchInstrumentationJar
}
compileKotlin {
kotlinOptions {
allWarningsAsErrors = false
}
}
dependencies {
api project(":utbot-framework")
api project(':utbot-summary')
implementation group: 'org.mockito', name: 'mockito-core', version: mockito_version
// Without this dependency testng tests do not run.
implementation group: 'com.beust', name: 'jcommander', version: '1.48'
implementation group: 'org.testng', name: 'testng', version: testng_version
implementation group: 'junit', name: 'junit', version: junit4_version
implementation group: 'org.junit.platform', name: 'junit-platform-console-standalone', version: junit4_platform_version
implementation group: 'io.github.microutils', name: 'kotlin-logging', version: kotlin_logging_version
implementation group: 'com.github.ajalt.clikt', name: 'clikt', version: clikt_version
implementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junit5_version
implementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junit5_version
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j2_version
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4j2_version
implementation group: 'org.jacoco', name: 'org.jacoco.report', version: jacoco_version
fetchInstrumentationJar project(path: ':utbot-instrumentation', configuration:'instrumentationArchive')
}
processResources {
from(configurations.fetchInstrumentationJar) {
into "lib"
}
}
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/version.properties").withWriter { w ->
Properties properties = new Properties()
properties['version'] = project.version.toString()
properties.store w, null
}
}
}
classes {
dependsOn createProperties
}
jar {
manifest {
attributes 'Main-Class': 'org.utbot.cli.ApplicationKt'
attributes 'Bundle-SymbolicName': 'org.utbot.cli'
attributes 'Bundle-Version': "${project.version}"
attributes 'Implementation-Title': 'UtBot Java CLI'
attributes 'JAR-Type': 'Fat JAR'
}
version project.version
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}