Browse Source

Fix build task ":sonar-application:zip" and remove ":server:sonar-web:copyBranding"

tags/7.8
Evgeny Mandrikov 5 years ago
parent
commit
1c430b3667
2 changed files with 11 additions and 13 deletions
  1. 0
    11
      server/sonar-web/build.gradle
  2. 11
    2
      sonar-application/build.gradle

+ 0
- 11
server/sonar-web/build.gradle View File

@@ -14,18 +14,7 @@ apply plugin: 'com.moowork.node'

def webappDir = "${buildDir}/webapp"

task copyBranding(type: Copy) {
into projectDir
if (findProject(':private:branding')) {
from project(':private:branding').file('.')
includeEmptyDirs = false
}
}

yarn_run {
if (official) { dependsOn copyBranding }
inputs.property('official', official)
inputs.property('release', release)
inputs.property('ci', ci)


+ 11
- 2
sonar-application/build.gradle View File

@@ -166,11 +166,20 @@ task zip(type: Zip, dependsOn: [configurations.compile]) {
from configurations.compile
}
into("${archiveDir}/web/") {
duplicatesStrategy DuplicatesStrategy.FAIL
// FIXME use configurations.web with correct artifacts
from tasks.getByPath(':server:sonar-web:yarn_run').outputs
from(tasks.getByPath(':server:sonar-web:yarn_run').outputs) { a ->
if (official) {
project(':private:branding').fileTree('src').visit { b ->
if (!b.isDirectory) {
a.exclude b.relativePath.toString()
}
}
}
}
from tasks.getByPath(':server:sonar-vsts:yarn_run').outputs
if (official) {
from project(':private:branding').file('.')
from project(':private:branding').file('src')
}
}
into("${archiveDir}/lib/jdbc/mssql/") {

Loading…
Cancel
Save