File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,3 +107,4 @@ jobs:
107107 ORG_GRADLE_PROJECT_mavenCentralSnapshotsPassword : ${{ secrets.SONATYPE_PASSWORD }}
108108 MAVEN_CENTRAL_PORTAL_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
109109 MAVEN_CENTRAL_PORTAL_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
110+ LIBDATACHANNEL_JAVA_GROUP_OVERRIDE : ${{ vars.LIBDATACHANNEL_JAVA_GROUP_OVERRIDE }}
Original file line number Diff line number Diff line change @@ -63,6 +63,15 @@ fun produceVersion(): String {
6363
6464version = produceVersion()
6565val isSnapshot = version.toString().endsWith(" -SNAPSHOT" )
66+
67+ // Allow overriding the Maven group via env var.
68+ // If set and non-empty, this will replace the default group
69+ val libdatachannelGroupOverride = System .getenv(" LIBDATACHANNEL_JAVA_GROUP_OVERRIDE" )
70+ ?.takeIf { it.isNotBlank() }
71+ if (libdatachannelGroupOverride != null ) {
72+ group = libdatachannelGroupOverride
73+ }
74+
6675description = " ${project.name} is a binding to the libdatachannel that feels native to Java developers."
6776
6877val currentVersion by tasks.registering(DefaultTask ::class ) {
You can’t perform that action at this time.
0 commit comments