v. 1.0.1, update readme.md

Took 1 hour 56 minutes
This commit is contained in:
2021-10-09 20:13:38 +02:00
parent b2c112f711
commit 6375a0d78d
2 changed files with 28 additions and 10 deletions

View File

@@ -2,13 +2,13 @@ plugins {
kotlin("multiplatform") version "1.5.31" kotlin("multiplatform") version "1.5.31"
`maven-publish` `maven-publish`
signing signing
id("org.jetbrains.dokka") version "1.5.31"
} }
group = "nl.astraeus" group = "nl.astraeus"
version = "1.0.0" version = "1.0.1"
repositories { repositories {
mavenLocal()
mavenCentral() mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") } maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
} }
@@ -48,7 +48,7 @@ kotlin {
} }
extra["PUBLISH_GROUP_ID"] = "nl.astraeus" 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" extra["PUBLISH_ARTIFACT_ID"] = "kotlin-css-generator"
// Stub secrets to let the project sync and build without the publication values set up // 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["ossrhUsername"] = ossrhUsername
extra["ossrhPassword"] = ossrhPassword extra["ossrhPassword"] = ossrhPassword
val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}
publishing { publishing {
repositories { repositories {
maven { maven {
name = "releases" name = "releases"
// change to point to your repo, e.g. http://my.org/repo // 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 { credentials {
val nexusUsername: String by project val nexusUsername: String by project
val nexusPassword: String by project val nexusPassword: String by project
@@ -81,7 +85,7 @@ publishing {
maven { maven {
name = "snapshots" name = "snapshots"
// change to point to your repo, e.g. http://my.org/repo // 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 { credentials {
val nexusUsername: String by project val nexusUsername: String by project
val nexusPassword: String by project val nexusPassword: String by project
@@ -90,9 +94,9 @@ publishing {
password = nexusPassword password = nexusPassword
} }
} }
maven { maven {
name = "sonatype" 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 { credentials {
username = ossrhUsername username = ossrhUsername
password = ossrhPassword password = ossrhPassword
@@ -102,9 +106,8 @@ publishing {
// Configure all publications // Configure all publications
publications.withType<MavenPublication> { publications.withType<MavenPublication> {
// Stub javadoc.jar artifact // Stub javadoc.jar artifact
//artifact(javadocJar.get()) artifact(javadocJar.get())
// Provide artifacts information requited by Maven Central // Provide artifacts information requited by Maven Central
pom { pom {
@@ -130,7 +133,6 @@ publishing {
} }
} }
} }
} }
signing { signing {

View File

@@ -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. 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. 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: Examples:
## Nesting / colors / variables ## Nesting / colors / variables