1- import io.github.gradlenexus.publishplugin.NexusPublishExtension
21import io.github.krakowski.jextract.JextractTask
32import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.getCurrentOperatingSystem
43
@@ -7,7 +6,8 @@ plugins {
76
87 `maven- publish`
98 signing
10- alias(libs.plugins.nexuspublish)
9+ alias(libs.plugins.nmcp)
10+ alias(libs.plugins.nmcp.aggregation)
1111
1212 id(" io.github.krakowski.jextract" ) version " 0.5.0"
1313}
@@ -107,20 +107,21 @@ allprojects {
107107 }
108108}
109109
110- configure<NexusPublishExtension > {
111- this .packageGroup.set(" dev.hollowcube" )
112-
113- repositories.sonatype {
114- nexusUrl.set(uri(" https://s01.oss.sonatype.org/service/local/" ))
115- snapshotRepositoryUrl.set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
116-
117- if (System .getenv(" SONATYPE_USERNAME" ) != null ) {
118- username.set(System .getenv(" SONATYPE_USERNAME" ))
119- password.set(System .getenv(" SONATYPE_PASSWORD" ))
120- }
110+ nmcpAggregation {
111+ centralPortal {
112+ username = System .getenv(" SONATYPE_USERNAME" )
113+ password = System .getenv(" SONATYPE_PASSWORD" )
114+ publishingType = " AUTOMATIC"
121115 }
122116}
123117
118+ dependencies {
119+ if (System .getProperty(" LUAU_PUBLISH_ROOT" ) != null )
120+ nmcpAggregation(rootProject)
121+ if (System .getProperty(" LUAU_PUBLISH_NATIVES" ) != null )
122+ nmcpAggregation(project(" :native" ))
123+ }
124+
124125publishing.publications.create<MavenPublication >(" luau" ) {
125126 groupId = project.group.toString()
126127 artifactId = " luau"
0 commit comments