This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import sys | |
import re | |
TEMPLATE_NAME = "WORKSPACE.wix.resolved" | |
# this information will be retrieved from a service (one place for source of truth) | |
repos = {"natansil/repo_a":"git@github.com:natansil/repo_a.git", | |
"natansil/repo_b":"git@github.com:natansil/repo_b.git"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wix-cache-api 2.1200 | |
[INFO] com.wixpress.framework:wix-cache-api:jar:2.1200.0-SNAPSHOT | |
[INFO] +- com.google.guava:guava:jar:25.1-jre:compile | |
[INFO] | +- org.checkerframework:checker-qual:jar:2.0.0:compile | |
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile | |
[INFO] | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile | |
[INFO] | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile | |
[INFO] +- com.wixpress.hoopoe:hoopoe-time-utils:jar:2.1200.0-SNAPSHOT:compile | |
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile | |
[INFO] +- com.google.code.findbugs:jsr305:jar:3.0.1:compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project ... > | |
<groupId>org.apache.commons</groupId> | |
<artifactId>commons-lang3</artifactId> | |
<version>3.8.1</version> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.12</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_repository( | |
name = "b", | |
remote = "git@github.com:acme/b.git", | |
commit = "0c3be0572598c769d795ed537e574c37dc51a709" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java_library( | |
name = "foo", | |
srcs = glob(["*.java"]), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- name: 'gcr.io/cloud-builders/git' | |
args: ['clone', 'https://github.com/GoogleCloudPlatform/cloud-builders'] | |
- name: 'gcr.io/cloud-builders/bazel' | |
args: ['build', '//java/com/company/service:server'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- name: 'ubuntu' | |
args: ['bash', './myscript.bash'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | |
git_repository( | |
name = "B", | |
remote = "https://github.com/my_org/b", | |
branch = "master", | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jvm_maven_import_external( | |
name = "org_apache_commons_commons_lang3", | |
artifact = "org.apache.commons:commons-lang3:3.8.1", | |
jar_sha256 = "dac807f65b07698ff39b1b07bfef3d87ae3fd46d91bbf8a2bc02b2a831616f68", | |
srcjar_sha256 = "a6589a5acef187a9c032b2afe22384acc3ae0bf15bb91ff67db8731ebb4323ca", | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jvm_maven_import_external( | |
name = "com_google_guava_guava", | |
artifact = "com.google.guava:guava:25.1-jre", | |
jar_sha256 = "6db0c3a244c397429c2e362ea2837c3622d5b68bb95105d37c21c36e5bc70abf", | |
deps = ["com_google_errorprone_error_prone_annotations"], | |
) | |
jvm_maven_import_external( | |
name = "com_google_errorprone_error_prone_annotations", | |
artifact = "com.google.errorprone:error_prone_annotations:2.1.3", |
OlderNewer