Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/artifacts/kotlin_plugin_js_1_3_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/artifacts/kotlin_plugin_jvm_1_3_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

plugins {
`kotlin-dsl`
kotlin("multiplatform") version "2.0.21" apply false
kotlin("jvm") version "2.0.21" apply false
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
kotlin("multiplatform") version "2.1.0" apply false
kotlin("jvm") version "2.1.0" apply false
id("io.github.gradle-nexus.publish-plugin") version "2.0.0-rc-1"
id("com.vanniktech.maven.publish") version "0.29.0" apply false
id("org.jetbrains.dokka") version "1.9.20" apply false
}

object Conf {
Expand Down Expand Up @@ -56,4 +57,11 @@ repositories {
mavenCentral()
}

// Root project - only manages subprojects and Maven Central publishing configuration
nexusPublishing {
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype()

}
}
2 changes: 1 addition & 1 deletion gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
`java-gradle-plugin`
application
signing
id("com.vanniktech.maven.publish") version "0.29.0"
id("com.vanniktech.maven.publish")
}

repositories {
Expand Down
13 changes: 9 additions & 4 deletions kotlin-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinMultiplatform
import com.vanniktech.maven.publish.SonatypeHost
plugins {
kotlin("multiplatform")
application
signing
id("com.vanniktech.maven.publish") version "0.29.0"
`maven-publish`
id("com.vanniktech.maven.publish")
id("org.jetbrains.dokka")
}

repositories {
Expand Down Expand Up @@ -120,9 +123,11 @@ signing {
}

mavenPublishing {
configure(KotlinMultiplatform(javadocJar = JavadocJar.Dokka("dokkaHtml")))
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
if (project.hasProperty("mavenCentralUsername") ||
System.getenv("ORG_GRADLE_PROJECT_mavenCentralUsername") != null
)
) {
signAllPublications()
}
}
}
5 changes: 1 addition & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
}
plugins {
kotlin("jvm") version "1.9.0" apply false
kotlin("kapt") version "1.9.0" apply false
}
}

plugins {
Expand All @@ -19,5 +15,6 @@ dependencyResolutionManagement {
}
}

rootProject.name = "renlin-compiler"
include(":gradle-plugin")
include(":kotlin-plugin")