Skip to content

Commit 3f15e12

Browse files
authored
Create nullaway-bom project (#1130) (#1380)
1 parent 824353e commit 3f15e12

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ subprojects { project ->
123123

124124
// Spotless complains when applied to the folders containing projects
125125
// when they do not have a build.gradle file
126-
if (project.name != "jar-infer" && project.name != "library-model" && project.name != "jdk-annotations") {
126+
if (project.name != "jar-infer" && project.name != "library-model" && project.name != "jdk-annotations" && project.name != "nullaway-bom") {
127127
project.apply plugin: "com.diffplug.spotless"
128128
spotless {
129129
java {

nullaway-bom/build.gradle

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (C) 2017. Uber Technologies
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
plugins {
18+
id 'java-platform'
19+
id 'com.vanniktech.maven.publish'
20+
}
21+
22+
description = 'NullAway Bill of Materials (BOM)'
23+
24+
dependencies {
25+
constraints {
26+
rootProject.subprojects { subproject ->
27+
var path = subproject.path
28+
if (path == ':nullaway'
29+
|| path == ':annotations'
30+
|| path.contains(':jar-infer-')
31+
|| path.contains(':android-jarinfer-models-')) {
32+
api(subproject)
33+
}
34+
}
35+
}
36+
}

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins {
1313

1414
include ':annotations'
1515
include ':nullaway'
16+
include ':nullaway-bom'
1617
include ':sample-library-model'
1718
include ':sample'
1819
include ':test-java-lib'

0 commit comments

Comments
 (0)