import org.gradle.api.credentials.PasswordCredentials plugins { id("java-library") id("maven-publish") alias(libs.plugins.shadow) } allprojects { apply(plugin = "java-library") apply(plugin = "maven-publish") apply(plugin = "com.gradleup.shadow") group = "de.weapie.devlok" version = "2026.11.06-01" repositories { mavenCentral() } dependencies { compileOnly(rootProject.libs.lombok) annotationProcessor(rootProject.libs.lombok) compileOnlyApi(rootProject.libs.annotations) testAnnotationProcessor(rootProject.libs.lombok) testCompileOnly(rootProject.libs.lombok) testImplementation(platform(rootProject.libs.junit.bom)) testImplementation(rootProject.libs.junit.jupiter) testRuntimeOnly(rootProject.libs.junit.launcher) } java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 withSourcesJar() } tasks.withType { options.release.set(17) options.encoding = "UTF-8" options.isIncremental = true } tasks.withType().configureEach { useJUnitPlatform() testLogging { events("passed", "skipped", "failed") } } publishing { repositories { maven { name = "repo" url = uri("https://repo.jfritzsche.de/private") credentials(PasswordCredentials::class) authentication { create("basic") } } } publications { create("maven") { groupId = "${project.group}" artifactId = "${project.name}" version = "${project.version}" from(components["java"]) } } } tasks.shadowJar { archiveClassifier.set("all") filesMatching("META-INF/services/**") { duplicatesStrategy = DuplicatesStrategy.INCLUDE } mergeServiceFiles() exclude("META-INF/*.SF", "META-INF/*.RSA", "META-INF/*.DSA") } }