From 98c402258444334076ec39c9ac4101356f7eb60f Mon Sep 17 00:00:00 2001 From: steank Date: Wed, 15 Feb 2023 14:40:09 -0800 Subject: [PATCH] add publishing block to autodoc plugin + bump minor version of element-core --- autodoc/build.gradle.kts | 28 +++++++++++++++++++ .../element.java-conventions.gradle.kts | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/autodoc/build.gradle.kts b/autodoc/build.gradle.kts index 34a8838..dfe1089 100644 --- a/autodoc/build.gradle.kts +++ b/autodoc/build.gradle.kts @@ -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 { @@ -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("functionalTest") { @@ -51,4 +59,24 @@ kotlin { jvmToolchain { languageVersion.set(JavaLanguageVersion.of(17)) } +} + +publishing { + publications { + create("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") + } + } + } } \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/element.java-conventions.gradle.kts b/buildSrc/src/main/kotlin/element.java-conventions.gradle.kts index a9786dd..0849ed2 100644 --- a/buildSrc/src/main/kotlin/element.java-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/element.java-conventions.gradle.kts @@ -3,7 +3,7 @@ plugins { } group = "com.github.steanky" -version = "0.13.3" +version = "0.14.0" java { toolchain.languageVersion.set(JavaLanguageVersion.of(17))