plugins { id 'java-library' } java { toolchain { languageVersion = JavaLanguageVersion.of(21) } withSourcesJar() } dependencies { api 'com.google.code.gson:gson:2.11.0' testImplementation platform('org.junit:junit-bom:5.11.0') testImplementation 'org.junit.jupiter:junit-jupiter' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } processResources { inputs.property "version", project.version filesMatching("fabric.mod.json") { expand "version": project.version } } tasks.named('test') { useJUnitPlatform() }