-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
78 lines (68 loc) · 1.78 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* Copyright (c) 2022. AppDynamics LLC and its affiliates.
* All rights reserved.
*
*/
buildscript {
ext {
isCI = System.env['BUILD_ID'] != null && !System.env['BUILD_ID'].isEmpty();
}
if (isCI) {
apply from: "pipelib.gradle"
}
}
plugins {
id 'java-library-distribution'
id 'org.sonarqube' version '3.2.0'
}
sonarqube {
properties {
property "sonar.projectName", project.name
property "sonar.projectVersion", version
}
}
// distribution
//
// Specify which files to .zip when publishing.
distributions {
main {
distributionBaseName.set("rum-flutter")
contents {
// .gitignore exception
from(".idea/runConfigurations") {
into(".idea/runConfigurations")
}
from(".") {
def ignores = []
File rootIgnore = file(".gitignore")
rootIgnore.eachLine { line ->
if (!line.startsWith('#') && !line.isEmpty()) {
ignores.add(line)
}
}
File exampleIgnore = file("example/.gitignore")
exampleIgnore.eachLine { line ->
if (!line.startsWith('#') && !line.isEmpty()) {
ignores.add("example/" + line)
}
}
exclude ignores
}
}
}
}
task installPackages(type: Exec) {
commandLine "./tool/flutter-get.sh"
}
task analyze(type: Exec) {
commandLine "./tool/flutter-analyze.sh"
}
task runUnitTests(type: Exec) {
commandLine "./tool/flutter-test.sh"
}
task generateDocs(type: Exec) {
commandLine "./tool/generate-docs.sh"
}
task viewDocs(type: Exec) {
commandLine "./tool/view-docs.sh"
}