/
build.gradle
103 lines (87 loc) · 2.06 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id 'application'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
group 'com.github.ucov'
version '1.0-SNAPSHOT'
compileJava {
options.encoding = 'UTF-8'
sourceCompatibility = '21'
targetCompatibility = '21'
options.compilerArgs += ["--enable-preview"]
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
sourceCompatibility = '21'
targetCompatibility = '21'
options.compilerArgs += ["--enable-preview"]
}
test {
jvmArgs '--enable-preview'
}
repositories {
mavenCentral()
mavenLocal()
maven {
name = "IntelliJ"
url 'https://packages.jetbrains.team/maven/p/ij/intellij-dependencies'
}
maven {
name = "Roseau"
url = "https://maven.pkg.github.com/alien-tools/roseau"
credentials {
username = project.findProperty("gpr.user")
password = project.findProperty("gpr.key")
}
}
}
dependencies {
implementation 'fr.inria.gforge.spoon:spoon-core:10.4.2-beta-5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.2'
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
implementation 'com.github.maracas:roseau:0.0.2-SNAPSHOT'
}
jar {
manifest {
attributes 'Main-Class': 'com.github.ucov.Main',
'Multi-Release': 'true'
}
}
application {
mainClass = 'com.github.ucov.Main'
}
description = 'Main distribution.'
shadowJar {
archiveBaseName.set('ucov')
archiveClassifier.set('')
archiveVersion.set('')
mergeServiceFiles()
}
distributions {
shadow {
distributionBaseName = 'ucov'
}
}
apply plugin: 'java'
apply plugin: 'idea'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
run {
jvmArgs = [
"-XX:InitialHeapSize=2G",
"-XX:MaxHeapSize=2G",
"--enable-preview"
]
}
runShadow {
jvmArgs = [
"-XX:InitialHeapSize=2G",
"-XX:MaxHeapSize=2G",
"--enable-preview"
]
}