-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e57e24b
commit fdbf13a
Showing
13 changed files
with
314 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plugins { | ||
id 'io.deephaven.project.register' | ||
} | ||
|
||
description = 'Deephaven Bill of Materials' | ||
|
||
dependencies { | ||
constraints { constraint -> | ||
project.rootProject | ||
.subprojects | ||
.findAll { p -> io.deephaven.project.ProjectType.isPublic(p) } | ||
.each { p -> | ||
// TODO(deephaven-core#2050): Annotate some public dependencies with "runtime" constraint | ||
constraint.api p | ||
} | ||
} | ||
} |
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 @@ | ||
io.deephaven.project.ProjectType=BOM_PUBLIC |
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
33 changes: 33 additions & 0 deletions
33
buildSrc/src/main/groovy/io.deephaven.project.bom-public.gradle
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 @@ | ||
import io.deephaven.project.util.JavaDependencies | ||
import io.deephaven.project.util.PublishingConstants | ||
|
||
plugins { | ||
id 'io.deephaven.common-conventions' | ||
id 'java-platform' | ||
id 'maven-publish' | ||
id 'signing' | ||
} | ||
|
||
publishing { | ||
publications { | ||
myPlatform(MavenPublication) { | ||
from components.javaPlatform | ||
pom { | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
PublishingConstants.setupRepositories(project) | ||
PublishingConstants.setupMavenPublication(project, publishing.publications.myPlatform) | ||
PublishingConstants.setupSigning(project, publishing.publications.myPlatform) | ||
|
||
project.tasks | ||
.getByName('quick') | ||
.dependsOn JavaDependencies.verifyAllConfigurationsArePublicTask(project) |
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 |
---|---|---|
@@ -1,3 +1,19 @@ | ||
import io.deephaven.project.ProjectType | ||
|
||
plugins { | ||
id 'io.deephaven.common-conventions' | ||
} | ||
|
||
def verifyAllProjectsRegistered = project.tasks.register('verifyAllProjectsRegistered') { task -> | ||
task.doLast { | ||
project.allprojects { Project p -> | ||
if (!ProjectType.isRegistered(p)) { | ||
throw new IllegalStateException("Project '${project.name}' has not registered. Please apply the plugin 'io.deephaven.project.register'.") | ||
} | ||
} | ||
} | ||
} | ||
|
||
project.tasks | ||
.getByName('quick') | ||
.dependsOn verifyAllProjectsRegistered |
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
25 changes: 25 additions & 0 deletions
25
buildSrc/src/main/groovy/io/deephaven/project/util/CombinedJavadoc.groovy
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,25 @@ | ||
package io.deephaven.project.util | ||
|
||
import groovy.transform.CompileStatic | ||
import io.deephaven.project.ProjectType | ||
import org.gradle.api.Project | ||
|
||
@CompileStatic | ||
class CombinedJavadoc { | ||
|
||
static boolean includeProject(Project p) { | ||
ProjectType type = ProjectType.getType(p) | ||
if (!type.isPublic) { | ||
return false | ||
} | ||
switch (type) { | ||
case ProjectType.BOM_PUBLIC: | ||
return false | ||
case ProjectType.JAVA_EXTERNAL: | ||
case ProjectType.JAVA_PUBLIC: | ||
return true | ||
default: | ||
throw new IllegalStateException("Unsure if public project type '${type}' is supposed to be included in combined-javadoc.") | ||
} | ||
} | ||
} |
Oops, something went wrong.