Skip to content

Commit 5717b9c

Browse files
Extend license checkstyle tests and update licenses (#388)
## What is the goal of this PR? We introduce a test that ensures that the license text is correct. ## What are the changes implemented in this PR? * Bring all the `checkstyle_test()` invocations in line with the updated definition in dependencies; * Replace all references to `typeql-lang-java` with `typeql/java`; * Use checkstyle to confirm that the license text is correct.
1 parent 41c3d9d commit 5717b9c

File tree

41 files changed

+85
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+85
-89
lines changed

BUILD

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,21 @@ checkstyle_test(
6464
"*",
6565
".grabl/*",
6666
]),
67-
exclude = glob(["docs/*"]),
68-
license_type = "apache",
67+
exclude = glob([
68+
"*.md",
69+
".bazelversion",
70+
"LICENSE",
71+
"VERSION",
72+
"docs/*",
73+
]),
74+
license_type = "apache-header",
75+
)
76+
77+
checkstyle_test(
78+
name = "checkstyle-license",
79+
size = "small",
80+
include = ["LICENSE"],
81+
license_type = "apache-fulltext",
6982
)
7083

7184
assemble_maven(

LICENSE

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/
@@ -175,17 +174,3 @@
175174
of your accepting any such warranty or additional liability.
176175

177176
END OF TERMS AND CONDITIONS
178-
179-
Copyright 2022 Vaticle
180-
181-
Licensed under the Apache License, Version 2.0 (the "License");
182-
you may not use this file except in compliance with the License.
183-
You may obtain a copy of the License at
184-
185-
http://www.apache.org/licenses/LICENSE-2.0
186-
187-
Unless required by applicable law or agreed to in writing, software
188-
distributed under the License is distributed on an "AS IS" BASIS,
189-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190-
See the License for the specific language governing permissions and
191-
limitations under the License.

WORKSPACE

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,24 +110,21 @@ pip_deps()
110110
################################
111111

112112
# Load repositories
113-
load("//dependencies/vaticle:repositories.bzl", "vaticle_typedb_common", "vaticle_typeql_lang_java", "vaticle_typedb_behaviour", "vaticle_factory_tracing", "vaticle_typedb_protocol")
113+
load("//dependencies/vaticle:repositories.bzl", "vaticle_typedb_common", "vaticle_typeql", "vaticle_typedb_behaviour", "vaticle_factory_tracing", "vaticle_typedb_protocol")
114114
vaticle_typedb_common()
115-
vaticle_typeql_lang_java()
115+
vaticle_typeql()
116116
vaticle_typedb_behaviour()
117117
vaticle_factory_tracing()
118118
vaticle_typedb_protocol()
119119

120-
load("@vaticle_typeql_lang_java//dependencies/vaticle:repositories.bzl", "vaticle_typeql")
121-
vaticle_typeql()
122-
123120
# Load artifacts
124121
load("//dependencies/vaticle:artifacts.bzl", "vaticle_typedb_artifact", "vaticle_typedb_cluster_artifact")
125122
vaticle_typedb_artifact()
126123
vaticle_typedb_cluster_artifact()
127124

128125
# Load maven
129126
load("@vaticle_typedb_common//dependencies/maven:artifacts.bzl", vaticle_typedb_common_artifacts = "artifacts")
130-
load("@vaticle_typeql_lang_java//dependencies/maven:artifacts.bzl", vaticle_typeql_lang_java_artifacts = "artifacts")
127+
load("@vaticle_typeql//dependencies/maven:artifacts.bzl", vaticle_typeql_artifacts = "artifacts")
131128
load("@vaticle_factory_tracing//dependencies/maven:artifacts.bzl", vaticle_factory_tracing_artifacts = "artifacts")
132129
load("//dependencies/maven:artifacts.bzl", vaticle_typedb_client_java_artifacts = "artifacts", vaticle_typedb_client_java_overrides = "overrides")
133130

@@ -139,7 +136,7 @@ load("@vaticle_dependencies//library/maven:rules.bzl", "maven")
139136
maven(
140137
vaticle_factory_tracing_artifacts +
141138
vaticle_typedb_common_artifacts +
142-
vaticle_typeql_lang_java_artifacts +
139+
vaticle_typeql_artifacts +
143140
vaticle_dependencies_tool_maven_artifacts +
144141
vaticle_typedb_client_java_artifacts +
145142
vaticle_bazel_distribution_maven_artifacts,

api/BUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ java_library(
3232

3333
# External dependencies from @vaticle
3434
"@vaticle_typedb_common//:common",
35-
"@vaticle_typeql_lang_java//pattern",
36-
"@vaticle_typeql_lang_java//query",
35+
"@vaticle_typeql//java/pattern",
36+
"@vaticle_typeql//java/query",
3737
"@vaticle_typedb_protocol//grpc/java:typedb-protocol",
3838

3939
# External dependencies from Maven
@@ -44,6 +44,6 @@ java_library(
4444
checkstyle_test(
4545
name = "checkstyle",
4646
include = glob(["*", "*/*", "*/*/*"]),
47-
license_type = "apache",
47+
license_type = "apache-header",
4848
size = "small",
49-
)
49+
)

common/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ checkstyle_test(
5555
"*",
5656
"*/*",
5757
]),
58-
license_type = "apache",
58+
license_type = "apache-header",
5959
)

concept/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ java_library(
3333

3434
# External dependencies from @vaticle
3535
"@vaticle_typedb_common//:common",
36-
"@vaticle_typeql_lang_java//common",
36+
"@vaticle_typeql//java/common",
3737
"@vaticle_typedb_protocol//grpc/java:typedb-protocol",
3838

3939
# External dependencies from Maven
@@ -44,6 +44,6 @@ java_library(
4444
checkstyle_test(
4545
name = "checkstyle",
4646
include = glob(["*", "*/*"]),
47-
license_type = "apache",
47+
license_type = "apache-header",
4848
size = "small",
49-
)
49+
)

connection/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ java_library(
5858
checkstyle_test(
5959
name = "checkstyle",
6060
include = glob(["*", "*/*"]),
61-
license_type = "apache",
61+
license_type = "apache-header",
6262
size = "small",
6363
)

dependencies/maven/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ checkstyle_test(
2525
name = "checkstyle",
2626
include = glob(["*"]),
2727
exclude = ["artifacts.snapshot"],
28-
license_type = "apache",
28+
license_type = "apache-header",
2929
)

dependencies/vaticle/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
2424
checkstyle_test(
2525
name = "checkstyle",
2626
include = glob(["*"]),
27-
license_type = "apache",
27+
license_type = "apache-header",
2828
)

dependencies/vaticle/repositories.bzl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,44 +21,45 @@
2121

2222
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
2323

24-
def vaticle_typeql_lang_java():
24+
def vaticle_typeql():
2525
git_repository(
26-
name = "vaticle_typeql_lang_java",
27-
remote = "https://github.com/vaticle/typeql-lang-java",
28-
tag = "2.11.0", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typeql_lang_java
26+
name = "vaticle_typeql",
27+
remote = "https://github.com/vaticle/typeql",
28+
commit = "6ab52082a5617e897bab9866ff18343648e355eb", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typeql
2929
)
3030

3131
def vaticle_typedb_common():
3232
git_repository(
3333
name = "vaticle_typedb_common",
3434
remote = "https://github.com/vaticle/typedb-common",
35-
tag = "2.11.1" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_common
35+
commit = "f0dd708adaea9fe1fdc3699180797a12166d33e8" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_common
36+
3637
)
3738

3839
def vaticle_dependencies():
3940
git_repository(
4041
name = "vaticle_dependencies",
4142
remote = "https://github.com/vaticle/dependencies",
42-
commit = "793c63b578304fd739b910ae49c9c77951165421", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
43+
commit = "a8b3b714a5e0562d41f4c05ca8f266d48b7d0fd3", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
4344
)
4445

4546
def vaticle_typedb_protocol():
4647
git_repository(
4748
name = "vaticle_typedb_protocol",
4849
remote = "https://github.com/vaticle/typedb-protocol",
49-
tag = "2.10.0", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_protocol
50+
commit = "4e40f890fe150621a174292a104d9d7fb3fc5b89", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_protocol
5051
)
5152

5253
def vaticle_typedb_behaviour():
5354
git_repository(
5455
name = "vaticle_typedb_behaviour",
5556
remote = "https://github.com/vaticle/typedb-behaviour",
56-
commit = "6e462bcbef73c75405264777069a22bca696a644", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_behaviour
57+
commit = "6ff247cf6d90b941da015414cb8f79fc97647a98", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_behaviour
5758
)
5859

5960
def vaticle_factory_tracing():
6061
git_repository(
6162
name = "vaticle_factory_tracing",
6263
remote = "https://github.com/vaticle/factory-tracing",
63-
tag = "2.9.0" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_factory_tracing
64+
commit = "a4d5e36b1b0c56bd370e5a7583d628de9272f086" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_factory_tracing
6465
)

0 commit comments

Comments
 (0)