Update release script with Kotlin Script templates
This is for testing staged desugared library Maven release.
Bug: b/308750535
Change-Id: I5e2947f794912220ecf486721f6122dbaf84807a
diff --git a/tools/desugar_jdk_libs_repository.py b/tools/desugar_jdk_libs_repository.py
index 6d44d23..36268c4 100755
--- a/tools/desugar_jdk_libs_repository.py
+++ b/tools/desugar_jdk_libs_repository.py
@@ -264,7 +264,7 @@
print(" }")
print()
- print("For Grovey add")
+ print("For Groovy add")
print()
print(" maven {")
print(" url uri('file://" + args.repo_root + "')")
diff --git a/tools/r8_release.py b/tools/r8_release.py
index b8fd141..f55181e 100755
--- a/tools/r8_release.py
+++ b/tools/r8_release.py
@@ -806,8 +806,19 @@
%s
-Then add the following repository to settings.gradle to search the 'redir'
-repository:
+Then add the following repository to settings.gradle.kts (Kotlin Script) to
+search the 'redir' repository:
+
+dependencyResolutionManagement {
+ repositories {
+ maven {
+ url = uri("http://localhost:1480")
+ isAllowInsecureProtocol = true
+ }
+ }
+}
+
+or the following to settings.gradle (Groovy);
dependencyResolutionManagement {
repositories {
@@ -818,7 +829,14 @@
}
}
-and add the following repository to gradle.build for for the staged version:
+and add the following repository to gradle.build.kts (Kotlin Script) for the
+staged version:
+
+coreLibraryDesugaring("%s") {
+ isChanging = true
+}
+
+or the following to settings.gradle (Groovy);
dependencies {
coreLibraryDesugaring('%s') {
@@ -830,7 +848,7 @@
rm -rf /tmp/maven_repo_local
%s
-""" % (redir_command, artifact, get_command))
+""" % (redir_command, artifact, artifact, get_command))
def gmaven_publisher_publish(args, release_id):