plugins { id "java" } version = project.mod_version group = project.maven_group base { archivesName = project.archives_base_name } repositories { mavenCentral() } dependencies { // Testing testImplementation(platform('org.junit:junit-bom:5.12.0')) testImplementation('org.junit.jupiter:junit-jupiter') testRuntimeOnly('org.junit.platform:junit-platform-launcher') } tasks.named("test", Test) { useJUnitPlatform() } processResources { inputs.property "version", project.version } tasks.withType(JavaCompile).configureEach { it.options.release = 21 } java { withSourcesJar() sourceCompatibility = JavaVersion.VERSION_21 targetCompatibility = JavaVersion.VERSION_21 } jar { from("LICENSE") { rename { "${it}_${base.archivesName.get()}" } } }