Skip to content

Commit 98c4022

Browse files
committed
add publishing block to autodoc plugin + bump minor version of element-core
1 parent 1b9c1ac commit 98c4022

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

autodoc/build.gradle.kts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
import java.net.URI
2+
13
plugins {
4+
`maven-publish`
25
`java-gradle-plugin`
36
kotlin("jvm") version "1.8.20-Beta"
47
kotlin("plugin.serialization") version "1.8.0"
58
}
69

10+
group = "com.github.steanky"
11+
version = "0.1.0"
12+
713
val functionalTest: SourceSet by sourceSets.creating
814

915
gradlePlugin {
@@ -30,6 +36,8 @@ dependencies {
3036
"functionalTestImplementation"("org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.1")
3137
"functionalTestRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:5.9.0")
3238
"functionalTestImplementation"(project)
39+
40+
println(project.name)
3341
}
3442

3543
val functionalTestTask = tasks.register<Test>("functionalTest") {
@@ -51,4 +59,24 @@ kotlin {
5159
jvmToolchain {
5260
languageVersion.set(JavaLanguageVersion.of(17))
5361
}
62+
}
63+
64+
publishing {
65+
publications {
66+
create<MavenPublication>("maven") {
67+
from(components["java"])
68+
}
69+
}
70+
71+
repositories {
72+
maven {
73+
name = project.name
74+
url = URI.create("https://maven.cloudsmith.io/steanky/element/")
75+
76+
credentials {
77+
username = System.getenv("CLOUDSMITH_USERNAME")
78+
password = System.getenv("CLOUDSMITH_PASSWORD")
79+
}
80+
}
81+
}
5482
}

buildSrc/src/main/kotlin/element.java-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group = "com.github.steanky"
6-
version = "0.13.3"
6+
version = "0.14.0"
77

88
java {
99
toolchain.languageVersion.set(JavaLanguageVersion.of(17))

0 commit comments

Comments
 (0)