-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (46 loc) · 1.76 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.7.21'
}
group 'me.sizableshrimp.adventofcode2022'
version '0.1.0'
java.toolchain.languageVersion = JavaLanguageVersion.of(18)
repositories {
mavenCentral()
}
sourceSets {
util
mainKotlin
data
}
configurations {
implementation.extendsFrom utilImplementation
animationProcessor.extendsFrom utilAnnotationProcessor
runtimeOnly.extendsFrom utilRuntimeOnly
compileOnly.extendsFrom utilCompileOnly
mainKotlinImplementation.extendsFrom utilImplementation
mainKotlinAnimationProcessor.extendsFrom utilAnnotationProcessor
mainKotlinRuntimeOnly.extendsFrom utilRuntimeOnly
mainKotlinCompileOnly.extendsFrom utilCompileOnly
}
dependencies {
mainKotlinImplementation sourceSets.util.output
mainKotlinImplementation sourceSets.data.output
implementation sourceSets.util.output
implementation sourceSets.data.output
utilImplementation 'org.projectlombok:lombok:1.18.24'
utilAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
utilImplementation 'one.util:streamex:0.8.1'
utilImplementation 'com.google.guava:guava:31.1-jre'
utilImplementation 'com.google.code.gson:gson:2.10'
utilImplementation 'it.unimi.dsi:fastutil:8.5.9'
testImplementation 'org.openjdk.jmh:jmh-core:1.35'
testAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.35'
}
task jmh(type: JavaExec, dependsOn: testClasses) {
mainClass = 'org.openjdk.jmh.Main'
classpath = sourceSets.test.compileClasspath + sourceSets.test.runtimeClasspath
def toolchain = project.extensions.getByType(JavaPluginExtension.class).toolchain
def service = project.extensions.getByType(JavaToolchainService.class)
javaLauncher = service.launcherFor(toolchain)
}