File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed
Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ jobs:
106106 - name : Publish to Central Portal
107107 uses : burrunan/gradle-cache-action@663fbad34e03c8f12b27f4999ac46e3d90f87eca # v3
108108 with :
109- arguments : publishPlugins publishAllPublicationsToCentralPortal
109+ arguments : publishPlugins publishAggregationToCentralPortal
110110 # language=properties
111111 properties : |
112112 release=true
Original file line number Diff line number Diff line change 1717import org.gradle.plugins.ide.idea.model.IdeaProject
1818import org.jetbrains.gradle.ext.CopyrightConfiguration
1919import org.jetbrains.gradle.ext.ProjectSettings
20+ import java.time.Duration
2021
2122plugins {
23+ id(" com.gradleup.nmcp.aggregation" )
2224 id(" org.jetbrains.gradle.plugin.idea-ext" )
2325}
2426
@@ -39,6 +41,18 @@ allprojects {
3941 version = buildVersion
4042}
4143
44+ nmcpAggregation {
45+ val centralPortalPublishingType = providers.gradleProperty(" centralPortalPublishingType" ).orElse(" AUTOMATIC" )
46+ val centralPortalPublishingTimeout = providers.gradleProperty(" centralPortalPublishingTimeout" ).map { it.toLong() }.orElse(60 )
47+
48+ centralPortal {
49+ username = providers.environmentVariable(" CENTRAL_PORTAL_USERNAME" )
50+ password = providers.environmentVariable(" CENTRAL_PORTAL_PASSWORD" )
51+ publishingType = centralPortalPublishingType
52+ validationTimeout = centralPortalPublishingTimeout.map { Duration .ofMinutes(it) }
53+ }
54+ }
55+
4256val licenseHeader = file(" gradle/license-header.txt" ).readText()
4357
4458fun IdeaProject.settings (configuration : ProjectSettings .() -> kotlin.Unit ) =
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ dependencies {
7575 api(" com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin:1.3.1" )
7676 api(" org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:$expectedKotlinDslPluginsVersion " )
7777 api(" org.jetbrains.dokka-javadoc:org.jetbrains.dokka-javadoc.gradle.plugin:2.0.0" )
78- api(" com.gradleup.nmcp:com.gradleup.nmcp.gradle.plugin:0.1.5 " )
78+ api(" com.gradleup.nmcp:com.gradleup.nmcp.gradle.plugin:1.3.0 " )
7979 implementation(" org.jetbrains.kotlin:kotlin-gradle-plugin" )
8080 subprojects.forEach {
8181 runtimeOnly(project(it.path))
Original file line number Diff line number Diff line change 3232
3333val release = providers.gradleProperty(" release" ).getOrElse(" false" ).toBoolean()
3434val useInMemoryPgpKeys = providers.gradleProperty(" useInMemoryPgpKeys" ).getOrElse(" true" ).toBoolean()
35- val centralPortalPublishingType = providers.gradleProperty(" centralPortalPublishingType" ).orElse(" AUTOMATIC" )
36- val centralPortalPublishingTimeout = providers.gradleProperty(" centralPortalPublishingTimeout" ).map { it.toLong() }
3735
3836if (! release) {
3937 publishing {
@@ -62,14 +60,6 @@ if (!release) {
6260 )
6361 }
6462 }
65- nmcp {
66- centralPortal {
67- username = providers.environmentVariable(" CENTRAL_PORTAL_USERNAME" )
68- password = providers.environmentVariable(" CENTRAL_PORTAL_PASSWORD" )
69- publishingType = centralPortalPublishingType.get()
70- verificationTimeout = Duration .ofMinutes(centralPortalPublishingTimeout.get())
71- }
72- }
7363}
7464
7565publishing {
You can’t perform that action at this time.
0 commit comments