Something went wrong on our end
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
build.gradle 11.07 KiB
/*
* Copyright (c) 2016 European Organisation for Nuclear Research (CERN), All Rights Reserved.
*/
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
plugins {
id "org.sonarqube" version "3.1.1"
id "com.jetbrains.python.envs" version "0.0.30" apply false
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
idea {
module {
inheritOutputDirs = true
}
}
}
static def gitBranch() {
System.getenv("GIT_BRANCH") == null ? gitLocalBranch() : System.getenv("GIT_BRANCH")
}
private static String gitLocalBranch() {
"origin/" + "git rev-parse --abbrev-ref HEAD".execute().text.trim()
}
sonarqube {
properties {
property 'sonar.sourceEncoding', 'UTF-8'
property "sonar.host.url", "http://nxcals-jenkins-master.cern.ch:9000"
property 'sonar.java.coveragePlugin', 'jacoco'
property 'sonar.java.source', '1.8'
property 'sonar.java.target', '1.8'
property 'sonar.projectName', project.name
property 'sonar.projectVersion', currentVersion
property 'sonar.projectKey', 'nxcals'
property 'sonar.branch.name', gitBranch()
property 'sonar.branch.target', 'origin/develop'
// property 'sonar.buildbreaker.preview.issuesSeverity', 'MINOR'
property 'sonar.buildbreaker.skip', 'true'
property 'sonar.gitlab.url', 'https://gitlab.cern.ch'
property 'sonar.gitlab.project_id', '18493'
property 'sonar.gitlab.max_info_issues_gate', -1
property 'sonar.gitlab.user_token', System.getProperty("api_token")
property 'sonar.gitlab.commit_sha', System.getenv("GIT_COMMIT")
property 'sonar.gitlab.ref_name', System.getenv("GIT_BRANCH")
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
group 'cern.nxcals'
version = currentVersion
compileJava {