Skip to content

Commit

Permalink
test for release v2.0.0-0.9.0-dev1
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Jun 26, 2024
1 parent ce3ada5 commit fc751ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 4 additions & 1 deletion buildSrc/src/main/kotlin/IProject.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import IProject.IS_SNAPSHOT
import love.forte.gradle.common.core.project.ProjectDetail
import love.forte.gradle.common.core.project.Version
import love.forte.gradle.common.core.project.minus
import love.forte.gradle.common.core.project.version
import org.gradle.api.Project

object IProject : ProjectDetail() {
const val IS_SNAPSHOT = false

const val GROUP = "love.forte.plugin.suspend-transform"
const val DESCRIPTION = "Generate platform-compatible functions for Kotlin suspend functions"
Expand Down Expand Up @@ -47,5 +49,6 @@ object IProject : ProjectDetail() {
fun Project.setupWith(ktVersion: String) {
group = IProject.GROUP
description = IProject.DESCRIPTION
version = ktVersion + "-" + IProject.pluginVersion.toString()
val mergedVersion = ktVersion + "-" + IProject.pluginVersion.toString()
version = if (IS_SNAPSHOT) "$mergedVersion-SNAPSHOT" else mergedVersion
}
18 changes: 10 additions & 8 deletions plugins/suspend-transform-plugin-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import love.forte.gradle.common.core.Gpg
import love.forte.gradle.common.core.property.of
import love.forte.gradle.common.publication.configure.configPublishMaven
import love.forte.gradle.common.publication.configure.publishingExtension
import love.forte.gradle.common.publication.configure.setupPom
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import utils.isMainPublishable
Expand Down Expand Up @@ -85,7 +85,6 @@ tasks.withType<KotlinCompile> {
}
}

val gpgValue = Gpg.ofSystemPropOrNull()
if (isMainPublishable()) {
publishing {
repositories {
Expand All @@ -103,12 +102,14 @@ if (isMainPublishable()) {
// }

withType<MavenPublication> {
pom {
name of project.name
group = project.group
description of project.description
version = project.version.toString()
}

setupPom(project.name, IProject)
// pom {
// name of project.name
// group = project.group
// description of project.description
// version = project.version.toString()
// }
// setupPom(project.name, IProject)
}
}
Expand All @@ -121,6 +122,7 @@ if (isMainPublishable()) {


signing {
val gpgValue = Gpg.ofSystemPropOrNull()
isRequired = gpgValue != null
if (gpgValue != null) {
val (keyId, secretKey, password) = gpgValue
Expand Down

0 comments on commit fc751ce

Please sign in to comment.