From bde02b11d025e8e489a7a09e805f32c655b3e107 Mon Sep 17 00:00:00 2001 From: Daymon Date: Wed, 3 Aug 2022 22:43:06 -0500 Subject: [PATCH] Initial release --- build.gradle.kts | 24 +++++++++++++++++++++++- settings.gradle.kts | 2 +- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ef3e872..2bc2bd3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,6 +6,7 @@ plugins { kotlin("jvm") version "1.7.10" id("daymxn-plugin") id("com.daymxn.kwiki") version "0.9.15" + id("maven-publish") `java-library` } @@ -19,8 +20,29 @@ kWiki { } group = "com.daymxn" -version = "0.1.0" +version = "1.0.0" tasks.withType { kotlinOptions.jvmTarget = "11" } + +publishing { + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/daymxn/kHTML") + credentials { + username = project.findProperty("gpr.user")?.toString() ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key")?.toString() ?: System.getenv("TOKEN") + } + } + } + publications { + register("kHTML") { + from(components["java"]) + pom { + url.set("https://maven.pkg.github.com/daymxn/kHTML") + } + } + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index f02141e..babd40c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,4 +24,4 @@ dependencyResolutionManagement { } } -rootProject.name = "kHTML" +rootProject.name = "khtml"