Skip to content

Commit

Permalink
add publishing block to autodoc plugin + bump minor version of elemen…
Browse files Browse the repository at this point in the history
…t-core
  • Loading branch information
Steanky committed Feb 15, 2023
1 parent 1b9c1ac commit 98c4022
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions autodoc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import java.net.URI

plugins {
`maven-publish`
`java-gradle-plugin`
kotlin("jvm") version "1.8.20-Beta"
kotlin("plugin.serialization") version "1.8.0"
}

group = "com.github.steanky"
version = "0.1.0"

val functionalTest: SourceSet by sourceSets.creating

gradlePlugin {
Expand All @@ -30,6 +36,8 @@ dependencies {
"functionalTestImplementation"("org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.1")
"functionalTestRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:5.9.0")
"functionalTestImplementation"(project)

println(project.name)
}

val functionalTestTask = tasks.register<Test>("functionalTest") {
Expand All @@ -51,4 +59,24 @@ kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}

repositories {
maven {
name = project.name
url = URI.create("https://maven.cloudsmith.io/steanky/element/")

credentials {
username = System.getenv("CLOUDSMITH_USERNAME")
password = System.getenv("CLOUDSMITH_PASSWORD")
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "com.github.steanky"
version = "0.13.3"
version = "0.14.0"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
Expand Down

0 comments on commit 98c4022

Please sign in to comment.