-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
38 lines (31 loc) · 1.66 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
buildscript {
def buildScriptPlugins = ['scripts/common/buildscript-5.gradle']
println "> Applying script plugins in buildscripts:"
for (scriptPlugin in buildScriptPlugins) {
def pluginPath = "${scriptPluginPrefix}${scriptPlugin}${scriptPluginSuffix}${scriptPluginTag}"
println "${pluginPath}"
apply from: pluginPath, to: buildscript
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
def scriptPlugins = ['scripts/common/gradle-version-5.gradle',
'scripts/common/common-5.gradle',
'scripts/python/build.gradle',
'scripts/python/version.gradle',
'scripts/python/publish.gradle']
println "> Applying script plugins:"
for (scriptPlugin in scriptPlugins) {
def pluginPath = "${scriptPluginPrefix}${scriptPlugin}${scriptPluginSuffix}${scriptPluginTag}"
println "${pluginPath}"
apply from: pluginPath
}
// Add the environment variable to gradle for coverage report
// Do not add this to setup.cfg since it will break IDE tools
py.env.put("PYTEST_ADDOPTS", "--cov=${rootProject.name} --cov-config=setup.cfg --cov-report=html --cov-report=xml --cov-report=term")
//////////////////////////////////////////////////////////////////////////////////////////////////////
py.uploadToPyPi = true
project.group = "org.alleninstitute.aics.pypi"
description = "AICS ML segmentation"
// Project version will be managed outside of gradle in accordance with PEP 440
// ("https://www.python.org/dev/peps/pep-0440/")
//////////////////////////////////////////////////////////////////////////////////////////////////////