Skip to content

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypfau committed Dec 22, 2022
1 parent e3b9a28 commit 34465c6
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 54 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

```kotlin
dependencies {
implementation("org.ton:ton-kotlin:0.2.0")
implementation("org.ton:ton-kotlin:0.2.1")
}
```

Expand All @@ -21,7 +21,8 @@ https://github.com/andreypfau/ton-kotlin/wiki/TON-Kotlin-documentation

<!-- Badges -->

[maven-central]: https://search.maven.org/artifact/io.github.andreypfau/org.ton/ton-kotlin/0.1.0/pom
[maven-central]: https://search.maven.org/artifact/io.github.andreypfau/org.ton/ton-kotlin/0.2.1/pom

[license]: LICENSE
[kotlin]: http://kotlinlang.org
[ton]: https://ton.org
Expand Down
106 changes: 54 additions & 52 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ val isCI = System.getenv("CI") == "true"

allprojects {
group = "org.ton"
version = "0.2.0"
version = "0.2.1"

apply(plugin = "kotlin-multiplatform")
apply(plugin = "kotlinx-serialization")
apply(plugin = "maven-publish")
apply(plugin = "signing")

repositories {
mavenCentral()
Expand Down Expand Up @@ -73,69 +75,69 @@ allprojects {
afterEvaluate {
formatSourceSets()
}
}

kotlin {
sourceSets {
val commonMain by getting {
dependencies {
subprojects {
api(this)
}
}
}
val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}
}

val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}

publishing {
publications.withType<MavenPublication> {
artifact(javadocJar.get())
pom {
name.set("ton-kotlin")
description.set("Kotlin/Multiplatform SDK for The Open Network")
url.set("https://github.com/andreypfau/ton-kotlin")
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
publishing {
publications.withType<MavenPublication> {
artifact(javadocJar.get())
pom {
name.set("ton-kotlin")
description.set("Kotlin/Multiplatform SDK for The Open Network")
url.set("https://github.com/andreypfau/ton-kotlin")
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
}
developers {
developer {
id.set("andreypfau")
name.set("Andrey Pfau")
email.set("[email protected]")
developers {
developer {
id.set("andreypfau")
name.set("Andrey Pfau")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/andreypfau/ton-kotlin.git")
developerConnection.set("scm:git:ssh://github.com/andreypfau/ton-kotlin.git")
url.set("https://github.com/andreypfau/ton-kotlin")
}
}
scm {
connection.set("scm:git:git://github.com/andreypfau/ton-kotlin.git")
developerConnection.set("scm:git:ssh://github.com/andreypfau/ton-kotlin.git")
url.set("https://github.com/andreypfau/ton-kotlin")
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/andreypfau/ton-kotlin")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/andreypfau/ton-kotlin")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

signing {
val secretKey = project.findProperty("signing.secretKey") as? String ?: System.getenv("SIGNING_SECRET_KEY")
val password = project.findProperty("signing.password") as? String ?: System.getenv("SIGNING_PASSWORD")
isRequired = secretKey != null && password != null
useInMemoryPgpKeys(secretKey, password)
sign(publishing.publications)
}
}

signing {
val secretKey = project.findProperty("signing.secretKey") as? String ?: System.getenv("SIGNING_SECRET_KEY")
val password = project.findProperty("signing.password") as? String ?: System.getenv("SIGNING_PASSWORD")
isRequired = secretKey != null && password != null
useInMemoryPgpKeys(secretKey, password)
sign(publishing.publications)
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
subprojects {
api(this)
}
}
}
}
}

nexusPublishing {
Expand Down

0 comments on commit 34465c6

Please sign in to comment.