mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 14:54:51 +02:00
Add a Gradle task to build the nomulus tool
It'd be nice if we can separate out the tool to its own package and reduce the transitive dependencies that it pulls in. However since the entire core project is a dependency of the tool, it doesn't make any difference as we'd be pulling in core and all its transitive dependencies as well. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=224821931
This commit is contained in:
parent
a85544b3f6
commit
c7fc964d9c
2 changed files with 27 additions and 1 deletions
|
@ -44,8 +44,13 @@ subprojects {
|
|||
mavenCentral()
|
||||
}
|
||||
|
||||
def services = [':services:default',
|
||||
':services:backend',
|
||||
':services:tools',
|
||||
':services:pubapi']
|
||||
|
||||
// Set up all of the deployment projects.
|
||||
if (project.name in ['default', 'backend', 'tools', 'pubapi']) {
|
||||
if (services.contains(project.path)) {
|
||||
|
||||
apply plugin: 'war'
|
||||
|
||||
|
|
|
@ -444,3 +444,24 @@ test {
|
|||
maxParallelForks 5
|
||||
}.dependsOn(fragileTest, outcastTest)
|
||||
|
||||
task nomulus(type: Jar) {
|
||||
manifest {
|
||||
attributes 'Main-Class': 'google.registry.tools.RegistryTool'
|
||||
}
|
||||
zip64 = true
|
||||
baseName = 'nomulus'
|
||||
version = null
|
||||
from {
|
||||
configurations.runtimeClasspath.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
}
|
||||
}
|
||||
// Excludes signature files that accompany some dependency jars, like
|
||||
// bonuncycastle. It they are present, only classes from those signed jars are
|
||||
// made available to the class loader.
|
||||
// see https://discuss.gradle.org/t/signing-a-custom-gradle-plugin-thats-downloaded-by-the-build-system-from-github/1365
|
||||
exclude "META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA"
|
||||
with jar
|
||||
dependsOn project(':third_party').jar
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue