Skip to content

Commit

Permalink
更新nexus-publish插件版本
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Jun 9, 2024
1 parent 73dfb58 commit d096963
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
gradle-version: 8.3
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
closeAndReleaseStagingRepositories
--info
--warning-mode all
-x test
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
gradle-version: 8.3
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
closeAndReleaseStagingRepositories
--info
--warning-mode all
-x test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
gradle-version: 8.3
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
closeAndReleaseStagingRepositories
--info
--warning-mode all
-x test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-v4-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
gradle-version: 8.5
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
closeAndReleaseStagingRepositories
--info
--warning-mode all
-x test
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
gradle-version: 8.5
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
closeAndReleaseStagingRepositories
--info
--warning-mode all
-x test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-v4-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
gradle-version: 8.5
arguments: |
publishToSonatype
closeAndReleaseStagingRepository
closeAndReleaseStagingRepositories
--info
--warning-mode all
-x test
Expand Down
13 changes: 1 addition & 12 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
implementation(libs.bundles.dokka)

// see https://github.com/gradle-nexus/publish-plugin
implementation("io.github.gradle-nexus:publish-plugin:1.3.0")
implementation(libs.gradleNexusPublishPlugin)

// suspend transform
implementation(libs.suspend.transform.gradle)
Expand All @@ -55,14 +55,3 @@ idea {
}
}

// tasks.withType(KotlinCompile::class.java).configureEach {
// kotlinOptions.languageVersion = "1.9"
// }

// val compileKotlin: KotlinCompile by tasks
// compileKotlin.kotlinOptions.freeCompilerArgs += listOf(
// "-Xjvm-default=all",
// // "-opt-in=kotlin.RequiresOptIn",
// // see https://youtrack.jetbrains.com/issue/KTIJ-21563
// "-Xskip-prerelease-check",
// )
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/simbot.nexus-publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ logger.info("isReleaseOnly: {}", isReleaseOnly)
logger.info("isPublishConfigurable: {}", isPublishConfigurable)


//if (!isCi || isPublishConfigurable) {
val userInfo = love.forte.gradle.common.publication.sonatypeUserInfoOrNull

if (userInfo == null) {
Expand All @@ -81,7 +80,6 @@ nexusPublishConfig {


logger.info("[nexus-publishing-configure] - [{}] configured.", name)
//}



Expand Down
7 changes: 6 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,22 @@ reactor = "3.6.2"
# simbots
suspendTransform = "0.8.0-beta1"
suspendReversal = "0.2.0"
gradleCommon = "0.3.0"
gradleCommon = "0.4.0"
# tests
mockk = "1.13.10"
# detekt
# https://detekt.dev/docs/intro
detekt = "1.23.6"
# https://github.com/gradle-nexus/publish-plugin
gradleNexusPublishPlugin = "2.0.0"

[libraries]
# jetbrains-annotation
jetbrains-annotations = "org.jetbrains:annotations:24.1.0"

# gradle-nexus:publish-plugin
gradleNexusPublishPlugin = { module = "io.github.gradle-nexus:publish-plugin", version.ref = "gradleNexusPublishPlugin" }

# dokka
dokka-plugin = { group = "org.jetbrains.dokka", name = "dokka-gradle-plugin", version.ref = "dokka" }
dokka-core = { group = "org.jetbrains.dokka", name = "dokka-core", version.ref = "dokka" }
Expand Down

0 comments on commit d096963

Please sign in to comment.