From f4f9ad6d5105956635d6a07e429f53b63fa8842c Mon Sep 17 00:00:00 2001 From: TarCV Date: Sun, 24 Mar 2024 06:21:49 +0300 Subject: [PATCH] Setup building artifacts in CI --- build.gradle.kts | 20 +++++++++++++++++++- settings.gradle.kts | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) 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"