Skip to content

Commit 4f69f9f

Browse files
committed
Try vanniktech-mavenPublish again
1 parent d587104 commit 4f69f9f

9 files changed

Lines changed: 48 additions & 110 deletions

File tree

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ plugins {
99
}
1010

1111
allprojects {
12-
version = "0.0.3"
12+
group = "sk.ai.net"
13+
version = "0.0.4"
1314
}
1415

1516
moduleGraphConfig {

convention-plugins/build.gradle.kts

Lines changed: 0 additions & 7 deletions
This file was deleted.

convention-plugins/settings.gradle.kts

Lines changed: 0 additions & 21 deletions
This file was deleted.

convention-plugins/src/main/kotlin/module.publication.gradle.kts

Lines changed: 0 additions & 53 deletions
This file was deleted.

convention-plugins/src/main/kotlin/root.publication.gradle.kts

Lines changed: 0 additions & 19 deletions
This file was deleted.

core/build.gradle.kts

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ plugins {
88
alias(libs.plugins.kotlinMultiplatform)
99
alias(libs.plugins.androidLibrary)
1010
alias(libs.plugins.binaryCompatibility)
11-
id("module.publication")
11+
alias(libs.plugins.vanniktech.mavenPublish)
1212
}
1313

14-
group = "sk.ai.net"
15-
1614
kotlin {
1715
jvm()
1816
androidTarget {
@@ -49,4 +47,45 @@ android {
4947
defaultConfig {
5048
minSdk = libs.versions.android.minSdk.get().toInt()
5149
}
52-
}
50+
}
51+
52+
publishing {
53+
repositories {
54+
maven {
55+
name = "GitHubPackages"
56+
url = uri("https://maven.pkg.github.com/sk-ai-net/skainet")
57+
credentials {
58+
username = System.getenv("GITHUB_ACTOR")
59+
password = System.getenv("GITHUB_TOKEN")
60+
}
61+
}
62+
}
63+
}
64+
65+
mavenPublishing {
66+
67+
coordinates(group.toString(), "core", version.toString())
68+
69+
pom {
70+
description.set("skainet")
71+
name.set(project.name)
72+
url.set("https://github.com/sk-ai-net/skainet/")
73+
licenses {
74+
license {
75+
name.set("MIT")
76+
distribution.set("repo")
77+
}
78+
}
79+
scm {
80+
url.set("https://github.com/sk-ai-net/skainet/")
81+
connection.set("scm:git:git@github.com:sk-ai-net/skainet.git")
82+
developerConnection.set("scm:git:ssh://git@github.com:sk-ai-net/skainet.git")
83+
}
84+
developers {
85+
developer {
86+
id.set("sk-ai-net")
87+
name.set("sk-ai-net")
88+
}
89+
}
90+
}
91+
}

core/gradle.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jetbrainsKotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "jetbrains
2626
kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
2727
binaryCompatibility = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "binaryCompatibility" }
2828
modulegraph-souza = { id = "dev.iurysouza.modulegraph", version.ref = "moduleGraphSouza" }
29+
vanniktech-mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.31.0" }

settings.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pluginManagement {
2-
includeBuild("convention-plugins")
32
repositories {
43
google()
54
mavenCentral()
@@ -16,5 +15,5 @@ dependencyResolutionManagement {
1615

1716
rootProject.name = "skainet"
1817
include(":core")
19-
include(":io")
20-
include(":gguf")
18+
//include(":io")
19+
//include(":gguf")

0 commit comments

Comments
 (0)