-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
41 lines (37 loc) · 1.07 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
plugins {
id 'idea'
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.8"
}
configurations {
src
}
ext {
sourceRoot = "${rootDir}/src"
gradleDir = "${rootDir}/gradle"
buildDir = "${project.projectDir}/build"
application = "${sourceRoot}/main/__main__.py"
pythonPath = "${sourceRoot}/main:${sourceRoot}/test:${sourceRoot}/demo"
buildToolsFile = file("${project.projectDir}/buildTools.txt")
startTime = System.currentTimeMillis()
verbose = findProperty('verbose') ?: false
}
idea {
module {
settings {
rootModuleType = 'PYTHON_MODULE'
}
sourceDirs += file('src/main')
sourceDirs += file('src/demo')
testSourceDirs += file('src/test')
excludeDirs += file('.idea')
excludeDirs += file('.vscode')
excludeDirs += file('.gradle')
excludeDirs += file(buildDir)
}
}
apply from: "${gradleDir}/idea.gradle"
apply from: "${gradleDir}/dependencies.gradle"
apply from: "${gradleDir}/python.gradle"
apply from: "${gradleDir}/versioning.gradle"
apply from: "${gradleDir}/pypi-publish.gradle"
apply from: "${gradleDir}/docgen.gradle"