mirror of
https://github.com/google/nomulus.git
synced 2025-05-19 18:59:35 +02:00
Move hello.xml and don't use project.ext.foo
This commit is contained in:
parent
a7a983bfed
commit
b883f86933
3 changed files with 17 additions and 17 deletions
|
@ -10,7 +10,7 @@ def screenshotsDir = "${project.buildDir}/screenshots"
|
||||||
def screenshotsForGoldensDir = "${project.buildDir}/screenshots_for_goldens"
|
def screenshotsForGoldensDir = "${project.buildDir}/screenshots_for_goldens"
|
||||||
def newGoldensDir = "${project.buildDir}/new_golden_images"
|
def newGoldensDir = "${project.buildDir}/new_golden_images"
|
||||||
def goldensDir =
|
def goldensDir =
|
||||||
"${project.ext.javaTestDir}/google/registry/webdriver/goldens/chrome-linux"
|
"${javaTestDir}/google/registry/webdriver/goldens/chrome-linux"
|
||||||
|
|
||||||
// Tests that conflict with (mostly unidentified) members of the main test
|
// Tests that conflict with (mostly unidentified) members of the main test
|
||||||
// suite. It is unclear if they are offenders (i.e., those that pollute global
|
// suite. It is unclear if they are offenders (i.e., those that pollute global
|
||||||
|
@ -309,10 +309,10 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
task jaxbToJava {
|
task jaxbToJava {
|
||||||
def xsdFilesDir = "${project.ext.javaDir}/google/registry/xml/xsd"
|
def xsdFilesDir = "${javaDir}/google/registry/xml/xsd"
|
||||||
def bindingsFile = "${project.ext.javaDir}/google/registry/xjc/bindings.xjb"
|
def bindingsFile = "${javaDir}/google/registry/xjc/bindings.xjb"
|
||||||
def pkgInfoGenerator = "${project.ext.javaDir}/google/registry/xjc/make_pkginfo.sh"
|
def pkgInfoGenerator = "${javaDir}/google/registry/xjc/make_pkginfo.sh"
|
||||||
def pkgInfoTemplate = "${project.ext.javaDir}/google/registry/xjc/package-info.java.in"
|
def pkgInfoTemplate = "${javaDir}/google/registry/xjc/package-info.java.in"
|
||||||
def outputDir = "${generatedDir}/google/registry/xjc"
|
def outputDir = "${generatedDir}/google/registry/xjc"
|
||||||
|
|
||||||
inputs.dir xsdFilesDir
|
inputs.dir xsdFilesDir
|
||||||
|
@ -374,7 +374,7 @@ task soyToJava {
|
||||||
spec11SoyDir, toolsSoyDir, uiSoyDir, registrarSoyDir,
|
spec11SoyDir, toolsSoyDir, uiSoyDir, registrarSoyDir,
|
||||||
]
|
]
|
||||||
soyRelativeDirs.each {
|
soyRelativeDirs.each {
|
||||||
inputs.dir "${project.ext.javaDir}/${it}"
|
inputs.dir "${javaDir}/${it}"
|
||||||
outputs.dir "${generatedDir}/${it}"
|
outputs.dir "${generatedDir}/${it}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -394,19 +394,19 @@ task soyToJava {
|
||||||
soyToJava('google.registry.tools.soy',
|
soyToJava('google.registry.tools.soy',
|
||||||
"${generatedDir}/${toolsSoyDir}",
|
"${generatedDir}/${toolsSoyDir}",
|
||||||
fileTree(
|
fileTree(
|
||||||
dir: "${project.ext.javaDir}/${toolsSoyDir}",
|
dir: "${javaDir}/${toolsSoyDir}",
|
||||||
include: ['**/*.soy']))
|
include: ['**/*.soy']))
|
||||||
|
|
||||||
soyToJava('google.registry.ui.soy.registrar',
|
soyToJava('google.registry.ui.soy.registrar',
|
||||||
"${generatedDir}/${registrarSoyDir}",
|
"${generatedDir}/${registrarSoyDir}",
|
||||||
fileTree(
|
fileTree(
|
||||||
dir: "${project.ext.javaDir}/${registrarSoyDir}",
|
dir: "${javaDir}/${registrarSoyDir}",
|
||||||
include: ['**/*.soy']))
|
include: ['**/*.soy']))
|
||||||
|
|
||||||
soyToJava('google.registry.ui.soy',
|
soyToJava('google.registry.ui.soy',
|
||||||
"${generatedDir}/${uiSoyDir}",
|
"${generatedDir}/${uiSoyDir}",
|
||||||
files {
|
files {
|
||||||
file("${project.ext.javaDir}/${uiSoyDir}").listFiles()
|
file("${javaDir}/${uiSoyDir}").listFiles()
|
||||||
}.filter {
|
}.filter {
|
||||||
it.name.endsWith(".soy")
|
it.name.endsWith(".soy")
|
||||||
})
|
})
|
||||||
|
@ -414,13 +414,13 @@ task soyToJava {
|
||||||
soyToJava('google.registry.reporting.spec11.soy',
|
soyToJava('google.registry.reporting.spec11.soy',
|
||||||
"${generatedDir}/${spec11SoyDir}",
|
"${generatedDir}/${spec11SoyDir}",
|
||||||
fileTree(
|
fileTree(
|
||||||
dir: "${project.ext.javaDir}/${spec11SoyDir}",
|
dir: "${javaDir}/${spec11SoyDir}",
|
||||||
include: ['**/*.soy']))
|
include: ['**/*.soy']))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task soyToJS {
|
task soyToJS {
|
||||||
def rootSoyDirectory = "${project.ext.javaDir}/google/registry/ui/soy"
|
def rootSoyDirectory = "${javaDir}/google/registry/ui/soy"
|
||||||
def outputSoyDirectory = "${generatedDir}/google/registry/ui/soy"
|
def outputSoyDirectory = "${generatedDir}/google/registry/ui/soy"
|
||||||
inputs.dir rootSoyDirectory
|
inputs.dir rootSoyDirectory
|
||||||
outputs.dir outputSoyDirectory
|
outputs.dir outputSoyDirectory
|
||||||
|
@ -434,7 +434,7 @@ task soyToJS {
|
||||||
"--allowExternalCalls", "false",
|
"--allowExternalCalls", "false",
|
||||||
"--srcs", "${soyFiles.join(',')}",
|
"--srcs", "${soyFiles.join(',')}",
|
||||||
"--shouldProvideRequireSoyNamespaces", "true",
|
"--shouldProvideRequireSoyNamespaces", "true",
|
||||||
"--compileTimeGlobalsFile", "${project.ext.javaDir}/google/registry/ui/globals.txt",
|
"--compileTimeGlobalsFile", "${javaDir}/google/registry/ui/globals.txt",
|
||||||
"--deps", "${deps.join(',')}"
|
"--deps", "${deps.join(',')}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -456,7 +456,7 @@ task soyToJS {
|
||||||
}
|
}
|
||||||
|
|
||||||
task stylesheetsToJavascript {
|
task stylesheetsToJavascript {
|
||||||
def cssSourceDir = "${project.ext.javaDir}/google/registry/ui/css"
|
def cssSourceDir = "${javaDir}/google/registry/ui/css"
|
||||||
def outputDir = "${resourcesDir}/google/registry/ui/css"
|
def outputDir = "${resourcesDir}/google/registry/ui/css"
|
||||||
inputs.dir cssSourceDir
|
inputs.dir cssSourceDir
|
||||||
outputs.dir outputDir
|
outputs.dir outputDir
|
||||||
|
@ -509,8 +509,8 @@ task compileProdJS(type: JavaExec) {
|
||||||
def outputDir = "${resourcesDir}/google/registry/ui"
|
def outputDir = "${resourcesDir}/google/registry/ui"
|
||||||
def nodeModulesDir = "${rootDir}/node_modules"
|
def nodeModulesDir = "${rootDir}/node_modules"
|
||||||
def cssSourceDir = "${resourcesDir}/google/registry/ui/css"
|
def cssSourceDir = "${resourcesDir}/google/registry/ui/css"
|
||||||
def jsSourceDir = "${project.ext.javaDir}/google/registry/ui/js"
|
def jsSourceDir = "${javaDir}/google/registry/ui/js"
|
||||||
def externsDir = "${project.ext.javaDir}/google/registry/ui/externs"
|
def externsDir = "${javaDir}/google/registry/ui/externs"
|
||||||
def soySourceDir = "${generatedDir}/google/registry/ui/soy"
|
def soySourceDir = "${generatedDir}/google/registry/ui/soy"
|
||||||
|
|
||||||
[nodeModulesDir, cssSourceDir, jsSourceDir, externsDir, soySourceDir].each {
|
[nodeModulesDir, cssSourceDir, jsSourceDir, externsDir, soySourceDir].each {
|
||||||
|
|
|
@ -3,8 +3,8 @@ apply plugin: 'java'
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
resources {
|
resources {
|
||||||
exclude "${project.ext.javaDir}/terraform/"
|
exclude "${javaDir}/terraform/"
|
||||||
exclude "${project.ext.javaDir}/kubernetes/"
|
exclude "${javaDir}/kubernetes/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue