Skip to content

Commit a82196e

Browse files
authored
Build: simple local maven publishing (#324)
1 parent c0f166d commit a82196e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

SwiftKitCore/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,32 @@
1414

1515
plugins {
1616
id("build-logic.java-application-conventions")
17+
id("maven-publish")
1718
}
1819

1920
group = "org.swift.swiftkit"
2021
version = "1.0-SNAPSHOT"
22+
base {
23+
archivesName = "swiftkit-core"
24+
}
2125

2226
repositories {
27+
mavenLocal()
2328
mavenCentral()
2429
}
2530

31+
publishing {
32+
publications {
33+
maven(MavenPublication) {
34+
groupId = group
35+
artifactId = 'swiftkit-core'
36+
version = '1.0-SNAPSHOT'
37+
38+
from components.java
39+
}
40+
}
41+
}
42+
2643
java {
2744
toolchain {
2845
languageVersion.set(JavaLanguageVersion.of(17))

SwiftKitFFM/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,32 @@
1414

1515
plugins {
1616
id("build-logic.java-application-conventions")
17+
id("maven-publish")
1718
}
1819

1920
group = "org.swift.swiftkit"
2021
version = "1.0-SNAPSHOT"
22+
base {
23+
archivesName = "swiftkit-ffm"
24+
}
2125

2226
repositories {
27+
mavenLocal()
2328
mavenCentral()
2429
}
2530

31+
publishing {
32+
publications {
33+
maven(MavenPublication) {
34+
groupId = group
35+
artifactId = 'swiftkit-ffm'
36+
version = '1.0-SNAPSHOT'
37+
38+
from components.java
39+
}
40+
}
41+
}
42+
2643
java {
2744
toolchain {
2845
languageVersion.set(JavaLanguageVersion.of(24))

0 commit comments

Comments
 (0)