11plugins {
22 base
3+ java
34 id(" io.freefair.lombok" ) version " 9.1.0"
45}
56
6- buildscript {
7- repositories {
8- mavenCentral()
9- maven(" https://plugins.gradle.org/m2/" )
10- }
11- }
12-
13- allprojects {
14- group = " net.swofty"
15- version = " 1.0"
16-
17- repositories {
18- mavenLocal()
19- mavenCentral()
20- }
21- }
7+ group = " net.swofty"
8+ version = " 1.0"
229
2310subprojects {
24- apply (plugin = " io.freefair.lombok" )
2511 apply (plugin = " java" )
2612 apply (plugin = " java-library" )
27- apply (plugin = " application " )
13+ apply (plugin = " io.freefair.lombok " )
2814
29- plugins.withType<JavaPlugin > {
30- repositories {
31- mavenLocal()
32- mavenCentral()
33- gradlePluginPortal()
15+ repositories {
16+ mavenCentral()
17+ mavenLocal()
18+ maven(" https://repo.viaversion.com" )
19+ maven(" https://jitpack.io" )
20+ }
3421
35- maven(" https://repo.viaversion.com" )
36- maven(" https://jitpack.io" )
22+ java {
23+ toolchain {
24+ languageVersion.set(JavaLanguageVersion .of(25 ))
3725 }
26+ }
3827
39- dependencies {
40- " testImplementation" (" org.junit.jupiter:junit-jupiter:6.0.2" )
41-
42- " implementation" (" org.reflections:reflections:0.10.2" )
43- " implementation" (" com.fasterxml.jackson.core:jackson-databind:2.17.0" )
44- " implementation" (" com.fasterxml.jackson.core:jackson-annotations:2.17.0" )
45- " implementation" (" com.fasterxml.jackson.core:jackson-core:2.17.0" )
46- " implementation" (" org.json:json:20240303" )
47- " compileOnly" (" org.projectlombok:lombok:1.18.42" )
48- }
28+ dependencies {
29+ testImplementation(" org.junit.jupiter:junit-jupiter:6.0.2" )
4930
50- tasks.withType<JavaCompile > {
51- sourceCompatibility = JavaVersion .VERSION_25 .toString()
52- targetCompatibility = JavaVersion .VERSION_25 .toString()
53- options.encoding = " UTF-8"
54- }
31+ implementation(" org.reflections:reflections:0.10.2" )
32+ implementation(" org.json:json:20240303" )
5533
56- tasks.withType<Test > {
57- useJUnitPlatform()
58- }
59- }
34+ compileOnly(" org.projectlombok:lombok:1.18.42" )
6035
61- tasks.named<Zip >(" distZip" ) {
62- duplicatesStrategy = DuplicatesStrategy .INCLUDE
36+ implementation(platform(" tools.jackson:jackson-bom:3.0.3" ))
37+ implementation(" tools.jackson.core:jackson-core" )
38+ implementation(" tools.jackson.core:jackson-databind" )
39+ implementation(" com.fasterxml.jackson.core:jackson-annotations:2.20" )
6340 }
6441
65- tasks.named< Tar >( " distTar " ) {
66- duplicatesStrategy = DuplicatesStrategy . INCLUDE
42+ tasks.test {
43+ useJUnitPlatform()
6744 }
68- }
45+ }
0 commit comments