diff --git a/build.gradle.kts b/build.gradle.kts index a5ef7ec..a98e403 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,10 @@ plugins { id("java") + `maven-publish` } val icuVersion = 74.2 -group = "com.github.TarCV.u4jregex" +group = "com.github.TarCV" version = "$icuVersion-SNAPSHOT" repositories { @@ -20,4 +21,21 @@ dependencies { implementation("com.ibm.icu:icu4j:$icuVersion") testImplementation("junit:junit:4.13.2") testImplementation("pl.pragmatists:JUnitParams:1.1.1") +} + +tasks { + withType().configureEach { + // Settings for reproducibility + isPreserveFileTimestamps = false + isReproducibleFileOrder = true + fileMode = "644".toInt(8) + } +} + +publishing { + publications { + create("maven") { + from(components["java"]) + } + } } \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 6fddb3f..ed8916d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,2 +1,2 @@ -rootProject.name = "icu4j-regex" +rootProject.name = "u4jregex"