-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
39 lines (32 loc) · 1.14 KB
/
build.gradle
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
plugins {
id 'java'
id 'maven-publish'
}
group 'ru.DmN'
version properties.version
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation "org.jetbrains:annotations:23.0.0"
implementation group: 'org.ow2.asm', name: 'asm', version: '9.4'
implementation group: 'org.ow2.asm', name: 'asm-tree', version: '9.4'
implementation "ru.DmN:DmNBytecodeUtils:12.4"
testImplementation group: 'org.apiguardian', name: 'apiguardian-api', version: '1.1.2'
testImplementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.1'
}
test {
useJUnitPlatform()
}
task generateConfig {
file("build/resources/test").mkdirs()
if (!file("build/resources/test/config.properties").exists()) {
file("build/resources/test/config.properties") << "version = ${version}"
}
}
tasks.matching { it.name == "build" }.all { Task task -> task.dependsOn generateConfig}
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16