Skip to content

Commit

Permalink
Setup building artifacts in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TarCV committed Mar 24, 2024
1 parent f7ae054 commit f4f9ad6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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<AbstractArchiveTask>().configureEach {
// Settings for reproducibility
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
fileMode = "644".toInt(8)
}
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rootProject.name = "icu4j-regex"
rootProject.name = "u4jregex"

0 comments on commit f4f9ad6

Please sign in to comment.