-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into upgrade-all
- Loading branch information
Showing
42 changed files
with
2,357 additions
and
2,061 deletions.
There are no files selected for viewing
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
filegroup( | ||
name = "aspect_files", | ||
srcs = [ | ||
"WORKSPACE", | ||
"BUILD.bazel", | ||
"java_info.bzl", | ||
"java_info.template.bzl", | ||
], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
genrule( | ||
name = "generate_java_info_template", | ||
outs = ["java_info.template.bzl"], | ||
srcs = ["java_info.bzl"], | ||
cmd = "cat $(SRCS) >$@ && " + | ||
"sed -i -e '/TEMPLATE-IGNORE-BEGIN/,/TEMPLATE-IGNORE-END/d' $@ && " + | ||
"sed -i -e '/TEMPLATE-INCLUDE-BEGIN/,/TEMPLATE-INCLUDE-END/{s/^[#][#]//;}' $@", | ||
) | ||
|
||
genrule( | ||
name = "rename_files", | ||
srcs = ["BUILD.aspect"], | ||
outs = ["BUILD.bazel"], | ||
cmd = "cp $< $@", | ||
) | ||
|
||
genrule( | ||
name = "create_workspace_file", | ||
outs = ["WORKSPACE"], | ||
srcs = [], | ||
cmd = r"""echo 'workspace(name = "intellij_aspect_template")' > $@""" | ||
) |
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# TEMPLATE-INCLUDE-BEGIN | ||
###if( $isJavaEnabled == "true" && $bazel8OrAbove == "true" ) | ||
##load("@rules_java//java/common:java_info.bzl", "JavaInfo") | ||
###end | ||
# TEMPLATE-INCLUDE-END | ||
|
||
def java_info_in_target(target): | ||
# TEMPLATE-IGNORE-BEGIN | ||
return JavaInfo in target | ||
# TEMPLATE-IGNORE-END | ||
|
||
# TEMPLATE-INCLUDE-BEGIN | ||
## #if( $isJavaEnabled == "true" ) | ||
## return JavaInfo in target | ||
## #else | ||
## return None | ||
## #end | ||
# TEMPLATE-INCLUDE-END | ||
|
||
def get_java_info(target): | ||
# TEMPLATE-IGNORE-BEGIN | ||
if JavaInfo in target: | ||
return target[JavaInfo] | ||
else: | ||
return None | ||
# TEMPLATE-IGNORE-END | ||
|
||
# TEMPLATE-INCLUDE-BEGIN | ||
## #if( $isJavaEnabled == "true" ) | ||
## if JavaInfo in target: | ||
## return target[JavaInfo] | ||
## else: | ||
## return None | ||
## #else | ||
## return None | ||
## #end | ||
# TEMPLATE-INCLUDE-END | ||
|
||
def java_info_reference(): | ||
# TEMPLATE-IGNORE-BEGIN | ||
return [JavaInfo] | ||
# TEMPLATE-IGNORE-END | ||
|
||
# TEMPLATE-INCLUDE-BEGIN | ||
## #if( $isJavaEnabled == "true" ) | ||
## return [JavaInfo] | ||
## #else | ||
## return [] | ||
## #end | ||
# TEMPLATE-INCLUDE-END |
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
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
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
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
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
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
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
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
Oops, something went wrong.