diff --git a/build.gradle.kts b/build.gradle.kts index 102101d..604696e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,13 +2,13 @@ plugins { kotlin("multiplatform") version "1.5.31" `maven-publish` signing + id("org.jetbrains.dokka") version "1.5.31" } group = "nl.astraeus" -version = "1.0.0" +version = "1.0.1" repositories { - mavenLocal() mavenCentral() maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") } } @@ -48,7 +48,7 @@ kotlin { } extra["PUBLISH_GROUP_ID"] = "nl.astraeus" -extra["PUBLISH_VERSION"] = "1.0.0" +extra["PUBLISH_VERSION"] = "1.0.1" extra["PUBLISH_ARTIFACT_ID"] = "kotlin-css-generator" // Stub secrets to let the project sync and build without the publication values set up @@ -64,12 +64,16 @@ extra["signing.secretKeyRingFile"] = signingSecretKeyRingFile extra["ossrhUsername"] = ossrhUsername extra["ossrhPassword"] = ossrhPassword +val javadocJar by tasks.registering(Jar::class) { + archiveClassifier.set("javadoc") +} + publishing { repositories { maven { name = "releases" // change to point to your repo, e.g. http://my.org/repo - url = uri("http://nexus.astraeus.nl/nexus/content/repositories/releases") + url = uri("https://nexus.astraeus.nl/nexus/content/repositories/releases") credentials { val nexusUsername: String by project val nexusPassword: String by project @@ -81,7 +85,7 @@ publishing { maven { name = "snapshots" // change to point to your repo, e.g. http://my.org/repo - url = uri("http://nexus.astraeus.nl/nexus/content/repositories/snapshots") + url = uri("https://nexus.astraeus.nl/nexus/content/repositories/snapshots") credentials { val nexusUsername: String by project val nexusPassword: String by project @@ -90,9 +94,9 @@ publishing { password = nexusPassword } } - maven { + maven { name = "sonatype" - setUrl("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") + setUrl("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2") credentials { username = ossrhUsername password = ossrhPassword @@ -102,9 +106,8 @@ publishing { // Configure all publications publications.withType { - // Stub javadoc.jar artifact - //artifact(javadocJar.get()) + artifact(javadocJar.get()) // Provide artifacts information requited by Maven Central pom { @@ -130,7 +133,6 @@ publishing { } } } - } signing { diff --git a/readme.md b/readme.md index b32e1b5..8e4de78 100644 --- a/readme.md +++ b/readme.md @@ -6,6 +6,22 @@ It can be used as an alternative to less/sass or as a runtime library to generat Tools like less and sass are often used as a build step and take some time. This library is meant to be fast enough to generate the css on the fly either from the server or directly in the browser. +## Usage + +Include in build.gradle.kts: + +```kotlin + repositories { + mavenCentral() + } + + val commonMain by getting { + dependencies { + api("nl.astraeus:kotlin-css-generator:1.0.1") + } + } +``` + Examples: ## Nesting / colors / variables