aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorc0nsumer <c0nsumer@yandex-team.com>2024-02-01 15:38:53 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-02-09 19:16:55 +0300
commitb34656eaa432fe5258085ca4e4642774fe082456 (patch)
tree0aebf9955dc47e2b02ddf72d578a1d396a97de6a /build
parent8cab99c1b33493d3cf402df31f419121f5dc1175 (diff)
downloadydb-b34656eaa432fe5258085ca4e4642774fe082456.tar.gz
Artifacts from bucket and some refactoring
Diffstat (limited to 'build')
-rw-r--r--build/export_generators/ide-gradle/build.gradle.kts.jinja15
-rw-r--r--build/export_generators/ide-gradle/build.gradle.kts.proto.jinja12
2 files changed, 25 insertions, 2 deletions
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.jinja b/build/export_generators/ide-gradle/build.gradle.kts.jinja
index c1e6aa38d6..a64bf20421 100644
--- a/build/export_generators/ide-gradle/build.gradle.kts.jinja
+++ b/build/export_generators/ide-gradle/build.gradle.kts.jinja
@@ -47,8 +47,21 @@ group = "{{ target.publish_group }}"
version = {% if target.publish_version and target.publish_version != "no" -%}"{{ target.publish_version }}"{%- else -%}project.properties["version"]{%- endif %}
{% endif %}
+
+val bucketUsername: String by project
+val bucketPassword: String by project
repositories {
- mavenCentral()
+ repositories {
+ maven {
+ url = uri("https://bucket.yandex-team.ru/v1/maven/central")
+ credentials {
+ username = "$bucketUsername"
+ password = "$bucketPassword"
+ }
+ }
+}
+
+
}
val project_root="{%- if exportRoot.startswith(arcadiaRoot + '/') -%}{{ arcadiaRoot }}{%- else -%}{{ exportRoot }}{%- endif -%}"
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja
index 17d7d15a98..841c49f14b 100644
--- a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja
+++ b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja
@@ -17,8 +17,18 @@ group = "{{ target.publish_group }}"
version = {% if target.publish_version -%}"{{ target.publish_version }}"{%- else -%}project.properties["version"]{%- endif %}
{%- endif %}
+val bucketUsername: String by project
+val bucketPassword: String by project
repositories {
- mavenCentral()
+ repositories {
+ maven {
+ url = uri("https://bucket.yandex-team.ru/v1/maven/central")
+ credentials {
+ username = "$bucketUsername"
+ password = "$bucketPassword"
+ }
+ }
+}
}
java {