Skip to content

Commit

Permalink
Merge branch 'kotlin-1.6.10' into kotlin-1.6.10-release
Browse files Browse the repository at this point in the history
v0.1.3-kotlin-1.6.10 release
  • Loading branch information
ShreckYe committed May 26, 2022
2 parents 111a5be + 046b93f commit e63f9f4
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 12 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/plugin-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
implementation(kotlin("gradle-plugin", "1.6.10"))
}

version = "0.1.2-kotlin-1.6.10"
version = "0.1.3-kotlin-1.6.10"

pluginBundle {
website = "https://github.com/huanshankeji/gradle-plugin"
Expand Down
9 changes: 9 additions & 0 deletions kotlin-common-gradle-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {

dependencies {
//api(project(":common-gradle-dependencies"))
//implementation("io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0")
}

gradlePlugin {
Expand Down Expand Up @@ -38,5 +39,13 @@ gradlePlugin {
"kotlin-multiplatform-jvm-and-js-browser-default-maven-publish-conventions",
"Kotlin Multiplatform conventions with the JVM target and the JS browser target, and with default Maven publish"
)
scriptConventionsPlugin(
"kotlin-jvm-library-sonatype-ossrh-publish-conventions",
"Kotlin/JVM library conventions with Sonatype OSSRH Maven Central publish"
)
scriptConventionsPlugin(
"kotlin-multiplatform-jvm-and-js-browser-sonatype-ossrh-publish-conventions",
"Kotlin Multiplatform conventions with the JVM target and the JS browser target, and with Sonatype OSSRH Maven Central publish"
)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.huanshankeji

plugins {
id("com.huanshankeji.kotlin-jvm-library-default-maven-publish-conventions")
id("com.huanshankeji.sonatype-ossrh-publish")
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ plugins {
id("com.huanshankeji.default-maven-publish")
}

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

publishing {
publications {
withType<MavenPublication> {
artifactId = "$defaultPrefixForPublishing-$artifactId"
artifact(javadocJar)
}
}
publishing.publications.withType<MavenPublication> {
artifactId = "$defaultPrefixForPublishing-$artifactId"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.huanshankeji

plugins {
id("com.huanshankeji.kotlin-multiplatform-jvm-and-js-browser-default-maven-publish-conventions")
id("com.huanshankeji.sonatype-ossrh-publish")
}

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

publishing.publications.withType<MavenPublication> {
artifact(javadocJar)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.huanshankeji

/* TODO: this script is not working yet.
plugins {
id("io.codearte.nexus-staging")
}
group = "com.huanshankeji"
nexusStaging {
serverUrl = "https://s01.oss.sonatype.org/service/local/"
// TODO
}
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.huanshankeji

plugins {
id("com.huanshankeji.default-maven-publish")
signing
}

signing {
sign(publishing.publications)
}

publishing.repositories.maven {
val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
credentials {
username = project.property("ossrhUsername") as String
password = project.property("ossrhPassword") as String
}
}

0 comments on commit e63f9f4

Please sign in to comment.