aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsvidyuk <svidyuk@yandex-team.com>2023-03-22 09:06:57 +0300
committersvidyuk <svidyuk@yandex-team.com>2023-03-22 09:06:57 +0300
commit5872c70caea759bb84a5330601f18bd7b0b38f73 (patch)
tree0cf15385f48400a868dfc28aedc3fc10080897e8
parent36cb5c24d9cb47390aa6dd8c8b55f56b3c21bb43 (diff)
downloadydb-5872c70caea759bb84a5330601f18bd7b0b38f73.tar.gz
Support semantic props for gradle publish settings
-rw-r--r--build/ymake.core.conf6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 4f7916308b..2e12032998 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -3938,7 +3938,7 @@ _ADD_JAR_MAIN_SEM= && app_main_class ${_JAR_MAIN_CLASS}
GRADLE_EXPORT_PUBLISHING=no
_GRADLE_EXPORT_PUBLISHING_SEM=
-_DO_GRADLE_EXPORT_PUBLISHING_SEM= && publish True
+_DO_GRADLE_EXPORT_PUBLISHING_SEM= && publish True && publish_group $MAVEN_EXPORT_GOUP_ID && publish_version $MAVEN_EXPORT_VERSION
BUILD_JAR_SEM=jar $MODDIR $REALPRJNAME ${hide:TARGET} ${hide:AUTO_INPUT} && consumer_classpath $_EXPORT_GRADLE_PROJECT_COORDS $_JAR_MAIN_SEM $_GRADLE_EXPORT_PUBLISHING_SEM
@@ -4963,14 +4963,16 @@ when ($SAVE_JAVAC_GENERATED_SRCS) {
# tag:java-specific
# TODO: MAVEN_GROUP_ID_VALUE is only used by jbuild remove it after YMAKE-45 and YMAKE-46
MAVEN_GROUP_ID_VALUE=
+MAVEN_EXPORT_VERSION=no
MAVEN_EXPORT_GOUP_ID=ru.yandex
### @usage: MAVEN_GROUP_ID(group_id_for_maven_export)
###
### Set maven export group id for JAVA_PROGRAM() and JAVA_LIBRARY().
### Have no effect on regular build.
-macro MAVEN_GROUP_ID(Arg) {
+macro MAVEN_GROUP_ID(Arg, VERSION="no") {
SET(MAVEN_GROUP_ID_VALUE $Arg)
SET(MAVEN_EXPORT_GOUP_ID $Arg)
+ SET(MAVEN_EXPORT_VERSION $VERSION)
}
# tag:java-specific