This is an automated email from the ASF dual-hosted git repository.

bhulette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 276964f  [BEAM-11589] Migrated vendor/bytebuddy build.gradle file to 
Kotlin script (#14002)
276964f is described below

commit 276964f33d2b7f7758c14a044d2d86e6765ec769
Author: ramazan-yapparov <75415515+ramazan-yappa...@users.noreply.github.com>
AuthorDate: Fri Feb 19 20:05:46 2021 +0300

    [BEAM-11589] Migrated vendor/bytebuddy build.gradle file to Kotlin script 
(#14002)
    
    * Renamed vendor/bytebuddy build.gradle to build.gradle.kts
    
    * Migrated vendor/bytebuddy build file to Kotlin script
    
    * Fixed formatting
---
 .../{build.gradle => build.gradle.kts}             | 24 ++++++++++++----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/vendor/bytebuddy-1_10_8/build.gradle 
b/vendor/bytebuddy-1_10_8/build.gradle.kts
similarity index 64%
rename from vendor/bytebuddy-1_10_8/build.gradle
rename to vendor/bytebuddy-1_10_8/build.gradle.kts
index f255a24..dee66ae 100644
--- a/vendor/bytebuddy-1_10_8/build.gradle
+++ b/vendor/bytebuddy-1_10_8/build.gradle.kts
@@ -16,22 +16,24 @@
  * limitations under the License.
  */
 
-plugins { id 'org.apache.beam.vendor-java' }
+plugins { id("org.apache.beam.vendor-java") }
 
 description = "Apache Beam :: Vendored Dependencies :: ByteBuddy :: 1.10.8"
 
 group = "org.apache.beam"
 version = "0.1"
 
+val vendorJava = project.extensions.extraProperties.get("vendorJava") as 
groovy.lang.Closure<*>
 vendorJava(
-  dependencies: ["net.bytebuddy:byte-buddy:1.10.8"],
-  relocations: [
-    "net.bytebuddy": "org.apache.beam.vendor.bytebuddy.v1_10_8.net.bytebuddy"
-  ],
-  exclusions: [
-    "**/module-info.class"
-  ],
-  groupId: group,
-  artifactId: "beam-vendor-bytebuddy-1_10_8",
-  version: version
+  mapOf(
+    "dependencies" to listOf("net.bytebuddy:byte-buddy:1.10.8"),
+    "relocations" to mapOf(
+            "net.bytebuddy" to 
"org.apache.beam.vendor.bytebuddy.v1_10_8.net.bytebuddy"),
+    "exclusions" to listOf(
+            "**/module-info.class"
+    ),
+    "groupId" to group,
+    "artifactId" to "beam-vendor-bytebuddy-1_10_8",
+    "version" to version
+  )
 )

Reply via email to