-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (51 loc) · 1.41 KB
/
build.gradle
File metadata and controls
62 lines (51 loc) · 1.41 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
plugins {
id 'application'
}
group 'it.tommaso.playground'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
implementation "ch.qos.logback:logback-classic:${logbackVersion}"
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
}
dependencyLocking {
lockAllConfigurations()
}
task resolveAllConfig {
description = "Resolves and locks all resolvable configurations that have locking enabled. To be used along --write-locks flag to lock all dependencies"
doFirst {
assert gradle.startParameter.writeDependencyLocks
}
doLast {
project.configurations
.findAll { it.canBeResolved }
.each { it.resolve() }
}
}
test {
useJUnitPlatform()
}
application {
mainClassName = 'it.tommaso.playground.PlaygroundMain'
}
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
manifest {
attributes(
'Main-Class': 'it.tommaso.playground.PlaygroundMain'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = "8.1.1"
}