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 .github/workflows/deploy-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
-PmavenCentralPassword=${{ secrets.MAVEN_PASSWORD }}
-PsigningInMemoryKeyId=${{ secrets.MAVEN_GPG_KEY_ID }}
-PsigningInMemoryPassword=${{ secrets.MAVEN_GPG_PASSPHRASE }}
publishAndReleaseToMavenCentral
:gradle-plugin:publishAndReleaseToMavenCentral
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
Expand Down
63 changes: 0 additions & 63 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import com.vanniktech.maven.publish.SonatypeHost

plugins {
`kotlin-dsl`
kotlin("multiplatform") version "2.0.21" apply false
kotlin("jvm") version "2.0.21" apply false
application
signing
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
id("com.vanniktech.maven.publish") version "0.29.0"
}

object Conf {
Expand Down Expand Up @@ -61,62 +57,3 @@ repositories {
}

// Root project - only manages subprojects and Maven Central publishing configuration


publishing {
// Configure all publications
publications.withType<MavenPublication> {
pom {
artifactId = "net.kigawa.renlin-compiler.gradle.plugin"
name.set("net.kigawa.renlin-compiler.gradle.plugin")
description.set("Kotlin Compiler Plugin for automatic value injection with @AutoFill annotation")
url.set("https://github.com/Code-Sakura/renlin-compiler")
properties.set(
mapOf(
)
)
licenses {
license {
name.set("MIT License")
url.set("http://www.opensource.org/licenses/mit-license.php")
}
}
developers {
developer {
id.set("net.kigawa")
name.set("kigawa")
email.set("contact@kigawa.net")
}
developer {
id.set("io.github.seizavl")
name.set("seizavl")
email.set("")
}
}
scm {
connection.set("scm:git:https://github.com/Code-Sakura/renlin-compiler.git")
developerConnection.set("scm:git:https://github.com/Code-Sakura/renlin-compiler.git")
url.set("https://github.com/Code-Sakura/renlin-compiler")
}
}
}
}

signing {
if (project.hasProperty("mavenCentralUsername") ||
System.getenv("ORG_GRADLE_PROJECT_mavenCentralUsername") != null
) {
useGpgCmd()
// It is not perfect (fails at some dependency assertions), better handled as
// `signAllPublications()` (as in vanniktech maven publish plugin) at build.gradle.kts.
//sign(publishing.publications)
}
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
if (project.hasProperty("mavenCentralUsername") ||
System.getenv("ORG_GRADLE_PROJECT_mavenCentralUsername") != null
)
signAllPublications()
}
65 changes: 64 additions & 1 deletion gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import com.vanniktech.maven.publish.SonatypeHost

plugins {
kotlin("jvm")
`java-gradle-plugin`
application
signing
id("com.vanniktech.maven.publish") version "0.29.0"
}

group = "net.kigawa"
Expand Down Expand Up @@ -40,7 +45,65 @@ kotlin {

java {
withSourcesJar()
withJavadocJar()
}




publishing {
// Configure all publications
publications.withType<MavenPublication> {
pom {
artifactId = "net.kigawa.renlin-compiler.gradle.plugin"
name.set("net.kigawa.renlin-compiler.gradle.plugin")
description.set("Kotlin Compiler Plugin for automatic value injection with @AutoFill annotation")
url.set("https://github.com/Code-Sakura/renlin-compiler")
properties.set(
mapOf(
)
)
licenses {
license {
name.set("MIT License")
url.set("http://www.opensource.org/licenses/mit-license.php")
}
}
developers {
developer {
id.set("net.kigawa")
name.set("kigawa")
email.set("contact@kigawa.net")
}
developer {
id.set("io.github.seizavl")
name.set("seizavl")
email.set("")
}
}
scm {
connection.set("scm:git:https://github.com/Code-Sakura/renlin-compiler.git")
developerConnection.set("scm:git:https://github.com/Code-Sakura/renlin-compiler.git")
url.set("https://github.com/Code-Sakura/renlin-compiler")
}
}
}
}

signing {
if (project.hasProperty("mavenCentralUsername") ||
System.getenv("ORG_GRADLE_PROJECT_mavenCentralUsername") != null
) {
useGpgCmd()
// It is not perfect (fails at some dependency assertions), better handled as
// `signAllPublications()` (as in vanniktech maven publish plugin) at build.gradle.kts.
//sign(publishing.publications)
}
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
if (project.hasProperty("mavenCentralUsername") ||
System.getenv("ORG_GRADLE_PROJECT_mavenCentralUsername") != null
)
signAllPublications()
}