From f4a977e027a155c5c2a4344092ee8f94f2452f16 Mon Sep 17 00:00:00 2001 From: Alexander Chermenin Date: Tue, 8 Feb 2022 16:08:34 +0500 Subject: [PATCH] Prepare release 0.2.2 --- build.gradle.kts | 63 +++--------------------------------------------- 1 file changed, 3 insertions(+), 60 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7d71e27..a551ca2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "ru.chermenin" -version = "0.3.0-SNAPSHOT" +version = "0.2.2" repositories { mavenCentral() @@ -14,7 +14,7 @@ repositories { dependencies { implementation(kotlin("stdlib")) - implementation("com.github.ua-parser:uap-java:1.5.0") + implementation("com.github.ua-parser:uap-java:1.5.2") // Test dependencies testImplementation("org.jetbrains.kotlin:kotlin-test") @@ -41,68 +41,11 @@ tasks { } } -val nexusUsername: String? by project -val nexusPassword: String? by project - -tasks.named("uploadArchives") { - repositories { - withConvention(MavenRepositoryHandlerConvention::class) { - mavenDeployer { - beforeDeployment { signing.signPom(this) } - } - } - withGroovyBuilder { - "mavenDeployer" { - "repository"("url" to "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - "authentication"("userName" to nexusUsername, "password" to nexusPassword) - } - "snapshotRepository"("url" to "https://oss.sonatype.org/content/repositories/snapshots/") { - "authentication"("userName" to nexusUsername, "password" to nexusPassword) - } - "pom" { - "project" { - setProperty("name", "Kotlin User Agents") - setProperty("packaging", "jar") - setProperty( - "description", - "A library to identify device, browser and some additional information from user agent strings." - ) - setProperty("url", "https://code.chermenin.ru/kotlin-user-agents/") - "scm" { - setProperty("connection", "scm:") - setProperty("developerConnection", "scm:") - setProperty("url", "") - } - "developers" { - "developer" { - setProperty("id", "chermenin") - setProperty("name", "Alex Chermenin") - setProperty("email", "alex@chermenin.ru") - } - } - "licenses" { - "license" { - setProperty("name", "MIT") - setProperty("url", "https://github.com/chermenin/kotlin-user-agents/blob/master/LICENSE") - setProperty("distribution", "repo") - } - } - } - } - } - } - } -} - -signing { - sign(configurations.archives.get()) -} - publishing { repositories { maven { name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/OWNER/REPOSITORY") + url = uri("https://maven.pkg.github.com/chermenin/kotlin-user-agents") credentials { username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")